summaryrefslogtreecommitdiff
path: root/tmac/dvi.tmac
diff options
context:
space:
mode:
authorwlemb <wlemb>2002-11-12 08:49:58 +0000
committerwlemb <wlemb>2002-11-12 08:49:58 +0000
commitbf58bd61420c5408840c46b3dce358b34835d9e6 (patch)
treec5d26a0b8ad3680e9655c6c82af34d37940d07e6 /tmac/dvi.tmac
parentdee6a2a67bfae95ed12fa2bcedf39815ecc29f5f (diff)
downloadgroff-bf58bd61420c5408840c46b3dce358b34835d9e6.tar.gz
Added three new requests `schar', `fschar', and `rfschar'. `schar'
defines a glyph which is searched after the check for fonts declared with `.special' (and before the check for all mounted special fonts). `fschar' defines a glyph for a particular font which is searched after the check for fonts declared with `.fspecial' (and before the check for fonts declared with `.special'). `rfschar' removes glyphs defined with `fschar'. * src/roff/troff/token.h (char_mode): New enum. Declare do_define_character. * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with `mode'. (charinfo::is_fallback): Updated. (charinfo::is_special): New method. * src/roff/troff/input.cc (do_define_character): Add and use optional second parameter used as a prefix for font-specific glyph names. (define_character, define_fallback_character): Updated. (define_special_character): New function. (init_input_requests): Add `schar'. (charinfo::charinfo, charinfo::set_macro): Updated. * src/roff/troff/node.cc: Include `stringclass.h'. (make_glyph_node): Handle special glyphs defined with `.schar' and `.fschar'. (define_font_special_character, remove_font_special_character): New functions. (init_node_requests): Sorted. Add `fschar' and `rfschar'. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document new requests. * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'. * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
Diffstat (limited to 'tmac/dvi.tmac')
-rw-r--r--tmac/dvi.tmac2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmac/dvi.tmac b/tmac/dvi.tmac
index 9c155fdd..5ab7fe4e 100644
--- a/tmac/dvi.tmac
+++ b/tmac/dvi.tmac
@@ -83,6 +83,8 @@ D\v'-.33m'\s0\v'.33m'
.fchar \[em] --
.fchar \[en] -
.fchar \[hy] -
+.fschar CW \[va] \o'\[ua]\[da]'
+.fschar CWI \[va] \o'\[ua]\[da]'
.
.\" Define some fractions.
.de dvi-frac