diff options
author | wlemb <wlemb> | 2002-03-15 21:56:23 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2002-03-15 21:56:23 +0000 |
commit | e68e47984bd71dd6a23618a6bd55dc1feea9d4e2 (patch) | |
tree | 6c0acc91e3e6ebdf6b25c3aa6a3b55afff31b3d3 /tmac/cp1047.tmac | |
parent | 6b7180658989cef0e717899601b0d47ee3dab8a2 (diff) | |
download | groff-e68e47984bd71dd6a23618a6bd55dc1feea9d4e2.tar.gz |
Add request `trin' (translate input) to make `.asciify' work
correctly. This is necessary since `charXXX' entity names are no
longer hardcoded in font definition files.
* src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
`translate_input' members.
(charinfo::set_asciify_code, charinfo::get_asciify_code,
charinfo::set_translation_input): New methods.
(charinfo::set_translation): Add third argument.
* src/roff/troff/input.cc (charinfo:set_translation): Set
`asciify_code'.
(do_translate): Add second argument.
(translate_input): New function.
(init_input_requests): Updated.
* src/roff/troff/node.cc (glyph_node::asciify,
composite_node::asciify): Use `get_asciify_code'.
* tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
* NEWS, man/groff.man, man/groff_diff.man: Updated.
Diffstat (limited to 'tmac/cp1047.tmac')
-rw-r--r-- | tmac/cp1047.tmac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmac/cp1047.tmac b/tmac/cp1047.tmac index e87630df..c16d921d 100644 --- a/tmac/cp1047.tmac +++ b/tmac/cp1047.tmac @@ -3,7 +3,7 @@ .nr _C \n(.C .cp 0 .de cp1047-tr -. if c\\$2 .if !c\\$1 .tr \\$1\\$2 +. if c\\$2 .if !c\\$1 .trin \\$1\\$2 .. . .cp1047-tr \[char66] \[^a] |