comparison lxmldump.py @ 49:d3d4b547f86c

Some prodding at Anki output.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 May 2021 22:54:08 +0300
parents 6932c3f2bdeb
children 5b22ffdab0ce
comparison
equal deleted inserted replaced
48:6932c3f2bdeb 49:d3d4b547f86c
47 PKK_MODE_ANKI: u"<a href='https://kaino.kotus.fi/cgi-bin/kks/karjala.cgi?a={href}'>{text}</a>", 47 PKK_MODE_ANKI: u"<a href='https://kaino.kotus.fi/cgi-bin/kks/karjala.cgi?a={href}'>{text}</a>",
48 }, 48 },
49 49
50 "word_fmt": { 50 "word_fmt": {
51 PKK_MODE_NORMAL: "\"{word}\"{search}{attr}\n{hyphenation}{main_sense}{other_senses}\n", 51 PKK_MODE_NORMAL: "\"{word}\"{search}{attr}\n{hyphenation}{main_sense}{other_senses}\n",
52 PKK_MODE_ANKI: "{word}{search}{attr}{hyphenation}{main_sense}{other_senses}\n", 52 PKK_MODE_ANKI: "\"{word}\"{search}{attr}{hyphenation};{main_sense};{other_senses}\n\n",
53 }, 53 },
54 "word_attr_list": { 54 "word_attr_list": {
55 PKK_MODE_NORMAL: " ({alist}) ", 55 PKK_MODE_NORMAL: " ({alist}) ",
56 PKK_MODE_NORMAL: " ({alist})",
56 }, 57 },
57 "word_attr_list_empty": { 58 "word_attr_list_empty": {
58 PKK_MODE_NORMAL: " ", 59 PKK_MODE_NORMAL: " ",
60 PKK_MODE_ANKI: "",
59 }, 61 },
60 "word_attr_list_item": { 62 "word_attr_list_item": {
61 PKK_MODE_NORMAL: "{text}", 63 PKK_MODE_NORMAL: "{text}",
62 }, 64 },
63 "word_attr_list_sep": { 65 "word_attr_list_sep": {
87 PKK_MODE_NORMAL: "", 89 PKK_MODE_NORMAL: "",
88 }, 90 },
89 91
90 "sense_index": { 92 "sense_index": {
91 PKK_MODE_NORMAL: "{indent}sense #{index}\n", 93 PKK_MODE_NORMAL: "{indent}sense #{index}\n",
92 PKK_MODE_ANKI: "[{index}]:\n", 94 PKK_MODE_ANKI: "#{index}: ",
93 }, 95 },
94 96
95 "definition_fmt": { 97 "definition_fmt": {
96 PKK_MODE_NORMAL: "{indent}defn \"{text}\"\n", 98 PKK_MODE_NORMAL: "{indent}defn \"{text}\"\n",
97 PKK_MODE_ANKI: "? \"{text}\"\n", 99 PKK_MODE_ANKI: " * \"{text}\"",
98 }, 100 },
99 101
100 "example_fmt": { 102 "example_fmt": {
101 PKK_MODE_NORMAL: "{indent}exmp \"{text}\"{geostr}\n", 103 PKK_MODE_NORMAL: "{indent}exmp \"{text}\"{geostr}\n",
102 PKK_MODE_ANKI: "- \"{text}\"{geostr}\n", 104 PKK_MODE_ANKI: " ⚫ \"{text}\"{geostr}",
103 }, 105 },
104 "example_geo_list": { 106 "example_geo_list": {
105 PKK_MODE_NORMAL: " ({alist})", 107 PKK_MODE_NORMAL: " ({alist})",
106 }, 108 },
107 "example_geo_list_empty": { 109 "example_geo_list_empty": {