From a246806d81351996ac2fa4a8f0826915e576bc0f Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Sat, 15 Jan 2022 12:13:45 +1100 Subject: Simplify Unicode character mapping process. * tmac/unicode.tmac: Drop. It was originally added in 2005 to suppress horizontal spacing of glyphs in the range U+0483..9. Its purpose has wandered over the years; most recently to map the Basic Latin ("ASCII") hyphen-minus, apostrophe, and grave accent to special characters (and thus ultimately to the General Punctuation block). But this is unnecessary since the font descriptions for devices with the `unicode` property can provide this information, and anyone who wants to alter the mappings can change either font description files, output device macro files, or troffrc; or add `char` requests to their macro packages or documents (in decreasing magnitude of ambition). * tmac/html.tmac: * tmac/tty.tmac: Stop sourcing unicode.tmac. * tmac/tmac.am (TMACNORMALFILES): Stop shipping it. * font/devutf8/NOTES: Drop remarks about mapping of \[a~], \[a^], and Basic Latin circumflex accent and tilde. Not only do I disagree with the reasoning (whether these glyphs are "too small" depends on the font used by the terminal emulator, over which we have no control), but this mapping happens in a completely different part of the source tree, src/libs/libgroff/glyphuni.cpp. * font/devhtml/R.proto: * font/devutf8/R.proto: Add mappings for the five Basic Latin characters that map surprisingly (see groff_char(7)) and are not syntactically significant to troff. Three of these are ported from unicode.tmac. (html): Don't migrate the hyphen-minus--yet. --- tmac/tmac.am | 1 - 1 file changed, 1 deletion(-) (limited to 'tmac/tmac.am') diff --git a/tmac/tmac.am b/tmac/tmac.am index 7c8a93e4b..5e276368e 100644 --- a/tmac/tmac.am +++ b/tmac/tmac.am @@ -62,7 +62,6 @@ TMACNORMALFILES = \ tmac/latin5.tmac \ tmac/latin9.tmac \ tmac/cp1047.tmac \ - tmac/unicode.tmac \ tmac/X.tmac \ tmac/Xps.tmac \ tmac/lj4.tmac \ -- cgit v1.2.1