summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-17 14:35:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-17 14:35:42 (GMT)
commitc505c6117730987cddf4bcb141a80b98732a666a (patch)
treebc1938cc590a2f5f45ccf35f72c71b571e5878c4 /tools
parentef50fbcbea21ca05bdd563002a0f1bdbec7d195c (diff)
downloadtcl-c505c6117730987cddf4bcb141a80b98732a666a.zip
tcl-c505c6117730987cddf4bcb141a80b98732a666a.tar.gz
tcl-c505c6117730987cddf4bcb141a80b98732a666a.tar.bz2
Extend tcltk-man2html-utils.tcl a little more: Allow original AT&T syntax for more accented characters, and add support for some ligatures. Use this in re_syntax.n
Diffstat (limited to 'tools')
-rw-r--r--tools/tcltk-man2html-utils.tcl13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/tcltk-man2html-utils.tcl b/tools/tcltk-man2html-utils.tcl
index e207434..5b2a831 100644
--- a/tools/tcltk-man2html-utils.tcl
+++ b/tools/tcltk-man2html-utils.tcl
@@ -188,17 +188,26 @@ proc process-text {text} {
{\(bu} "&bull;" \
{\(fm} "&prime;" \
{\(mi} "&minus;" \
+ {\(.i} "&imath;" \
+ {\(.j} "&jmath;" \
+ {\(Fn} "&fnof;" \
+ {\(OE} "&OElig;" \
+ {\(oe} "&oelig;" \
+ {\(IJ} "&IJlig;" \
+ {\(ij} "&ijlig;" \
+ {\(<-} "<font size=\"+1\">&larr;</font>" \
{\(->} "<font size=\"+1\">&rarr;</font>" \
{\(eu} "&euro;" \
{\fP} {\fR} \
{\.} . \
]
# This might make a few invalid mappings, but we don't use them
- foreach c {a c e i n o u y A C E I N O U Y} {
+ foreach c {a c e g i l n o s t u y z A C E G I L N O S T U Y Z} {
foreach {prefix suffix} {
- o ring / slash : uml ' acute ^ circ ` grave ~ tilde , cedil
+ o ring / slash : uml ' acute ^ circ ` grave ~ tilde , cedil v caron
} {
lappend charmap "\\\[${prefix}${c}\]" "&${c}${suffix};"
+ lappend charmap "\\(${prefix}${c}" "&${c}${suffix};"
}
}
lappend charmap {\-\|\-} -- ; # two hyphens