summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* new xtotroff directoryimportfirstwlemb2004-06-012-0/+302
|
* new libxutil directorywlemb2004-06-014-0/+915
|
* new xditview directorywlemb2004-06-0132-0/+4951
|
* importwlemb2004-04-070-0/+0
|
* Initial revisionwlemb2004-04-072-0/+116
|
* o Added color supportwlemb2004-03-2216-323/+1967
| | | | | | | | | | o Adjusted vertical placement of hyphens around page numbering so that they are better centered on the height of the page number. o Re-wrote portions of the document processing macros so that tabs behave in a consistent and intuitive manner. Tab structures are now properly preserved from page to page and column to column.
* typo fixwlemb2004-03-141-2/+3
|
* * Makefile.comm (install_dev, uninstall_dev): Protect `for' loopswlemb2004-03-102-4/+9
| | | | against empty argument. Problem reported by <cgd@broadcom.com>.
* * m.tmac (S): Improve debug message.wlemb2004-03-102-3/+13
|
* * Changed default value for Hy in manual to 0jhaegg2004-03-103-4/+12
| | | | * Check Hy at each new page
* * Makefile.in (SEP): Replaced with...wlemb2004-03-057-12/+44
| | | | | | | | | | | | | | | | | | | | (RT_SEP, SH_SEP): Separators for the target platform's native path separator and the build environment, respectively. (fontpath, tmacpath): Use RT_SEP. (MDEFINES): Updated. * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP. * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP. * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP. * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP. * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to reduce alignment problems with newer printers which use built-in TrueType fonts (instead of the older Intellifonts). The ideal solution is to provide a second set of groff metric files, but this is extremely time-consuming to produce, given that HP's metric files are very rudimentary.
* * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.wlemb2004-03-014-13/+32
| | | | | | | | | | | s/operand/argument/ in error message. * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml is in use. * tmac/s.tmac (XE): Fix error message.
* * m.tmac (S): Fix scaling indicator for vertical spacing.wlemb2004-03-012-5/+9
|
* * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:wlemb2004-02-296-88/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New macros. * src/roff/groff/pipeline.c: Declare strcasecmp. (run_pipeline) [_WIN32]: Use function name variants which don't start with `_'. Fix stream handling. * src/include/nonposix.h: Fix declaration of `system_shell_name'. Declare `spawnvp_wrapper' and macro definitions of spawnvp only for platforms which use the native Win32 runtime libraries. (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version. * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR, QUOTE_ARG_REALLOC_ERROR): Fix string. * src/preproc/html/pre-html.cpp: Remove declaration of `spawnvp_wrapper'. Don't use __MINGW32__. s/DEBUG_FILE/DEBUG_FILE_DIR/. (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros. (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros. (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix calls to `set_redirection' and `WAIT'. [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'. Fix calls to `set_redirection' and `save_and_redirect'. (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls to `set_redirection' and `save_and_redirect'. (usage): Fix message. (makeTempFiles, main): Use `DEBUG_FILE'.
* * src/roff/troff/troff.h (WARN_TOTAL): Fix value.wlemb2004-02-232-2/+6
|
* New files.wlemb2004-02-232-0/+323
|
* o Rewrote the macros associated with DOCTYPE LETTER so that thewlemb2004-02-2222-858/+1223
| | | | | | | | | | | | | | | | | | | | user can enter DATE, TO and FROM in any order s/he likes. For backward compatibility, if the older, fixed order (DATE-TO-FROM) is used, the date goes flush right with two linespaces after it, while the other fields go flush left with a single linespace separating them. o Fixed handling of DOCHEADER OFF <distance> when <distance> fell short of the top margin of running text (the change is actually in the SHIM macro, which is called by DOCHEADER). o Added a selection of iso 639 two-letter language codes as optional arguments to SMARTQUOTES, so that the use can enter her/his language code to get language specific quoting styles o Changed the way the strings for \*[ST<n>], \*[ST<n>X], \*[FU<n> and \*[BU<n> are read. Formerly, they were entered literally. Now they're entered as an array.
* * src/libs/libgroff/quotearg.c: New file, providing proper argumentwlemb2004-02-228-18/+73
| | | | | | | | | | | | | | | | | | | quoting for MSVC's spawn* and exec* functions. * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around spawnvp with proper quoting for MSVC. * src/libs/libgroff/assert.cpp (program_name), src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'. * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated. * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'. * src/include/error.h (program_name): Declare as `extern "C"'. * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp. * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare spawnvp_wrapper. [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
* * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New globalwlemb2004-02-212-57/+102
| | | | | | | | | | | | variable. (sbasename) [__MSDOS__ || ...]: New function. (system_shell_name) [__MSDOS__ || ...]: Use a different, more generic algorithm. (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated. (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead of XXX. Use STDOUT_FILENO instead of hardcoded file handle. (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
* * src/roff/troff/div.cpp: Include nonposix.h after troff.h towlemb2004-02-203-3/+10
| | | | avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
* * font/devlj4/Makefile.sub (DEVFILES): Updated to contain allwlemb2004-02-194-5/+43
| | | | | | | | | | | new font and mapping files. * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty an input pipe. This is needed for the MSVC compiler to make troff's `-o' option work. * src/roff/troff/div.cpp: Include nonposix.h. (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
* typowlemb2004-02-181-1/+1
|
* * font/devlj4/generate/special.awk: New script.wlemb2004-02-1851-20427/+27061
| | | | | | | | * font/devlj4/generate/Makefile (S): Use special.awk. * font/devlj4/*: Regenerated, including the following new files: Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI), MS Symbol (SYMBOL), Wingdings (WINGDINGS). * NEWS: Document new lj4 fonts and revised hpftodit.
* * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.wlemb2004-02-182-3/+7
|
* * src/libs/libgroff/progname.cpp: Replaced with...wlemb2004-01-264-5/+11
| | | | | * src/libs/libgroff/progname.c: New file. * src/libs/libgroff/Makefile.sub: Updated accordingly.
* fix typowlemb2004-01-261-2/+2
|
* o Added lists and associated macros. Mom now does (nested) lists.wlemb2004-01-2518-146/+1097
| | | | | | | | | | | | | | | | | | | o Added German-style lowered double quotes and two styles of guillemets to SMARTQUOTES. o Added macro SIZE, intended to be called inline as \*[SIZE <n>]. This is to bring mom's inline size change syntax into line with her other inlines. o Added ESC_CHAR as an alias of .ec o Added doc entries for lists. o Updated SMARTQUOTES entry in docs. o Updated reserved words in docs. o Fixed a few more typos in docs.
* * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.wlemb2004-01-185-329/+444
| | | | | | | * font/devlj4/generate/wingdings.map, font/devlj4/generate/symbol.map: Include unnamed glyphs. Use groff glyph names where possible. * src/devices/lj4_font.man: Minor updates.
* * tmac/www.tmac (DC): Handle TTY devices.wlemb2004-01-1514-100/+689
| | | | | | | | | | | | | | | | | | | | | | | | * doc/webpage.ms: Document viewCVS from ffii.org. * NEWS, README: Updated. * src/roff/groff/groff.man: Mention lj4_font man page. * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New variables. (FONTS): Add SYMBOL and WINGDINGS. (SYMBOL, WINGDINGS): New targets. * src/devices/grolj4/lj4_font.man: New man page. * src/devices/grolj4/Makefile.sub (MAN5): New variable. * src/devices/grolj4.man: Mention lj4_font man page. * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments. * src/utils/hpftodit/hpftodit.man: Document it. (CW): New macro. Remove details about fonts (which are now in lj4_font.man). * font/devlj4/generate/symbol.map, font/devlj4/generate/wingdings.map: New files.
* * font/devlj4/generate/special.map: Map MSL 228 to U+221F.wlemb2004-01-113-9/+111
| | | | | | | | | | | | | Revert most of the change from 2004-01-03 to better control used symbol sets. * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure. (text_symbol_sets, special_symbol_sets): New arrays. (symbol_set_table): New global variable. (read_symbol_sets): Use search order given in the text_symbol_sets and special_symbol_sets arrays. If command line flag -a is not given, search both arrays. (output_charset): Require x_height_tag only for command line flag -i.
* Implement string-valued registers \n[.m] and \n[.M] to return thewlemb2004-01-0720-43/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | name of the current drawing and background color, respectively. * src/roff/troff/symbol.h: Moved to... * src/include/symbol.h: Here. Small fixes to make it work outside of the `troff' directory. * src/roff/troff/symbol.cpp: Moved to... * src/libs/libgroff/symbol.cpp: Here. Small fixes to make it work outside of the `troff' directory. * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Updated. * src/include/color.h: Include symbol.h. (color): Add new field `nm'. * src/libs/libgroff/color.cpp (color::color): Updated. * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp, src/roff/troff/node.cpp, src/roff/troff/number.cpp, src/roff/troff/reg.cpp: Don't include symbol.h. * src/roff/troff/env.cpp: Don't include symbol.h. (environment::get_glyph_color_string, environment_get_fill_color_string): New member functions. (init_env_requests): Handle `.m' and `.M' registers. * src/roff/troff/input.cpp: Don't include symbol.h. (default_symbol): Moved to symbol.cpp/symbol.h. (do_glyph_color, do_fill_color, define_color): Pass symbol name to color constructor. * src/roff/troff/env.h: Updated. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document new registers.
* * src/roff/troff/nroff.cpp (space_node::get_breakpoints,wlemb2004-01-0517-19/+26
| | | | | | space_node::nbreaks): Protect against zero `next' field. Update copyright years.
* In hpftodit, use the symbol sets offered in the TFM.wlemb2004-01-033-205/+112
| | | | | | | | | | | | | | * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant. (symbol_set, text_symbol_sets, special_symbol_sets, symbol_set_table): Removed. (get_printcode): Removed. (read_symbol_sets): Initialize `symbol_set' field with `NO_SYMBOL_SET'. Simplify code to just use the `kind' value. (output_charset): Improve output formatting. (dump_symbols): Simplified. font/devlj4/generate/text.map: Fix typos.
* * font/devlj4/generate/text.map: Add more MSL numbers.wlemb2004-01-034-40/+144
| | | | | | | | | | | | | * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro. (text_symbol_sets): Add more symbol sets. (debug_flag): New static variable (moved from `main'). (get_printcode, show_symset): New functions. (main): Remove `debug_flag'. (output_charset): Use `show_symset'. (dump_symbols): Use `show_symset'. Print symsets for all glyphs. (read_map): Actually call `unicode_to_ucode_make' but this time correctly.
* * font/devlj4/generate/text.map, font/devlj4/generate/special.map:wlemb2004-01-014-107/+164
| | | | | | | | | | | | Fix placement of comments. * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if option `-d' is given. (output_charset): Improve warning messages to give more information. (dump_symbols): Make information more precise. (usage): Updated. (read_map): Don't call unicode_to_ucode_name; the glyph names must appear as-is and shouldn't be decomposed.
* * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.wlemb2003-12-314-9/+109
| | | | | | | | * font/devlj4/generate/Makefile (IFLAG): Updated to new units. (FONTS): Add TrueType font families Arial and Times New Roman. (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets. * font/devlj4/generate/text.map: Fix Unicode values of `fi' and `fl'.
* * test-groff.in (SEP): Quote value.wlemb2003-12-313-2/+9
| | | | | | * src/roff/troff/node.cpp (suppress_node::tprint): Change type of `tem' to `char*' to avoid deallocation of a pointer to a constant object which some compilers don't like.
* * font/devlj4/generate (text.map, special.map): Rewritten to workwlemb2003-12-314-439/+1061
| | | | | | | with the new hpftodit version. * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol set and 8bit character code for all glyphs also.
* * src/libs/libgroff/strcasecmp.c: Updated from gnulib.wlemb2003-12-302-1/+5
|
* More fixes for MSVC compiler.wlemb2003-12-3010-24/+76
| | | | | | | | | | | | | | | | | | | | | | | * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use $(SEP). * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO) [_MSC_VER]: Define conditionally. (getpid) [_MSC_VER]: Remove. Include direct.h and process.h conditionally. * src/roff/troff/node.cpp (suppress_node::tprint): Don't use parentheses for a_delete. * src/utils/lookbib/lookbib.cpp: Include nonposix.h. * test-groff: Replaced with... * test-groff.in: This new template to handle path separator properly. * configure.ac: Check for direct.h and process.h. Generate test-groff script. * configure, src/include/config.hin: Regenerated.
* Add integral extension glyph.wlemb2003-12-2835-31/+318
| | | | | | | | | | | | | | Add new option `-x' to afmtodit to suppress use of built-in AGL. * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'. * font/devps/generate/textmap: Provide entry for `integralex' to override (old) PUA value of the AGL. * font/devps/generate/Makefile (SS): Add afmtodit option `-x'. * font/devps/*: Regenerated. * src/utils/afmtodit/afmtodit.pl: Add option `-x'. * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
* Add forgotten `coproduct' symbol (already available for DVI).wlemb2003-12-288-1/+17
| | | | | | | * font/devhtml/R.proto, font/devps/generate/textmap, font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man, src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add U+2210 (\[coproduct]).
* hpftodit has been extended to handle TrueType metric files andwlemb2003-12-276-171/+1619
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | more glyphs. See hpftodit.man for more details. * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, ctype.h, and unicode.h. s/msl/charcode/ everywhere since we now handle Unicode values also. (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros. Use it where appropriate. (MULTIPLIER): Replaced with... (multiplier): New global static variable. (scale): Updated. (tag_type): Add more TFM tags. (tag_name): New array. (ENUM_TYPE, FLOAT_TYPE): Removed. (BYTE_TYPE): New value assigned. (ASCII_TYPE, RATIONAL_TYPE): New enumeration values. (text_symbol_sets, special_symbol_sets): Extended to cover more sets. (check_type): Add return value. (check_units): Add parameters to get ppi and upem values. Handle TrueType TFM data. (output_font_name): New function. (output_charset): Add parameter to handle TFM type. Handle TrueType TFMs also. (em_fract): New macro. (dump_tags): Be much more verbose and handle more tags. (dump_ascii, dump_symbol_sets, dump_symbols): New functions. (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New functions. (read_map): Add parameter to handle TFM type. Handle both MSL and Unicode mappings. (main): Add two new command line options `-a' and `-q'. Updated to make use of new functions. (usage): Updated. * src/utils/hpftodit/hpuni.cpp: New file. * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man: Updated. * src/include/nonposix.h (read) [_MSC_VER]: Define.
* * src/utils/afmtodit/afmtodit.man: Some reformulations as suggestedwlemb2003-12-252-11/+16
| | | | by Michail Vidiassov <master@iaas.msu.ru>.
* * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,wlemb2003-12-2213-100/+357
| | | | | | | | | | | | | | | | | 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.
* Add some glyphs needed for Turkish.wlemb2003-12-194-1/+24
| | | | | | | | | * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327, and u0049_0307. * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. * tmac/tty-char.tmac: Add representations for u00{47,67}_0306, u00{53,73}_0327, and u0049_0307.
* * src/devices/grops/ps.cc (ps_output::put_float): Fix line lengthwlemb2003-12-181-3/+2
| | | | computation.
* * src/devices/grops/ps.cc (ps_output::put_float): Revert changewlemb2003-12-182-2/+14
| | | | | from 2001-10-04. Remove trailing zeros.
* Make \? transparent to end-of-sentence recognition.wlemb2003-12-172-0/+13
| | | | | * src/roff/troff/input.cc (non_interpreted_node): Add `ends_sentence' member function.
* * doc/groff.texinfo: Document `dt' request correctly.wlemb2003-12-162-31/+41
| | | | Other minor typographical improvements.