Mercurial > hg > egg-tcls
comparison utillib.tcl @ 467:b29b0db02649
utillib: Add unicode hyphen conversion to ascii.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 09 May 2018 20:04:44 +0300 |
parents | 9c2cc740ec76 |
children | 1255d524a919 |
comparison
equal
deleted
inserted
replaced
466:a8eb80bbffa5 | 467:b29b0db02649 |
---|---|
15 append utl_html_ent_str "|||-|’|'|ü|ü|Ü|Ü|•|*|€|€" | 15 append utl_html_ent_str "|||-|’|'|ü|ü|Ü|Ü|•|*|€|€" |
16 append utl_html_ent_str "|”|\"|‘|'|ä|ä|·|*|®|®|´|'" | 16 append utl_html_ent_str "|”|\"|‘|'|ä|ä|·|*|®|®|´|'" |
17 append utl_html_ent_str "|ö|ö|ö|ö|#|#|'|'|­||–|-|”|\"" | 17 append utl_html_ent_str "|ö|ö|ö|ö|#|#|'|'|­||–|-|”|\"" |
18 append utl_html_ent_str "|…|...|…|...|"|\"|­||@|#" | 18 append utl_html_ent_str "|…|...|…|...|"|\"|­||@|#" |
19 append utl_html_ent_str "| | |£|£|&|&|ž|ž|Ä|Ä|º|º" | 19 append utl_html_ent_str "| | |£|£|&|&|ž|ž|Ä|Ä|º|º" |
20 append utl_html_ent_str "|…|...|/|/| | |"|\"" | 20 append utl_html_ent_str "|…|...|/|/| | |"|\"|–|-" |
21 set utl_html_ent_list [split [encoding convertfrom "utf-8" $utl_html_ent_str] "|"] | 21 set utl_html_ent_list [split [encoding convertfrom "utf-8" $utl_html_ent_str] "|"] |
22 | 22 |
23 | 23 |
24 # Convert given string, containing HTML/XML style entities into a normal | 24 # Convert given string, containing HTML/XML style entities into a normal |
25 # UTF-8 Unicode string, using the above entity->character mapping | 25 # UTF-8 Unicode string, using the above entity->character mapping |