changeset 45:23f00a0da841

Adjustments.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 May 2021 13:34:36 +0300
parents d7b4b2fb0214
children 931d05a8bbb8
files lxmldump.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lxmldump.py	Wed May 26 13:25:27 2021 +0300
+++ b/lxmldump.py	Wed May 26 13:34:36 2021 +0300
@@ -49,7 +49,7 @@
 
     "word_fmt": {
         PKK_MODE_NORMAL: "\"{word}\"{search}{attr}\n{hyphenation}",
-        PKK_MODE_ANKI: "{word}{attr}\n",
+        PKK_MODE_ANKI: "&{word}{search}{attr}{hyphenation}\n",
     },
     "word_attr_list": {
         PKK_MODE_NORMAL: " ({alist}) ",
@@ -73,6 +73,7 @@
     },
     "search_list_item": {
         PKK_MODE_NORMAL: "\"{text}\"",
+        PKK_MODE_ANKI: "{text}",
     },
     "search_list_sep": {
         PKK_MODE_NORMAL: ", ",
@@ -80,6 +81,7 @@
 
     "hyphenation": {
         PKK_MODE_NORMAL: "{indent}hyph \"{text}\"\n",
+        PKK_MODE_ANKI: "<{text}>",
     },
     "no_hyphenation": {
         PKK_MODE_NORMAL: "",