summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-17 08:41:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-17 08:41:07 (GMT)
commitb9fdbb07108701e8f4430202a4588f6f75b96e56 (patch)
tree7193387fe0cbf558a069a7784dbd4d17ffd8e3e6 /tools
parentd7092f4a55aea9829825a982f5e3832bdbd8ba03 (diff)
parent969ef21225d3b195d58f9bb37d8b1f8f3c8b6d99 (diff)
downloadtcl-b9fdbb07108701e8f4430202a4588f6f75b96e56.zip
tcl-b9fdbb07108701e8f4430202a4588f6f75b96e56.tar.gz
tcl-b9fdbb07108701e8f4430202a4588f6f75b96e56.tar.bz2
Merge 8.6
Diffstat (limited to 'tools')
-rw-r--r--tools/tcltk-man2html-utils.tcl61
1 files changed, 48 insertions, 13 deletions
diff --git a/tools/tcltk-man2html-utils.tcl b/tools/tcltk-man2html-utils.tcl
index b38f0b5..0aa1d5c 100644
--- a/tools/tcltk-man2html-utils.tcl
+++ b/tools/tcltk-man2html-utils.tcl
@@ -130,8 +130,8 @@ proc htmlize-text {text {charmap {}}} {
\" {&quot;} \
{<} {&lt;} \
{>} {&gt;} \
- \u201c "&#8220;" \
- \u201d "&#8221;"
+ \u201c "&ldquo;" \
+ \u201d "&rdquo;"
return [string map $charmap $text]
}
@@ -144,23 +144,58 @@ proc process-text {text} {
{\&} "\t" \
{\%} {} \
"\\\n" "\n" \
- {\(+-} "&#177;" \
+ {\(r!} "&iexcl;" \
+ {\(ct} "&cent;" \
+ {\(Po} "&pound;" \
+ {\(Cs} "&curren;" \
+ {\(Ye} "&yen;" \
+ {\(bb} "&brvbar;" \
+ {\(sc} "&sect;" \
+ {\(ad} "&die;" \
{\(co} "&copy;" \
- {\(em} "&#8212;" \
- {\(en} "&#8211;" \
- {\(fm} "&#8242;" \
- {\(mc} "&#181;" \
- {\(mu} "&#215;" \
- {\(mi} "&#8722;" \
- {\(->} "<font size=\"+1\">&#8594;</font>" \
+ {\(Of} "&ordf;" \
+ {\(Fo} "&laquo;" \
+ {\(no} "&not;" \
+ {\(rg} "&reg;" \
+ {\(a-} "&macr;" \
+ {\(de} "&deg;" \
+ {\(+-} "&plusmn;" \
+ {\(S2} "&sup2;" \
+ {\(S3} "&sup3;" \
+ {\(aa} "&acute;" \
+ {\(mc} "&micro;" \
+ {\(ps} "&para;" \
+ {\(pc} "&middot;" \
+ {\(ac} "&cedil;" \
+ {\(S1} "&sup1;" \
+ {\(Om} "&ordm;" \
+ {\(Fc} "&raquo;" \
+ {\(14} "&frac14;" \
+ {\(12} "&frac12;" \
+ {\(34} "&frac34;" \
+ {\(r?} "&iquest;" \
+ {\(AE} "&AElig;" \
+ {\(-D} "&ETH;" \
+ {\(mu} "&times;" \
+ {\(TP} "&THORN;" \
+ {\(ss} "&szlig;" \
+ {\(ae} "&aelig;" \
+ {\(Sd} "&eth;" \
+ {\(di} "&divide;" \
+ {\(Tp} "&thorn;" \
+ {\(em} "&mdash;" \
+ {\(en} "&ndash;" \
+ {\(bu} "&bull;" \
+ {\(fm} "&prime;" \
+ {\(mi} "&minus;" \
+ {\(->} "<font size=\"+1\">&rarr;</font>" \
{\fP} {\fR} \
{\.} . \
- {\(bu} "&#8226;" \
]
# This might make a few invalid mappings, but we don't use them
- foreach c {a e i o u y A E I O U Y} {
+ foreach c {a c e i n o u y A C E I N O U Y} {
foreach {prefix suffix} {
- o ring / slash : uml ' acute ^ circ ` grave
+ o ring / slash : uml ' acute ^ circ ` grave ~ tilde , cedilla
} {
lappend charmap "\\\[${prefix}${c}\]" "&${c}${suffix};"
}