summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * tmac/doc.tmac (An): Fix error message.FDLwlemb2004-08-282-2/+6
|
* o Version changed from the 1.1.x series to 1.2. All of thewlemb2004-08-0922-538/+2285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | features I originally wanted mom to have originally have been implemented, and appear to be stable. o Major overhaul to the setting of page traps and the handling of footnotes, both "normal" footnotes and footnotes that occur inside QUOTE, BLOCKQUOTE and EPIGRAPH. o Addtion of font "styles" to om.tmac, plus changes to the FAMILY and FT macros to manage them. New section in the doc appendices on adding fonts and managing the new font styles. o Mom now uses a "fallback font" whenever there's an illegal call to FAMILY. o RW and EW now affect only the font in effect. A change of family or font disables them. o BR_AT_LINE_KERN now properly does a .brp (spread and break) when used in justified text. o NEWPAGE, which used to be an alias for .bp, has been moved into its own macro, in order to make it more responsive to some unusal situations. o Some changes to elvis_syn.new, including that the file extensions recognized by elvis now include both .mom and .tmac. This makes om.tmac much easier to read. *Jul 6 2004 o FT and FAM(ILY) reworked to take advantage of if S, if F and \n[.sty] additions to groff (1.19.2). Warnings are emitted if a style hasn't been registered, or if a font style doesn't exist in the current family. Invalid .FAM(ILY) calls now use a "fallback" font" (although no warning is issued); fallback is user-settable o New macro, FALLBACK_FONT. Not only controls the fallback font for invalid family calls, but also controls whether mom aborts on invalid .FT calls after issuing a warning. o RW/EW now affect only the current font (or font style) o BR_AT_LINE_KERN now (properly) does a break-and-spread when text is justified. o Fairly extensive list of .sty's added to om.tmac. Hopefully, this will make life easier for users wishing to add new fonts and/or entire new families to their groff site-font/devps directory. *Jun 6 2004 o Altered kerning slightly for footnote markers in text. Daggers and double-daggers were getting a bit jammed
* * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if awlemb2004-08-082-4/+7
| | | | file can't be opened. UNIX tbl has the same behaviour.
* * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.wlemb2004-08-073-6/+17
| | | | | (DBRead): If in compatibility mode, take into account the text when computing figure boundaries.
* * src/preproc/soelim/soelim.man: Improved. Based on suggestionswlemb2004-08-072-1/+115
| | | | from Tadziu Hoffmann.
* *** empty log message ***wlemb2004-08-061-2/+2
|
* * doc/meref.me: Document `_M' register.wlemb2004-08-054-12/+76
| | | | | | | | | | | | | | | | | | Make hpftodit work correctly on big-endian systems. * src/utils/hpftodit/hpftodit.cpp (File): New method `get_uint32(char *)'. (entry): New member `orig_value'. (read_tags): Use new method. (output_font_name, read_and_output_pcltypeface, dump_ascii): Updated. * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions are already in X11's `macros.t' file. * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii): Fix casting bug. (read_and_output_pcltypeface): Handle strings with length <= 4.
* * tmac/s.tmac (pg@top): Don't save PO register.wlemb2004-07-287-13/+71
| | | | | | | | | | | (pg*end-col, pg*end-page): Directly use PO register. * man/groff_tmac.man: Mention `trace' and `pic' macro packages. * src/preproc/refer/refer.cpp (output_references): Check for empty hash table. * src/preproc/refer/refer.man: Improve documentation of `bibliography' command.
* Add requests `fcolor' and `gcolor'.wlemb2004-07-277-11/+98
| | | | | | | | | | | * src/roff/troff/env.cpp (fill_color_change, glyph_color_change): New functions. (init_env_requests): Add `fcolor' and `gcolor'. * src/roff/troff/input.h: Export do_glyph_color and do_fill_color. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document new requests.
* Add support for fractional point sizes in ms macros. A value forwlemb2004-07-255-39/+303
| | | | | | | | | | PS, VS, FPS, and FVS greater than or equal to 1000 is always divided by 1000. For example, `.nr PS 10250' sets the font size to 10.25p. * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL, PX): Handle fractional point sizes for PS, VS, FPS, and FVS. * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
* * src/preproc/pic/lex.cpp (for_input): Add member `from'.wlemb2004-07-195-10/+52
| | | | | | Update constructor. (do_for, for_input::get, for_input::peek): Handle negative `by'. * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
* * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.wlemb2004-07-093-2/+11
| | | | * tmac/groff_mdoc.man: Updated.
* * doc/groff.texinfo: Further improve documentation of `hcode'.wlemb2004-07-063-31/+173
| | | | | | | | | | | Improve appearance of arrows in pic. * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled arrow head thin. Use two line segments for drawing non-filled arrow head. (line_object::print, spline_object::print): Shorten line length to avoid arrow sticking. (arc_object::print): Take arrow direction into account.
* * tmac/groff_www.man: Update documentation of .MPIMG.wlemb2004-07-032-5/+28
|
* * tmac/an-old.tmac (RI): Always start with font `R'.wlemb2004-07-0312-41/+73
| | | | | | | | | | (RI, IR): Properly end with font `R'. * man/ditroff.man, man/groff_font.man, man/groff_out.man, src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man, src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man: Don't pass more than six arguments to .R, .I, .B, etc., for compatibility with traditional troff macros.
* * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.wlemb2004-07-035-39/+150
| | | | | | | | | | | | | | | | | | | | | s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/. Update all users. (PUSH_COMP_MODE): New internal character constant. Update all users. * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE, PUSH_COMP_MODE, and POP_GROFFCOMP_MODE. (token::next, macro::append): Handle PUSH_COMP_MODE. (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and POP_GROFFCOMP after each of the decoded arguments to make them independent from the compatibility mode status. (comp_mode): Add `COMP_ENABLE'. (do_define_string, do_define_macro): Handle COMP_ENABLE. (define_string, append_string, define_macro, define_indirect_macro, append_macro, append_indirect_macro): Handle `compatible_flag'. (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE. * man/groff_diff.man, doc/groff.texinfo: Updated.
* * doc/groff.texinfo: Improve documentation of `hcode'.wlemb2004-07-024-18/+78
| | | | | | | | Use @documentencoding and convert document to latin-1; to do that make latin characters active and assign proper macros (within a @tex...@end tex environment). * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding. * doc/Makefile.sub (groff): Ditto.
* Implement two new conditional operators `F <name>' and `S <name>'wlemb2004-06-3010-48/+161
| | | | | | | | | | | | | | | | | | | | | | | which check whether <name> is a valid font or style, respectively. * src/libs/libgroff/font.cpp (text_file): Add `silent' member. (text_file::text_file): Updated. (text_file::error): Don't emit message if `silent' is set. (font::load_font): Add optional third argument (which is directly passed to `load'. (font::load): Add optional second argument to check the header of a font only, without emitting warning or error messages. * src/include/font.h (font): Updated. * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F' conditionals. * src/roff/troff/node.cpp (mount_font_no_translate): Add optional fourth argument to check a font without mounting. (check_font, check_style): New functions. * src/roff/troff/node.h: Updated. * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo: Updated.
* Implement new string-valued register `.sty' to return the currentwlemb2004-06-299-13/+67
| | | | | | | | | | | | | | style name. * env.cpp (environment::get_style_name_string): New function. (init_env_requests): Add `.sty' register. * env.h (environment): Updated. * node.cpp (font_info): Make `get_style_name' a friend. (get_style_name): New function. * node.h: Updated. * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo: Updated.
* Minor documentation improvements.wlemb2004-06-193-3/+7
|
* * release of groffer 0.9.11wlemb2004-06-192-15/+19
| | | | | | * groffer.sh: - To the search of the `--apropos-*' options, add man pages with a subsection in their apropos output.
* * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handlewlemb2004-06-152-1/+12
| | | | `nospaces' option.
* *** empty log message ***wlemb2004-06-121-30/+72
|
* * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],wlemb2004-06-124-15/+15
| | | | and \n[mo] to avoid dependency on current date.
* * Makefile.sub (install_data): New target.wlemb2004-06-102-0/+8
|
* Update of the update...wlemb2004-06-042-238/+1
|
* * release of groffer 0.9.10wlemb2004-06-045-98/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | * groffer.sh: - Remove automatic call of `ash' due to inconsistencies of different ash versions. - In the first run, add recognition of `--shell' lines in the groffer configuration files. To configure an external shell in a configuration file, a line starting with `--shell' is necessary. - list_from_cmdline(): Simplify the arguments. - As $POSIXLY_CORRECT is internally set to `y' by some GNU `/bin/sh' shells the following 2 fixes are necessary: -- `sed': Empty patterns are not allowed with $POSIXLY_CORRECT set; so move the address information before the `s' command to the pattern after the command, and write `.*' to the address field. -- list_from_cmdline(): Remove the strange $POSIXLY_CORRECT style to finish the option processing after the first non-option argument; use the flexible GNU mixing of options and file names instead. * groffer.man: - Remove any hints on `ash'. - Add minus line behavior of `--shell' for configuration and add a corresponding example. - Update the information on $POSIXLY_CORRECT.
* o Makefile.sub (HTMLDOCFILES, EXAMPLEFILES, PROCESSEDEXAMPLEFILES): Updated.wlemb2004-06-042-6/+12
|
* o Rewrote the routines dealing with _FAMILY, _FONT, _SIZE, _COLORwlemb2004-06-0428-3181/+6594
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and _QUAD. A single macro for each checks for the calling alias (e.g. TITLE_FAMILY in _FAMILY), and performs the appropriate action. o All "COLOUR" aliases of "COLOR", no matter where, have been removed. o Added cover and doc cover page generation. o Added reference macros COVERTITLE, DOC_COVERTITLE, MISC and COPYRIGHT (for use with covers only) o Fixed EL and TN so they don't spring page traps; in nofill modes the preceding input line must be terminated by \c. o Added #T_MARGIN_LEAD_ADJ to DO_B_MARGIN, DO_T_MARGIN and NEWPAGE to ensure accurate placement of first lines on new pages when docprocessing is not taking place. o Made NEWPAGE it's own macro; formerly just an alias of .bp. o Made BREAKQUOTE obsolete; rewrote sections of footnote handling, including adding support macros to deal with processing of footnotes that were started inside quotes, blockquotes and epigraphs. o Added a TERMINATE .em to docprocessing (except letters) to ensure that deferred footnotes print on the last page of a doc.
* * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.wlemb2004-06-042-0/+5
|
* * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order ofwlemb2004-06-042-1/+4
| | | | libraries.
* * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo andwlemb2004-06-032-2/+8
| | | | | order of libraries. (install_data): Add $(srcdir).
* * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.wlemb2004-06-0316-86/+568
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily. Add test for Xmu library. (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK, GROFF_APPRESDIR_DEFAULT): New macros. * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK, and GROFF_APPRESDIR_DEFAULT. * configure: Regenerated. * Makefile.in (appresdir): New variable. (MDEFINES): Add appresdir. * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and -Xt. (install_data, uninstall_sub): New targets to handle GXditview.ad. * src/utils/indxbib/Makefiles.ub (install_data): Depend on `$(srcdir)/eign', not `eign'. * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated. * man/groff_out.man, man/roff.man, src/devices/grops/grops.man, src/devices/xditview/gxditview.man, src/roff/groff/groff.man: Protect (g)xditview with `\%' to avoid hyphenation. Other minor formatting.
* * groff.man: Protect (g)xditview with \% to avoid hyphenation.wlemb2004-06-032-10/+14
|
* Integrate gxditview into groff's standard directory hierarchy.wlemb2004-06-0150-6698/+1888
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
|
* * release of groffer 0.9.9wlemb2004-05-303-14/+16
| | | | | | | | | * groffer.sh: Fix first run section to allow the starting shell to go on if `ash' is not available. * groffer.man: Remove unnecessary information on groffer version.
* * Makefile.in (CPPFLAGS): Define.wlemb2004-05-292-0/+7
| | | | (MDEFINES): Add CPPFLAGS.
* * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).wlemb2004-05-2811-14/+101
| | | | | | | | | | | | | | | | 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.
* * PROBLEMS: Update documentation for problems with Sun C++ 5.0wlemb2004-05-262-6/+14
| | | | through Forte 6u1, and for how to get GNU make on Solaris.
* * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reportedwlemb2004-05-252-0/+21
| | | | by Paul Eggert.
* * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicitwlemb2004-05-182-1/+6
| | | | rule.
* * REVISION: Set to 2.wlemb2004-05-1610-311/+692
| | | | | | | | | | | * 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.
* * release of groffer 0.9.8wlemb2004-05-163-64/+71
| | | | | | | | | * groffer.sh: Fix problems of `test' by adding subs to arguments. * groffer.man: Write the file license as macros that are called in sections AUTHOR and COPYING.
* *** empty log message ***wlemb2004-05-161-0/+5
|
* *** empty log message ***groff-1_19_1wlemb2004-05-131-1/+3
|
* * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,wlemb2004-05-1212-57/+324
| | | | | | | | | | tmac/TODO: Updated. * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread, doc-str-Lb-librt): Reset font. (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'. Provide `doc-str-Lb' to reset font. * tmac/groff_mdoc.man: Updated.
* *** empty log message ***wlemb2004-05-101-1/+1
|
* * src/preproc/html/pre-html.cpp (make_message): Make it work forwlemb2004-05-092-3/+7
| | | | | 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-082-1/+9
| | | | that all implementations of sprintf handle null pointers correctly.