summaryrefslogtreecommitdiff
path: root/man/groff_diff.man
diff options
context:
space:
mode:
authorwlemb <wlemb>2002-03-15 21:56:23 +0000
committerwlemb <wlemb>2002-03-15 21:56:23 +0000
commite68e47984bd71dd6a23618a6bd55dc1feea9d4e2 (patch)
tree6c0acc91e3e6ebdf6b25c3aa6a3b55afff31b3d3 /man/groff_diff.man
parent6b7180658989cef0e717899601b0d47ee3dab8a2 (diff)
downloadgroff-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 'man/groff_diff.man')
-rw-r--r--man/groff_diff.man39
1 files changed, 38 insertions, 1 deletions
diff --git a/man/groff_diff.man b/man/groff_diff.man
index 2fafc6f5..923742c7 100644
--- a/man/groff_diff.man
+++ b/man/groff_diff.man
@@ -1928,7 +1928,44 @@ request, the file cannot contain characters such as
that are not legal troff input characters.
.
.TP
-.B .trnt abcd
+.BI .trin\ abcd
+This is the same as the
+.B tr
+request except that the
+.B asciify
+request will use the character code (if any) before the character
+translation.
+.
+Example:
+.
+.RS
+.IP
+.nf
+.ft CB
+.Text .trin ax
+.Text .di xxx
+.Text a
+.Text .br
+.Text .di
+.Text .xxx
+.Text .trin aa
+.Text .asciify xxx
+.Text .xxx
+.fi
+.ft
+.RE
+.
+.IP
+The result is
+.BR x\ a .
+.
+Using
+.BR tr ,
+the result would be
+.BR x\ x .
+.
+.TP
+.BI .trnt\ abcd
This is the same as the
.B tr
request except that the translations do not apply to text that is