Mercurial > hg > lxmldump
comparison lxmldump.py @ 54:884770576e74
Rename a token.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 27 May 2021 14:28:08 +0300 |
parents | 833606b39e35 |
children | 71e66eca1e23 |
comparison
equal
deleted
inserted
replaced
53:833606b39e35 | 54:884770576e74 |
---|---|
97 PKK_MODE_NORMAL: "{indent}defn \"{text}\"\n", | 97 PKK_MODE_NORMAL: "{indent}defn \"{text}\"\n", |
98 PKK_MODE_ANKI: " * \"{text}\"", | 98 PKK_MODE_ANKI: " * \"{text}\"", |
99 }, | 99 }, |
100 | 100 |
101 "example_fmt": { | 101 "example_fmt": { |
102 PKK_MODE_NORMAL: "{indent}exmp \"{text}\"{geostr}\n", | 102 PKK_MODE_NORMAL: "{indent}exmp \"{text}\"{geo_list}\n", |
103 PKK_MODE_ANKI: " ⚫ \"{text}\"{geostr}", | 103 PKK_MODE_ANKI: " ⚫ \"{text}\"{geo_list}", |
104 }, | 104 }, |
105 "example_geo_list": { | 105 "example_geo_list": { |
106 PKK_MODE_NORMAL: " ({alist})", | 106 PKK_MODE_NORMAL: " ({alist})", |
107 }, | 107 }, |
108 "example_geo_list_empty": { | 108 "example_geo_list_empty": { |
346 text=pkk_node_to_text(qnode), | 346 text=pkk_node_to_text(qnode), |
347 tclass=qnode.attrib["class"])) | 347 tclass=qnode.attrib["class"])) |
348 | 348 |
349 ostr += pkk_get_fmt("example_fmt").format( | 349 ostr += pkk_get_fmt("example_fmt").format( |
350 text=pkk_node_to_text(wnode.find("./Example")), | 350 text=pkk_node_to_text(wnode.find("./Example")), |
351 geostr=pkk_get_list_str(geolist, "example_geo", False), | 351 geo_list=pkk_get_list_str(geolist, "example_geo", False), |
352 indent=pkk_geti(indent + 1)) | 352 indent=pkk_geti(indent + 1)) |
353 | 353 |
354 return ostr | 354 return ostr |
355 | 355 |
356 | 356 |