From bf58bd61420c5408840c46b3dce358b34835d9e6 Mon Sep 17 00:00:00 2001 From: wlemb Date: Tue, 12 Nov 2002 08:49:58 +0000 Subject: 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'). --- tmac/dvi.tmac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tmac/dvi.tmac') 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 -- cgit v1.2.1