summaryrefslogtreecommitdiff
path: root/tmac/dvi.tmac
Commit message (Collapse)AuthorAgeFilesLines
* * tmac/pspic.tmac: Make .PSPIC work for all devices.wl2006-07-011-3/+0
| | | | | | | | | | | | | | | | Print image file name for devices which don't support PS image inclusion. Handle multiple inclusions. Add lots of comments. * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load pspic.tmac. * tmac/troffrc: Load pspic.tmac. * man/groff_tmac.man: Update .PSPIC documentation. * NEWS: Updated.
* * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,wlemb2003-12-221-58/+66
| | | | | | | | | | | | | | | | | and u0049_0307. Add missing latin-2 glyphs. * font/devutf8/R.proto: Add missing latin-2 glyphs. * tmac/troffrc: Load `composite.tmac' earlier. * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306, u00{53,73}_0327, and u0049_0307. * tmac/X.tmac: Add u00{47,67}_0306. * tmac/tty-char.tmac: Use composite glyph names for readability. * NEWS: Updated. * src/include/unicode.h: Remove `extern' keywords.
* Contrary to the PCL5 Developer's Guide, the ascenders in TFM fileswlemb2003-02-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | can be negative also. * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be `int16'. (read_char_table): Avoid negative ascenders. (output_charset): Add cast. * font/devlj4/*: Regenerated. Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where possible. * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it. * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead of `<>'. * font/devdvi/*: Regenerated. Map `la' and `ra' to U+27E8 and U+27E9. These two characters have normal width, while the previously used characters (U+2329 and U+232A) are classified as wide due to canonical equivalence with the CJK punctuation characters U+3008 and U+3009. * font/devutf8/R.proto: Updated. * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto. * man/groff_char.man: Simplify handling of table traps by introducing `start block' and `end block' macros. (Ns, Ne, 2s, 2e, Ds, De): New macros. (DL): Make it work with Unix troff also. Fix code values of `la' and `ra'. * tmac/dvi.tmac: Define `<>' for CW and CWI.
* Similar to \[is], the square root glyph (\[sr]) and the square rootwlemb2003-01-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | extension glyph (\[radicalex]) are now text symbols. The new mathematical versions are called \[sqrt] and \[sqrtex], respectively. * font/devX*/S: Regenerated. * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'. * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'. * font/devdvi/EX, font/devdvi/S: Regenerated. * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'. * font/devlj4/generate/special.map: Add `sqrt'. * font/devlj4/S: Regenerated. * font/devps/generate/textmap: Add `sqrt'. * font/devps/S, font/devps/symbolmap: Regenerated. * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR, SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'. * src/roff/troff/input.cc (init_charset_table): Make `sqrtex' overlap horizontally. * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'. * tmac/dvi.tmac: Add `sr', and `sqrtex'. Fix `radicalex'. * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex' and `sqrtex' are overlapping glyphs.
* * font/devdvi/generate/texsy.map: Add `is'.wlemb2003-01-071-2/+0
| | | | | | | * font/devps/symbolmap: Regenerated. * font/devdvi/*TC, MI, S: Regenerated. * tmac/dvi.tmac: Remove `is'.
* `is' is now a text symbol (only relevant for dvi). The math variantwlemb2003-01-071-1/+3
| | | | | | | | | | | | | | | | | | | can be accessed with `integral'. * font/devX*/S: Regenerated. * font/devdvi/generate/texex.map: Remove `is'. * font/devdvi/EX: Updated. * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'. * font/devlj4/generate/special.map: Ditto. * font/devlj4/S: Regenerated. * font/devps/generate/textmap: Add `integral'. * font/devps/S: Regenerated. * tmac/dvi.tmac: Define `is'. * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'. * src/preproc/tbl/main.cc (process_format): Fix error message.
* * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.wlemb2003-01-021-1/+9
| | | | | | | | | | | | | | | | | | * font/devps/textmap: Fix entries for `ne' and `nc'. * font/devps/symbolmap: Regenerated. * src/roff/troff/glyphuni.cc (glyph_to_unicode_list), src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18', `38', `58', `78', `-+', `|=', `nc', `ne'. * tmac/dvi.tmac: Add `nm', `ne', `nc'. Use `schar' for `aq'. * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'. * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'. * tmac/tty.tmac: Add `ne'. * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro' for fallback glyphs.
* Add glyph `|='.wlemb2002-12-301-0/+1
| | | | | | | | | | | | | | | | | | | * font/devX*/*: Regenerated. * font/devdvi/generate/ec.map: Remove `eq'. * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'. Assign `|=' to position 39. * font/devdvi/*EC, S: Regenerated. * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='. * font/devlj4/generate/special.map: Make `~=' the same as `~~'. Assign `|=' to position 549. * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove `equalmath'. Add `uni2243' for `|='. * tmac/ec.tmac: Add `eq'. * tmac/dvi.tmac: Add `=~'. * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add `|='.
* * font/devdvi/generate/tc.map: Remove `**'.wlemb2002-12-221-1/+2
| | | | | | | | | | | | | | | | | | * font/devdvi/*TC: Regenerated. * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58', `78', `<<', `>>'. * font/devutf8/NOTES: Updated. * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function. Don't give default parameter to `set_macro'. * src/roff/troff/input.cc (do_define_character): Use `setx_macro' instead of `set_macro'. (charinfo::setx_macro): Implement it. (charinfo::set_macro): Don't change `mode'. * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'. * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'. * tmac/dvi.tmac: Define `!=' with `.schar'.
* * font/devX*/S: Regenerated.wlemb2002-12-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devdvi/generate/ec.map: Remove `pl'. * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'. * font/devdvi/*{TC,EC}: Regenerated. * font/devhtml/R.proto: Add `-+'. Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'. * font/devlbp/*: Remove `or'. * font/devlj4/generate/special.map: Remove `or'. * font/devlj4/S: Regenerated. * font/devps/generate/textmap: Add `fiveeighths', `oneeighth', `seveneighths', `threeeighths'. Remove `plusmath'. Replace `minusplus' with `uni2213'. * font/devps/symbolmap: Regenerated. * font/devutf8/R.proto: Replace `shc' with unnamed glyph. Add `-+'. * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline function. * src/roff/troff/node.cc (troff_output_file::put_char_width): Call glyph_color and fill_color even if tcommand_flag isn't set. (make_node, node::add_char): Check not ci->is_fallback but ci->is_normal. * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'. * tmac/ec.tmac: Add remove entry for `f/'. Don't remove `12', `14', `34'. Define `pl' to be always roman. * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros. Define `18', `38', `58', `78'. * tmac/tty.tmac: Add `-+'. * tmac/dvi.tmac: Define `f/'. (dvi-frac): Use `f/'. * tmac/X.tmac (X-frac, X-frac-mono): New macros. Define `18', `38', `58', `78'.
* Add glyph `tno', a textual variant of `no'.wlemb2002-12-111-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devX*/*: Regenerated. * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'. * font/devdvi/generate/{tc.map: Replace `no' with `tno'. * font/devdvi/generated/{texsy,textex}.map: Add `tno'. * font/devdvi/*: Regenerated. * font/devlbp/*: Add `tno'. * font/devlj4/generate/tex.map: Replace `no' with `tno'. * font/devlj4/*: Regenerated. * font/devps/generate/textmap: Replace `no' with `tno'. * font/devps/generate/symbolchars: Add `no'. * font/devps/*: Regenerated. * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'. * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'. * tmac/tty-char.tmac: Add entry for `tno' and `3d'. * NEWS: Updated. * tmac/dvi.tmac: Replace most `\\' with `\E'. Add definition for `sd'. * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'. * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
* * font/devdvi/generate.tc.map: s/%O/%0/.wlemb2002-12-031-1/+0
| | | | | | | | | | | | | | * font/devdvi/*TC: Regenerated. * src/roff/troff/div.cc (init_div_requests): Sorted. * tmac/dvi.tmac: Remove `Ye'. * tmac/ec.tmac: Remove `Ye'. Add .rchar entry for `de'. * man/groff.man, man/groff_diff.man: Document register `.pe'. * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'. * NEWS: Updated.
* Add PS font for various Euro glyphs.wlemb2002-12-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devps/generate/freeeuro.sfd: New master font file for pfaedit. * font/devps/generate/sfdtopfa.pe: New conversion script for pfaedit. * font/devps/generate/Makefile (FONTS): Add `EURO'. (EURO, freeeuro.afm, freeeuro.pfa): New rules. * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from `freeeuro.sfd'. * font/devps/EURO: Generated from `freeeuro.afm'. * font/devps/download: Add `freeuro.pfa'. * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and `freeeuro.pfa'. * tmac/europs.tmac: New file. * tmac/ps.tmac: Include `europs.tmac'. * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'. * font/devdvi/generate/texsy.map: Remove `lh' and `rh'. * font/devdvi/S: Regenerated. * font/devhtml/R.proto: Fix `CR' and `ci'. Add `OK'. * font/devps/generate/textmap: Fix `lh', `rh', and `sq'. Remove `bs'. * font/devps/symbolmap: Regenerated. * font/devutf8/R.proto: Fix `CR' and `ci'. Add `OK'. * font/devutf8/NOTES: Updated. * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and `ci'. Add `OK'. * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto. * tmac/dvi.tmac: Add `lh' and `rh'. * tmac/Xps.tmac: Fix `lh' and `rh'. * tmac/X.tmac: Add `OK'. * tmac/lj4.tmac: Ditto.
* * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'wlemb2002-11-171-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | and `vA'. Fix code for `an'. * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto. * doc/texinfo.tex: New version from texinfo 4.3. * doc/groff.texinfo: Updated for texinfo 4.3. Use @tie{} where appropriate. * font/devdvi/generate/ec.map: Don't include `or' and `bv'. * font/devdvi/generate/tc.map: Remove `rn'. * font/devdvi/*TC, font/devdvi/*EC: Regenerated. * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'. Fix code for `an'. * font/devX100/*, font/devX100-12/*, font/devX75/*, font/devX75-12/*: Regenerated. * tmac/dvi.tmac: Add special fonts `SA' and `SB'. Use .char (again) for `br', `ul', `rn', `or', and `ru'. Improve definition of `an'. * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and `ru'. * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'. * tmac/X.tmac: Add definition for `or'. * tmac/Xps.tmac: Undo change 2002-11-05. * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
* Added three new requests `schar', `fschar', and `rfschar'. `schar'wlemb2002-11-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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').
* Added new font `SC' (cmtex10) to devdvi.wlemb2002-11-101-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | * devdvi/generate/Makefile (FONTS): Add `SC'. (SC): New rule. * devdvi/generate/textex.map: New map file for cmtex. * devdvi/SC: New. * devdvi/Makefile.sub (DEVFILES): Updated. * tmac/dvi.tmac: Add fspecial entries for SC. Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is found before `S' since the font position of `SC' is lower due to the gaps in DESC's `font' line. * tmac/ec.tmac: Add a `special' call. * NEWS: Updated. * font/devhtml/R.proto: Remove double entry for `ti'. * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'. * tmac/tty-char.tmac: Remove entry for `bq'. * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'. * tmac/ec.tmac: Don't remove `aq' glyph. * tmac/X.tmac: Fix entry for `em'. Add entries for `fo' and `fc'. * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'. * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix documentation of `special' and `fspecial' requests.
* * font/devascii/R.proto, font/devcp1047/R.proto,wlemb2002-11-071-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | font/devlatin1/R.proto: Remove entry for `.i'. * font/devdvi/generate/textt.map: Add entry for `ad'. * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map, font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'. We need this for getting kerning values to compose `/l' and `/L'. * font/devdvi: Regenerated font definition files for CM fonts. * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'. * font/devutf8/R.proto: Ditto. Remove double entry for `ti'. * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries for (groff) ligatures, `la', and `ra'. Add "'C", "'c", `IJ', and `ij'. Remove double entry for `ti'. * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all double entries. Add "'C", "'c", `IJ', and `ij'. Fix entries for (groff) ligatures, `la', and `ra'. * tmac/ps.tmac (ps-achar): New macro. Define "'c" and "'C". * tmac/tty.tmac: Add entry for `.i'. * tmac/X.tmac (X-achar): New macro. Define "'c", "'C", and `:Y'. Add entries for `IJ' and `ij'. * tmac/Xps.tmac (Xps-achar): New macro. Define "'c" and "'C". Add entries for `IJ' and `ij'. * tmac/lbp.tmac (lbp-achar): New macro. Add fallback characters for all groff ligatures and many other glyphs. * tmac/dvi.tmac: Fix definitions of `_' and `ul'. Add entries for `/l' and `/L'. Define "'c" and "'C". Add entries for `IJ' and `ij'.
* * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.wlemb2002-07-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devutf8/R.proto: Adding some missing glyphs. * font/devutf8/NOTES: Updated. * tmac/dvi.tmac: Add more composite glyphs. * tmac/html.tmac: Updated. * man/groff_char.man: Add `sum' and `product' entities. * NEWS: Updated. Improved table, tab, and indenting support. * src/roff/troff/input.cc (file_iterator::suppress_newline_flag, string_iterator::suppress_newline_flag): Removed. Updated all function which have used it. * src/roff/troff/env.cc: Include `input.h'. (environment::add_node): Accept 0 as parameter. (environment::add_html_tag): Add `force' parameter. Updated all callers. (environment::add_html_tag_tabs): Ditto. For the moment, support left-aligned tabs only. (environment::make_html_tag): New function. (fill, no_fill): Set .br html tag additionally. (environment::newline): Emit `eol.ce' or `eol' tag for html. (environment::add_html_tag_eol): Removed. (tab_stops::distance_to_next_tab): Add variant for handling nextpos'. (environment::distance_to_next_tab): Ditto. Updated all callers. (environment::handle_tab): Handle tabs for html. * src/roff/troff/env.h: Updated. * src/roff/troff/div.cc: Updated all callers of `environment::add_html_tag'. * src/devices/grohtml/html-table.cc, src/devices/grohtml/html-table.h: New files. * src/devices/grohtml/html-text.cc (html_text): New members `blank_para' and `start_space'. (html_text::issue_tag): Don't emit TABLE_TAG. Handle indentation for PRE_TAG and P_TAG. (html_text::end_tag): Updated. (html_text::table_is_void, html_text::issue_table_begin, html_text::issue_table_end): Removed. (html_text::do_push): Simplified. [DEBUGGING]: Small fix. (html_text::push_para): Add new parameter for indentation; updated all callers. Handle PRE_TAG. (html_text::do_indent, html_text::do_table, html_text::done_table, html_text::is_in_table): Removed. (html_text::do_pre): Handle P_TAG also. (html_text::shutdown): Handle p->indent. (html_text::check_emit_text): Simplified. (html_text::do_emittext): Reset `blank_para'. (html_text::do_para): Add new parameter for indentation; updated all callers. (html_text::remove_indent): New function. (html_text::do_space): Handle verbatim text properly. (html_text::ever_emitted_text, html_text::starts_with_space, html_text::remove_para_align): New functions. (html_text::dump_stack_element, html_text::dump_stack): Updated. * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG. Updated. * src/devices/grohtml/post-html.cc: Include html-table.h. (INDENTATION): Removed. (text_glob): Added many `is_<foo>' functions. Added table description `tab'. Added `get_arg',`get_tab_args', `remember_table', and `get_table' member functions. (list): Add `insert' and `move_to' member functions. (page): Add `insert_tag' member function. (page::dump_page) [DEBUG_TABLES]: Improved. (html_printer): Add `table' and `max_linelength' elements. Add many `do_<foo>', `insert_<foo>', `next_horiz_pos', `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in', `remove_tabs', `remove_courier_tabs'. (html_printer::emit_raw): Handle indentation. (html_printer::do_center, html_printer::write_header): Updated. (html_printer::is_courier_until_eol): Check for tag. (html_printer::do_linelength): Handle max_linelength. (html_printer::do_page_offset, html_printer::do_indentation): Handle fill_on. (html_printer::do_tempindent): Updated. (html_printer::do_indentedparagraph): Removed. (html_printer::do_indent): Simplified. (html_printer::do_eol): Use `ever_emitted_text'. (html_printer::do_flush, html_printer::do_links): Don't call done_table. (html_printer::do_break): Handle end_tempindent. (html_printer::troff_tag): Get argument. Don't handle `.ip'. Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags. (html_printer::flush_page): Call `lookahead_for_tables'. Don't call `done_table'. (html_printer::add_to_sbuf): Always call do_indent. * src/devices/grohtml/Makefile.sub: Updated. * tmac/an-old.tmac (TP): Don't handle html device specially. (an-do-tag-html): New function which will be used instead of `an-do-tag' if html device is used. * tmac/html.tmac: Call .po to pass default page offset to grohtml. * tmac/s.tmac (@IP): Don't handle html device specially. (@IP-html): New function which will be used instead of `@IP' if html device is used. * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this is a hack which will eventually vanish again. (PIMG): Handle `-C' option correctly if not html. (HR): Use HTML-NS.
* Add new escape \F to switch font family.wlemb2002-04-151-2/+2
| | | | | | | | | | | | | | | | | | * src/roff/troff/input.cc (token::next): Handle \F. * src/roff/troff/env.cc (environment::set_family): Handle `interrupted' flag. * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it. * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of spaces in tags. * tmac/Xps.tmac: Remove some redundant code. * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac, tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man, man/groff_out.man, man/groff.man, man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with \f[].
* * tmac/ps.tmac, tmac/html.tmac,wlemb2002-03-241-2/+2
| | | | | tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'. * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
* * tmac/dvi.tmac, tmac/X.tmac: Replace `.char' with `.fchar'.wlemb2002-03-241-41/+38
| | | | | | | | * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since we use `.fchar' in dvi.tmac. * tmac/Xps.tmac: Simplify some char definitions. Add definition for \[f/]. * man/groff_char.man: Updated for new X.tmac.
* * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- thewlemb2002-03-231-0/+1
| | | | | | | | | | | internal .y.o rule took precendence over the .y.cc rule, compiling the yacc files with gcc instead of g++. * tmac/dvi.tmac: Add replacement font for `CB'. * tmac/doc.tmac: s/request/macro/ in messages. (doc-generic-macro): Improve error message. * tmac/groff_mdoc.man: Minor improvements.
* * tmac/pspic.tmac: Add support for -Tdvi.wlemb2002-03-111-0/+3
| | | | | | | | * tmac/dvi.tmac: Include pspic.tmac. * src/devices/grodvi/grodvi.man: Document it. * NEWS: Updated. * font/devlj4/generate/Makefile: Fix URL of metric files.
* * fonts/devcp1047/R.proto, fonts/devlatin1/R.proto,wlemb2002-03-021-3/+15
| | | | | | | | | | | | | | | | fonts/devhtml/R.proto: Remove `charXXX'entries. * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac where appropriate. * fonts/devlj4/generate/text.map: Remove `charXXX' entries. * fonts/devlj4/*: Regenerated all font definition files. * tmac/lj4.tmac: Load latin1.tmac. * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change from 2000-06-17: LJ4 metric files are *not* text files. * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string register to test for EBCDIC.
* * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encodingwlemb2002-03-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | files (as grops already does). * src/utils/afmtodit/afmtodit.man: Document comment lines in map files. * src/devices/grops/grops.man: Document comment lines in encoding files. * tmac/cp1047.tmac: New file. * tmac/dvi.tmac, tmac/tty-char.tmac: Use it. * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac. * tmac/Makefile.sub (NORMALFILES): Updated. * tmac/ec.tmac: Don't load latin1.tmac again. * fonts/devps/generate/lgreekmap, fonts/devps/generate/symbolchars, fonts/devps/generate/dingbats.map, fonts/devps/generate/dingbats.rmap, fonts/devps/text.enc, fonts/devps/generate/Makefile (symbolmap): Add header comment. * fonts/devps/generate/textmap: Ditto. Remove `charXXX' entries. * fonts/devps/symbolmap: Regenerated. * fonts/devps/*: Regenerated all font definition files.
* Add color support to grodvi (for drawing colors are currentlywlemb2002-03-011-0/+549
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | translated to gray values). * src/devices/grodvi/dvi.cc (FILL_MAX): Removed. (dvi_printer): Add `cur_color' member. (dvi_printer::set_color): New function. (draw_dvi_printer): Remove `fill'. (draw_dvi_printer::fill_next): Pass environment as parameter. Update code for new color support translated to gray. (dvi_printer::set_char): Updated. (dvi_printer::begin_page, dvi_printer::end_page): Handle color changes crossing the page border. (dvi_printer::draw): Updated. Remove cases `f' and `F'. * tmac/dvi.tmac: Add color definitions. * NEWS, src/devices/grodvi/grodvi.man: Updated. * tmac/an-old.tmac (R): Make this a macro to emit a warning if used incorrectly. * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent versions of autoconf. * configure: Updated. * doc/homepage.ms: Use `.blm'. * tmac/www.tmac (www-depth): New auxiliary variable. (www-pop-level): Don't issue HTML tag. (ULS, ULE, LI): Use absolute indentation. * src/devices/grops/ps.cc (ps_printer::begin_page, ps_printer::end_page): Switch forth and back to default color while starting a new page.
* Add support for font families `T' and `H'.wlemb2002-02-261-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devdvi/HBI: New file. * font/devdvi/B: Renamed to ... * font/devdvi/TB: This. * font/devdvi/BI: Renamed to ... * font/devdvi/TBI: This. * font/devdvi/I: Renamed to ... * font/devdvi/TI: This. * font/devdvi/R: Renamed to ... * font/devdvi/TR: This. * font/devdvi/H: Renamed to ... * font/devdvi/HR: This. * font/devdvi/Makefile.sub (DEVFILES): Updated. * font/devdvi/generate/Makefile (FONTS): Updated. (R, I, B, BI, H): Renamed to ... (TR, TI, TB, TBI, HR): This, respectively. * NEWS, src/devices/grodvi/grodvi.man: Updated. * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI. Add `styles' and `family' keywords. * tmac/dvi.tmac: Alias `H' to `HR'. Add some fspecial requests for italic fonts. Add TR and TI as special. Add support for `_' with font CWI. * src/roff/troff/number.cc (parse_expr): Add missing `break' for operator `:'. Until now, the expression `0:1' would return 2 instead of 1.
* * font/devdvi/generate/*.map: Remove all `charXXX' entries.wlemb2002-02-251-85/+89
| | | | | | | | | | | | | | | | * font/devdvi/generate/cork.map: Add 'y and 'Y. * font/devdvi/*: Updated. * tmac/dvi.tmac: Formatting. Add font `HBI' for the dvi output. * font/devdvi/HBI: New file. * font/devdvi/Makefile.sub (DEVFILES): Updated. * font/devdvi/generate/Makefile (HBI): New rule. (FONTS): Updated. (srcdir): Fixed. * NEWS: Updated. * font/devdvi/DESC.in: Don't mount CWI.
* Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:wlemb2000-10-261-0/+147
tmac.doc.old -> doc-old.tmac tmac.an.old -> an-old.tmac * tmac/tmac.*: Moved to ... * tmac/*.tmac: this. * tmac/man.local: Fix comment. * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man, tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. Added some `FILES' sections. More use of @...@ directives. Other minor updates. * arch/djgpp/README, font/devutf8/NOTES: Updated. * doc/homepage.ms, doc/groff.texinfo: Updated. * man/groff.man, man/roff.man: Updated. * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man, src/devices/grops/grops.man, src/devices/grotty/grotty.man: Updated. * src/preproc/pic/pic.man: Updated. * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old instead of -mdoc.old. * src/roff/grog/grog.man: Document -mdoc and -mdoc-old. * src/roff/nroff/nroff.man: Updated. * NEWS: Updated. * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment. * tmac/mm.diff: Removed -- it has no use now since the mm package is part of groff. * tmac/*: Removed trailing spaces. * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac subdirectory also).