summaryrefslogtreecommitdiff
path: root/tmac/tty.tmac
Commit message (Collapse)AuthorAgeFilesLines
* Add Cyrillic support to devutf8.wl2005-03-141-0/+3
| | | | | | | | | | | | * font/devutf8/R.proto: Add Cyrillic blocks. * tmac/unicode.tmac: New file. * tmac/tty.tmac: Include unicode.tmac if device is utf8. * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac. * NEWS: Updated.
* * tmac/an-old.tmac: Use register `HY' to control hyphenation.wlemb2003-03-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it. Added support to access more than 256 glyphs in Type 1 fonts. * src/devices/grops/ps.cc (subencoding): New structure. (style): Add `sub' field. Updated all users. (ps_printer): Add `subencodings' and `next_subencoding_index' fields. Add `set_subencoding', `get_subfont' and `encode_subfont' member functions. Updated all users. (ps_printer::set_char): Use `set_subencoding'. (make_subencoding_name): New function. (ps_printer::set_style): Handle case where `sty.sub' is not zero. (ps_printer::~ps_printer): Emit subencoding definitions. * src/devices/grops/psrm.cc (valid_input_table): New array to properly support EBCDIC. (white_space): Add `\f'. (ps_get_line): Change first argument to be of type `string &'. Updated all callers. This allows to get lines of arbitrary length. Use `valid_input_table'. Remove warning about non-conforming PS line length. This seems not to be of great importance -- for example, dvips don't emit a warning either. (PS_LINE_MAX): Removed. (matches_comment): Change first argument to be of type `string &'. * src/devices/grops/grops.man, src/devices/grops/TODO: Updated. * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed, %AGL_to_unicode, %default_ligatures): New hash tables. Read all map entries. Add unencoded characters. Check for default ligatures if there are no `L' entries. Print all kern entries. Print all characters in charset. * src/utils/afmtodit/afmtodit.man: Updated. * font/devps/*: Regerated all fonts. * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence of characters, just use `.trin'. Otherwise the mapping is depending on the font encoding. * tmac/ps.tmac: Add `fi' and `fl'. Improve `Fi' and `Fl'. * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'. * tmac/Xps.tmac: Fix `em'. * NEWS: Updated.
* * src/libs/libgroff/font.cc (font::load): Fix error message forwlemb2003-03-031-1/+1
| | | | | | | | | | bad character type. * src/devices/grops/grops.man: Improve documentation of the -b flag. * tmac/tty.tmac: Load latin1.tmac for all TTY devices except `ascii' and `cp1047'.
* * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.wlemb2003-01-021-0/+1
| | | | | | | | | | | | | | | | | | * 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.
* * font/devdvi/generate/tc.map: Remove `**'.wlemb2002-12-221-0/+6
| | | | | | | | | | | | | | | | | | * 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-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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'.
* Added new font `SC' (cmtex10) to devdvi.wlemb2002-11-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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'.
* * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'wlemb2002-04-201-0/+1
| | | | | | | | | | | | | | | | | | | | will now form a chain, e.g. .pi foo .pi bar is now the same as .pi foo | bar This is for compatibility with plan 9's troff. * tmac/tty.tmac: Set default tab values to 0.8i to be compatible with UNIX troff. * NEWS: Updated. * doc/groff.texinfo: Add documentation of remaining requests and registers.
* * tmac/tty.tmac: Don't use shc request.wlemb2002-04-051-3/+0
| | | | | * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'. * NEWS: Updated.
* * tmac/tty.tmac: Add missing backslash.wlemb2002-04-051-1/+1
|
* Add three glyphs `t+-', `tmu', and `tdi' which are textual variantswlemb2002-03-261-0/+1
| | | | | | | | | | | | | | | | | | | | | of `+-', `mu', and `di', respectively. * font/devascii/R.proto, font/devutf8/R.proto, font/devlatin1/R.proto, font/devhtml/R.proto, font/devcp1047/R.proto, font/devlpb/*: Add them. * font/devps/generate/textmap: Ditto. * font/devps/*: Regenerated. * font/devlj4/generate/text.map: Add them. * font/devlj4/*: Regenerated. * font/devdvi/generate/tc.map: Use them. * font/devdvi/generate/texsy.map: Add them. * font/devdvi/*: Regenerated. * font/devX*/*: Regenerated. * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac, tmac/tty-char.tmac: Updated. * NEWS, man/groff_char.man: Updated.
* * tmac/ps.tmac, tmac/html.tmac,wlemb2002-03-241-44/+40
| | | | | tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'. * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
* * fonts/devcp1047/R.proto, fonts/devlatin1/R.proto,wlemb2002-03-021-4/+24
| | | | | | | | | | | | | | | | 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.
* Adding options -C (compatibility mode) and -c (grotty's old outputwlemb2002-02-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scheme) to nroff. * src/roff/nroff/nroff.sh: Implement it. Remove `-Wall'. * NEWS, src/roff/nroff/nroff.man: Updated. Implementing color support in grotty. The new switch -c activates the old drawing scheme, disabling color at the same time. The new switch `-i' selects italic instead of underlining (SGR only). * src/devices/grotty/tty.cc (putstring): New define instead of `fputs'. Updated all callers. (old_drawing_scheme): New global variable. (COLOR_CHANGE): New enum value. (SGR_*): New defines containing color handling escape sequences. (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines. (glyph): New members `back_color_idx' and `fore_color_idx'. (glyph::order): Add COLOR_CHANGE. (tty_printer): New members `cur_fore_idx', `curr_back_idx', `is_underline', `is_bold', `cu_flag', `tty_colors'. New methods `make_underline', `make_bold', `color_to_idx', `change_color', `put_color'. (cu_flag): Moved into `tty_printer' class. (tty_printer::tty_printer): Initialize colors. (tty_printer::add_char, tty_printer::set_char, tty_printer::special, tty_printer::draw, tty_printer::end_page): Handle colors also. (main): Add options `-c' and `-i'. (usage): Updated. * NEWS, src/devices/grotty/grotty.man: Updated. * src/include/errarg.h (errarg): Add support for `unsigned int'. * src/libs/libgroff/errarg.c: Implement it. * src/include/printer.h (printer): Add `change_color' method (currently used by grotty only). * src/libs/libdriver/printer.cc: Implement it. * src/libs/libdriver/input.cc (parse_D_command, do_file): Add call to `pr->change_color'. * src/roff/troff/node.cc (troff_output_file::fill_color, troff_output_file::glyph_color): Call `do_motion'. * tmac/tty.tmac: Add color definitions. * src/roff/groff/groff.man: Minor fixes.
* * man/groff_char.man: Add Euro symbol.wlemb2002-02-041-0/+2
| | | | | * man/groff_diff.man: Improve documentation of `.am1' and `.as1'. * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
* Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:wlemb2000-10-261-0/+50
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).