summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Integrate gxditview into groff's standard directory hierarchy.wlemb2004-06-0140-6402/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xditview/*: Moved to ... * src/devices/xditview/*: Here. Moved DviChar.h and XFontName.h to src/include. Moved DviChar.c and XFontName.c to new directory src/libs/libxutil. Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c. Moved xtotroff.c to new directory src/utils/xtotroff. Provide proper Makefile.sub files (reusing the stuff from Imakefile.in). DESC renamed to DESC.in. Removed GXDitview-ad.h, INSTALL, Imakefile.in. Converted everything from K&R to ANSI C. Decorated with const where appropriate. Cast string constants with `String' and `char *' where appropriate. Made it compile with C++ (used as a C compiler). Removed other minor compiler warnings. * src/devices/xditview/device.c: Include config.h, string.h, and defs.h. Don't declare `exit', `strtok', `strchr', and `getenv'. (FONTPATH): Remove. * src/devices/xditview/font.c: Don't declare `XParseFontName' and `XFormatFontName'. * src/devices/xditview/xditview.c: Include config.h. Include stdio.h earlier. Protect declaration of `popen' and `pclose' with NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE. Replace `caddr_t' with `XtPointer'. (MakePromptFunc): New typedef. (DoPrint): Use RETSIGTYPE. (promptfunction): Change type to MakePromptFunc. (MakePrompt): Use MakePromptFunc for third argument. (xmalloc): Removed. * src/devices/xditview/ad2c: Add casts to `String'. * src/include/XFontName.h (XFontNameString): Don't use array notation. Add prototypes for `XParseFontName', `XFormatFontName', `XCompareFontName', and `XCopyFontName'. * src/include/Makefile.sub (HDRS): Add `DviChar.h' and `XFontName.h'. * src/utils/xtotroff/xtotroff.c: Include getopt.h. Don't declare `XParseFontName' and `XFormatFontName'. (xmalloc): Removed. (main): Remove `optind' and `optarg'. * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables (to select programs which need X). Make XDEVIDIRS depend on `FORCE'. (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for X support). (MDEFINES): Updated. (LIBDIRS): Use XLIBDIRS. (CPROGDIRS): Use XPROGDIRS. (DEVDIRS): Remove font directories for gxditview. (ALLDIRS, DISTDIRS): Add XDEVDIRS. (EXTRADIRS): Remove src/xditview. * Makefile.sub (DISCLEANFILES): Updated. * Makefile.comm (LIBXUTIL): New variable. (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS. (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS. * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS. * aclocal.m4 (GROFF_X11): New function. * configure.ac: Call GROFF_X11. Don't create src/xditview/Imakefile. Don't emit notice how to build gxditview. * configure: Regenerated. * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
* Initial revisionwlemb2004-06-0138-0/+6168
|
* * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).wlemb2004-05-288-9/+53
| | | | | | | | | | | | | | | | Fix problems with `friend name injections'. * src/preproc/eqn/box.h (make_mark_box, make_lineup_box, make_script_box), src/roff/troff/div.h (end_diversions), src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo change 2004-04-08. * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'. * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp, src/libs/libgroff/color.cpp: Include lib.h.
* * REVISION: Set to 2.wlemb2004-05-163-10/+10
| | | | | | | | | | | * aclocal.m4 (GROFF_STDINT_H): Removed. (GROFF_INTTYPES_H): Define HACE_CC_INTTYPES_H. * configure.ac: Updated. * configure, src/include/config.hin: Regenerated. * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but inttypes.h conditionally.
* *** empty log message ***wlemb2004-05-161-0/+5
|
* * src/preproc/html/pre-html.cpp (make_message): Make it work forwlemb2004-05-091-3/+1
| | | | | snprintf versions which don't conform to ANSI C 99 (this is, counting the string's trailing null byte in the return value).
* * src/roff/troff/node.cpp (suppress_node::tprint): Don't expectwlemb2004-05-081-1/+4
| | | | that all implementations of sprintf handle null pointers correctly.
* * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:wlemb2004-05-062-1/+3
| | | | | | | | | | | | | Document `.U' register. * src/roff/troff/env.cpp (environment::mark_last_line) [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers. New read-only register `.U'; it returns 1 in safer mode and 0 otherwise. * src/roff/troff/input.cpp (init_input_requests): Implement `.U' register.
* * device.c (scale_round): Round correctly for negative valueswlemb2004-04-192-3/+12
| | | | | (this is the same function as in src/libs/libgroff/font.c). Found by Paul Eggert.
* * src/include/font.h (font): Use `int' for ch_index.wlemb2004-04-1917-71/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/libs/libgroff/font.cpp (font::alloc_ch_index, font::compact): Updated. * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler warnings. * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp (hyphen_word): Fix compiler warnings. * src/roff/troff/input.cpp (get_char_for_escape_name): Return `char'. Update all callers. (get_delim_number, get_line_arg): Change second argument type to `unsigned char'. (macro_header::copy, token::next, do_define_string, do_define_character, substring_request, asciify_macro, unformat_macro, read_size, non_interpreted_node::interpret, while_request, main: Fix compiler warnings. (read_color_draw_node): Initialize `col'. * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make `start_col' and `end_col' of type `int'. (vertical_rule): Make `col' of type `int'. * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check for EOF. * src/preproc/refer/label.y (uppercase_array, lowercase_array): New arrays. (format_serial): Use them to remove dependency on ASCII. * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix compiler warning. * src/devices/grops/psrm.cpp (resource_manager::supply_resource): Ditto. * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix compiler warnings. (glyph): Change type of `hpos' to `int'. * src/devices/lbp/lbp.cpp (strsep): Removed. Unused. * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings. * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings. * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
* * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,wlemb2004-04-1724-96/+103
| | | | | | | | | | | | | | | | | | | | | | | src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp, src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use `double' instead of `float' everywhere. * src/preproc/grn/main.cpp: Use `double' instead of `float' everywhere. (main): Add return value. * src/preproc/grn/hdb.cpp: Use `double' instead of `float' everywhere. Update all user functions. * src/include/search.h, src/include/ptable.h, src/include/printer.h, src/preproc/eqn/box.h, src/preproc/pic/object.h, src/preproc/refer/refer.h, src/preproc/tbl/table.h, src/preproc/tbl/table.cpp, src/roff/troff/env.h, src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h, src/roff/troff/input.cpp, src/roff/troff/request.h, src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward declarations. * src/utils/indxbib/signal.c: Include stdlib.h.
* * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don'twlemb2004-04-101-2/+2
| | | | use anonymous type.
* * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.wlemb2004-04-091-2/+2
| | | | * arch/misc/shdeps.sh: Generate better comment for sed script.
* * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),wlemb2004-04-0853-536/+576
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list), src/libs/libgroff/uniuni.cpp (unicode_decompose_list), src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp (polyfill), src/preproc/grn/main.cpp (polyfill), src/preproc/refer/command.cpp (command_table), src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which gcc 3.5 doesn't like). Removing many compiler warnings. groff should now compile with a C++ compiler used for C files also. [Simple variable renamings to avoid shadowing aren't logged in detail.] * src/devices/grodvi/dvi.cpp: Some local variable renamings. (draw_dvi_printer::draw) ['c']: Enclose in block. * src/devices/grohtml/post-html.cpp: Some local variable renamings. (page::add_line): Fix typos. * src/devices/grohtml/html-text.cpp: Some local variable renamings. * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE. Some local variable renamings. * src/devices/grolbp/lbp.h: Some local variable renamings. * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local variable renamings. * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag): Remove redundant local variable declaration. * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style. Don't use `caddr_t' but `void *'. Enclose functions with `extern "C"' for C++. * src/libs/libdriver/input.cpp (remember_filename, remember_source_filename): Use cast for string constant. * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp, src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp, src/libs/libgroff/geometry.cpp: Some local variable renamings. * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R style. Enclose functions with `extern "C"' for C++. * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros. (needs_quoting): Return `int'. (quote_arg): Add proper casts to malloc and realloc. * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and various MS Windows environments. (spawnvp_wrapper): Add proper cast to malloc. * src/preproc/eqn/box.h: Remove redundant declarations of `make_script_box', `make_mark_box' and `make_lineup_box'. * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'. * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local variable renamings. * src/preproc/grn/hpoint.cpp: Some local variable renamings. * src/preproc/grn/hgraph.cpp: Some local variable renamings. (dx, dy): Renamed functions to... (deltax, deltay): This. * src/preproc/grn/main.cpp: Some local variable renamings. (deffont): Add `const'. (initpic, conv): Use cast for string constant. * src/preproc/html/pre-html.cpp: Some local variable renamings. (makeFileName, alterDeviceTo, addZ): Use cast for string constant. (char_buffer::run_output_filter): Second argument is unused. * src/preproc/html/pushback.cpp: Some local variable renamings. * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'. * src/preproc/pic/object.cpp: Some local variable renamings. * src/preproc/refer/label.y (lookup_label): Remove redundant declaration of local variable. * src/preproc/soelim.cpp: Remove redundant declaration of `interpret_lf_args'. * src/preproc/tbl/main.cpp: Some local variable renamings. * src/roff/groff/groff.cpp (main): Use cast for string constant. * src/roff/groff/pipeline.c: Enclose declarations of `error', `c_fatal', and `i_to_a' with `extern "C"' for C++. Don't use C++-style comments. * src/roff/troff/env.h: Remove redundant declaration of `title'. * src/roff/troff/node.h, src/roff/troff/env.cpp, src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable renamings. * src/roff/troff/div.h: Remove redundant declaration of `end_diversions'. * src/roff/troff/troff.h: Remove redundant declaration of `cleanup_and_exit' * src/roff/troff/input.cpp: Remove redundant declaration of `handle_first_page_transition' and `process_input_stack'. * src/utils/hpftodit.cpp: Some local variable renamings. * src/utils/indxbib/signal.c: Enclose functions with `extern "C"' for C++. Don't define RETSIGTYPE. * src/utils/indxbib/indxbib.cpp: Some local variable renamings. * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style. (error): Use `const' in argument. (main): Remove redundant declaration of `optind'. Move declaration of `Version_string' to top-level. * PROBLEMS: Document difficulties compiling signal.c if a C++ compiler is used for C. * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
* Make scripts like nroff.sh and neqn.sh portable across variouswlemb2004-04-074-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | (Unix-like) shell implementations from Cygwin, MSYS, etc., which use non-POSIX path separators. The idea is to extend those scripts to decide at run-time (of the script) which path separator to use. * arch/misc/Makefile.sub: New file. * arch/misc/shdeps.sh: New file, generating OS dependency fixups. This script handles @GROFF_BIN_PATH_SETUP@, replacing it with a proper definition of the variable `GROFF_RUNTIME'. * Makefile.in (SH_DEPS_SED_SCRIPT): New variable. (MDEFINES): Add SH_DEPS_SED_SCRIPT. (PROGDEPDIRS): New variable. `FORCE' it. (PROGDIRS): Add PROGDEPDIRS. * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT. Don't substitute @SEP@ and @BINDIR@. * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@. (PATH): Use GROFF_RUNTIME. * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT. Don't substitute @SEP@ and @BINDIR@. * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@. (PATH): Use GROFF_RUNTIME.
* typo fixwlemb2004-03-141-2/+3
|
* * Makefile.in (SEP): Replaced with...wlemb2004-03-052-2/+2
| | | | | | | | | | | | | | | | | | | | (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-012-11/+16
| | | | | | | | | | | 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.
* * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:wlemb2004-02-295-88/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-231-2/+2
|
* New files.wlemb2004-02-232-0/+323
|
* * src/libs/libgroff/quotearg.c: New file, providing proper argumentwlemb2004-02-227-18/+51
| | | | | | | | | | | | | | | | | | | 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-211-57/+89
| | | | | | | | | | | | 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-202-3/+5
| | | | avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
* * font/devlj4/Makefile.sub (DEVFILES): Updated to contain allwlemb2004-02-192-4/+19
| | | | | | | | | | | 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.
* * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.wlemb2004-02-181-2/+2
|
* * src/libs/libgroff/progname.cpp: Replaced with...wlemb2004-01-262-1/+1
| | | | | * src/libs/libgroff/progname.c: New file. * src/libs/libgroff/Makefile.sub: Updated accordingly.
* * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.wlemb2004-01-181-13/+16
| | | | | | | * 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-156-92/+283
| | | | | | | | | | | | | | | | | | | | | | | | * 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-111-8/+90
| | | | | | | | | | | | | 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-0715-31/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0512-13/+15
| | | | | | space_node::nbreaks): Protect against zero `next' field. Update copyright years.
* In hpftodit, use the symbol sets offered in the TFM.wlemb2004-01-031-191/+84
| | | | | | | | | | | | | | * 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-031-29/+73
| | | | | | | | | | | | | * 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-011-84/+101
| | | | | | | | | | | | 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-311-1/+9
| | | | | | | | * 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-311-1/+1
| | | | | | * 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-311-4/+7
| | | | | | | 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-301-1/+1
|
* More fixes for MSVC compiler.wlemb2003-12-304-3/+21
| | | | | | | | | | | | | | | | | | | | | | | * 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-282-23/+29
| | | | | | | | | | | | | | 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-282-0/+2
| | | | | | | * 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-275-171/+1573
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-251-11/+11
| | | | by Michail Vidiassov <master@iaas.msu.ru>.
* * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,wlemb2003-12-221-5/+5
| | | | | | | | | | | | | | | | | 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.
* * 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-181-2/+8
| | | | | from 2001-10-04. Remove trailing zeros.
* Make \? transparent to end-of-sentence recognition.wlemb2003-12-171-0/+6
| | | | | * src/roff/troff/input.cc (non_interpreted_node): Add `ends_sentence' member function.
* * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.wlemb2003-12-122-2/+4
|
* *** empty log message ***wlemb2003-12-111-5/+5
|