summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2017-03-12 18:36:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2017-03-12 18:36:21 (GMT)
commitc0bedd810fd8cf8ed91641043fb615153a1da6ec (patch)
tree3d1cc0dbfddfc1c5dc3d6e482317f23086ca1b47 /tools
parent5d66bf5a1f4c1151477c29182aa74b195ca91334 (diff)
downloadtcl-c0bedd810fd8cf8ed91641043fb615153a1da6ec.zip
tcl-c0bedd810fd8cf8ed91641043fb615153a1da6ec.tar.gz
tcl-c0bedd810fd8cf8ed91641043fb615153a1da6ec.tar.bz2
Add mappings for groff-style character naming, used in experimental branches of Tk.
Diffstat (limited to 'tools')
-rw-r--r--tools/tcltk-man2html-utils.tcl10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/tcltk-man2html-utils.tcl b/tools/tcltk-man2html-utils.tcl
index 9052049..c887edd 100644
--- a/tools/tcltk-man2html-utils.tcl
+++ b/tools/tcltk-man2html-utils.tcl
@@ -155,8 +155,16 @@ proc process-text {text} {
{\fP} {\fR} \
{\.} . \
{\(bu} "&#8226;" \
- {\*(qo} "&ocirc;" \
+ "\\*(qo" "&ocirc;" \
]
+ # 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 {prefix suffix} {
+ o circ / slash : uml ' acute ^ circ ` grave
+ } {
+ lappend charmap "\\\[${prefix}${c}\]" "&${c}${suffix};"
+ }
+ }
lappend charmap {\-\|\-} -- ; # two hyphens
lappend charmap {\-} - ; # a hyphen