summaryrefslogtreecommitdiff
path: root/tmac
Commit message (Collapse)AuthorAgeFilesLines
* [mdoc] Implement `.%C'.wl2013-07-313-3/+75
| | | | | * tmac/doc.tmac, tmac/doc-common: Do it. * tmac/groff_mdoc.man: Updated.
* * tmac/fallbacks.tmac: Make it work in compatibility mode.wl2013-07-161-0/+4
| | | | Problem reported by Y T <doarhop@hotmail.com>.
* * tmac/an-old.tmac (TP): Do not clobber line length after doublewl2013-07-161-2/+4
| | | | call to `.TP'.
* Fix a bunch of typos.wl2013-02-011-2/+2
| | | | From Gilles Espinasse <g.esp@free.fr>.
* Enter wrong connection for tbl(1) in tmac/groff_man.man.bwarken2013-01-301-1/+1
|
* Add email address groff-bernd.warken-72@web.de for Bernd Warken.bwarken2013-01-222-3/+4
|
* * src/devices/gropdf/gropdf.pl (do_x, do_p, do_s, Set_LWidth): Thewl2013-01-171-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | grops driver defaults to round linecaps and linejoins, gropdf incorrectly used butt caps and miter joins. (Since the MOM package expects to use butt caps and miter joins (emitting the necessary postscript code to change the caps and joins), gropdf now parses the same postscript commands.) * src/devices/gropdf/gropdf.man: Document the handling of linecaps and linejoins. * tmac/pdf.tmac (pdfbookmark): Fix bug where the current PDFOUTLINE.FOLDLEVEL may not be honoured if warnings of the type macro warning: adjusted level n bookmark; should be <= n Added copyright and mention debt owed to Keith Marshall for original `pdfmark.tmac', upon which `pdf.tmac' is largely based. * font/devpdf/Foundry.in, font/devpdf/util/BuildFoundries.pl (LocateFile): The font for EURO had the wrong entry in the `download' file (it pointed to The font in the build directory, which is wrong). It has always been permissable to include a path along with the font name in the Foundry file, but until now the font had to exist to be valid. It is now permitted to start the path with an asterisk which tells BuildFoundry to use the path/filename in the download file without checking if the font exists. This allows the font to be found in `../devps' even though it is not there during the build (if source and build are different), but will be there after the install.
* * tmac/europs.tmac: Protect against missing fonts.wl2013-01-071-32/+32
|
* * tmac/www.tmac (www-push-li): Fix indentation.wl2012-08-311-0/+1
| | | | | | | | See http://lists.gnu.org/archive/html/bug-groff/2012-08/msg00009.html for the full report.
* TBLization, as discussed on the list.esr2012-08-141-70/+75
| | | | Also, change SX to Em when it doesn't point at a real section name.
* In tables, eliminate spaces before tab stops. Set a tab width of 20 in Emacs.esr2012-08-081-6/+7
|
* Clue in TBL.esr2012-08-081-0/+1
|
* Add inadvertently omitted header cookies.esr2012-08-081-1/+1
|
* Changed to use TBL and eliminate low-level troff hackery.esr2012-07-281-133/+100
|
* [mdoc] Make `Fl' correctly restore fonts.wl2012-07-181-1/+1
| | | | * tmac/doc.tmac (doc-flag-recursion): Do it.
* Oops! This commit belongs to the change 2012-05-24.wl2012-07-181-0/+3
|
* Add some generic fallback characters.wl2012-05-242-2/+63
| | | | | | * tmac/fallbacks.tmac: New file. * tmac/troffrc: Include it. * tmac/Makefile.sub (NORMALFILES): Include it.
* * doc/groff.texinfo: Add extra info about `.asciify'.wl2012-05-201-7/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document new gropdf options -u and -s. * src/devices/gropdf/gropdf.man: Remove references to Type 42 fonts, they do not work in PDFs. Document new option -s which adds `statistics' line to end of PDF file showing number of pages in document. This has always been the default behaviour (to add this line), all other software seems to ignore it as intended, but `gs' sometimes complains, so the default is now to omit the statistics. Document new option -u[cmapfilename] to allow a user ToUnicode CMap instead of gropdf's default. If no `cmapfilename' given then do not include any ToUnicode CMap. * src/devices/gropdf/gropdf.pl <top>: Allow `bundled' flags on command line (i.e. -de = -d -e). Use $RT_SEP as multi path separator, not hard coded `:'. Update all users. New flags -u and -s. Once a custom papersize has been set as \X'papersize x,y' make it sticky so all following pages use custom size. When importing pdf with \X'pdf: pdfpic ...' do not compress objects which are already compressed! This caused problems with PDFs created with ImageMagick, now fixed. (IsText, PutLine, do_t): The troff `u' command can contain a kerning adjustment number, this was not being handled, now fixed. (do_c): The troff `c' command was not being handled correctly, now fixed. (FindChar, RemapChr, do_N): Handle fonts with more than 255 glyphs. ($ucmap): Define CMap ToUnicode to convert ligatures (fl,fi,ff,ffl,ffi) back to individual characters, useful for cut'n'paste and text searching. (LoadFont): Handle it. (ToPoints, GetPoints): Handle `z' unit. (do_x, FixPDFColour, PutHotSpot): Allow Annotation colour to be groff colour, i.e. 0-65535 *3, or #rrggbb, or #rrrrbbbbgggg. (do_p):The papersize width/length in switch -p were reversed, corrected. * src/devices/gropdf/Makefile.sub (gropdf): Use $RT_SEP. Use $fontpath rather than $fontdir (this ensures site-font is included in searches). * tmac/pdf.tmac (PDFBOOKMARK.VIEW, PDFHREF.VIEW, PDFPAGE.Y): Fix strings. (pdfbookmark): Correct handling of bookmark levels. Convert \[em] to hyphen in bookmarks Rather use -N than -T for "named" bookmarks (-T already used for "tag" in pdfmark.tmac) (.pdfclean): New macro which attempts to asciify bookmark text. (.pdfpagename): New wrapper macro for \X'pdf: pagename'. (.pdfswitchtopage): New wrapper macro for \X'pdf: switchtopage'.
* * tmac/an-ext.tmac (SY): Handle argument with spaces correctly.wl2012-03-051-3/+4
| | | | Problem reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
* [an-old] Fix warnings.wl2012-03-011-14/+16
| | | | * tmac/an-old.tmac (an-init): Insert missing braces.
* [gropdf] Fixes and omissions.wl2012-02-151-2/+2
| | | | | | | | | | | | * src/devices/gropdf/gropdf.pl (<top>, do_u): Add facility to handle track kerning (.tkf). (do_x, do_p, do_t): If pages are reordered using `pagename' and `switchtopage' keep track of outline bookmarks. (PutHotSpot): Allow user to control size of hotspot bounding box on clickable links by setting PDFHREF.LEADING * tmac/pdf.tmac (PDFHREF.LEADING): Adjust value. (pdf*href): Pass value of PDFHREF.LEADING to gropdf.
* [gropdf] Fix compatibility issues with pdfmark.wl2012-02-101-1/+2
| | | | | * tmac/pdf.tmac (PDFHREF.VIEW.LEADING): Fix value. (pdf:href.opt-X): Add check for -X option for .pdfhref.
* [mdoc] * tmac/doc-syms: Fix meaning of XBD acronym.wl2012-01-251-1/+1
|
* * tmac/e.tmac (bl): Make it work inside blocks.wl2012-01-251-1/+6
| | | | | | | See threads starting with http://lists.gnu.org/archive/html/groff/2011-12/msg00055.html http://lists.gnu.org/archive/html/groff/2012-01/msg00000.html
* [mdoc] Add `-isoC-2011'.wl2012-01-032-0/+4
| | | | | * tmac/doc-syms (doc-str-St--isoC-2011): Add it. * tmac/groff_mdoc.man: Document it.
* [me] Fix behaviour of centered block.wl2011-12-011-0/+1
| | | | | | | | Problem and possible fix reported in thread starting at http://lists.gnu.org/archive/html/groff/2011-11/msg00002.html * tmac/e.tmac (`(c'): Always start with a new line.
* [man] Print volume headers like mdoc.wl2011-12-011-3/+12
| | | | | * tmac/an-old.tmac (an-init): Add default volume name if fifth argument to `.TH' is missing.
* * tmac/groff_man.man: Minor documentation improvements.wl2011-11-221-2/+11
| | | | Suggested by Jeff Conrad <jeff_conrad@msn.com>.
* [mdoc] Synchronize string tables with the mandoc(1) utility.wl2011-10-293-15/+151
| | | | | | | | | | | * tmac/doc-common: Add many architecture names used in NetBSD and OpenBSD (and "arm" from FreeBSD) and remove the duplicate OS version entry for Darwin-10.6.0. * tmac/doc-syms: Add many library names used in NetBSD and FreeBSD. * tmac/groff_mdoc.man: Document all supported architecture names, OS versions, and library names.
* Fix typos.wl2011-10-083-7/+6
| | | | Found by Kevin Lyda <kevin@ie.suberic.net>.
* [mdoc] Add some library strings.wl2011-09-112-0/+6
| | | | | * tmac/doc-syms: Add `libdwarf' and `libelf'. * tmac/groff_mdoc.man: Document them.
* Add new output device `gropdf'.wl2011-07-263-1/+741
| | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devpdf/*: New device files for gropdf. * src/devices/gropdf/*: New device. * Makefile.comm (install_dev, uninstall_dev): Handle more subdirectories. * Makefile.in (DEVDIRS, OTHERDIRS, EXTRADIRS): Add directories related to gropdf. * MANIFEST: Updated. * test-groff.in (GROFF_BIN_PATH): Updated. * tmac/Makefile.sub (NORMALFILES): Updated. * tmac/pdf.tmac: New file. * tmac/troffrc: Updated. * doc/groff.texinfo: Document it. * doc/Makefile.in, doc/Makefile.sub (groff_bin_dirs): Udpated. * doc/pic.ms: Updated. * man/groff_out.man, src/devices/grops/grops.man, src/preproc/pic/pic.man, src/roff/groff/groff.man, src/utils/afmtodit/afmtodit.man, src/utils/pfbtops/pfbtops.man: Updated. * contrib/pdfmark/pdfmark.ms: Updated.
* Improve line numbering support in tbl and with me macros.wl2011-07-201-14/+106
| | | | | | | | | | | | | | | | | * tmac/e.tmac (n1, n2, TH, PS): Implement it. (@h, @n, @o, @t, @k, )b, (c, (q, )q, (l, )l, (f, @q, PE): Updated. * doc/meref.me: Document changes. * src/preproc/tbl/table.cpp (ROW_START_LINE_REG, ROW_SAVE_LINE_REG, ROW_MAX_LINE_REG, REPEATED_NM_SET_MACRO, REPEATED_NM_SUS_MACRO): New macros. (table::init_output): Define REPEATED_NM_SET_MACRO and REPEATED_NM_SUS_MACRO. (table::print_single_hline, table::print_double_hline, table::define_bottom_macro, table::do_row, table::do_top, table::do_bottom): Updated. * doc/webpage.ms: Updated.
* mdoc: Update more OS versions strings.wl2011-07-031-0/+12
| | | | | * tmac/doc-common: Add versions strings for NetBSD, OpenBSD, FreeBSD, and DragonFly.
* mdoc: Update various strings related to Mac OS X and FreeBSD.wl2011-04-082-0/+14
| | | | | * tmac/doc-common: Add strings for FreeBSD 8.2 and Darwin 9.7-11.0. * tmac/doc-syms: Add strings -lbsm and -lSystem.
* Add another POSIX standard.wl2011-03-301-0/+2
| | | | * tmac/doc-syms: Add POSIX 1003.1b.
* [mdoc] Within .An, .Aq, .Ao, and .Ac now use `<' and `>'.wl2011-03-041-4/+16
| | | | | | | Problem reported by Ulrich Spörlein <uqs@spoerlein.net> * tmac/doc.tmac (Aq, Ao, Ac): Implement it to follow RFC 822 and RFC 2822.
* Handle `refer*.tmac'.wl2011-01-282-108/+2
| | | | | * tmac/Makefile.sub (NORMALFILES): Add `refer*.tmac'. * tmac/refer-mm.tmac: Moved to contrib/mm.
* Add `refer' support to -me.wl2011-01-286-262/+636
| | | | | | | | | | | | | * tmac/refer.tmac, tmac/refer-me.tmac, tmac/refer-ms.tmac, tmac/refer-mm.tmac: New files. The code in refer.tmac is based on the old code from `s.tmac'. * tmac/s.tmac: Remove direct refer support and include `refer-ms.tmac' instead. * tmac/e.tmac: Remove direct refer support and include `refer-me.tmac' instead. * NEWS: Updated.
* Documentation typos.wl2011-01-211-2/+2
|
* Improve CJK support with new values for `.cflags'.wl2010-12-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces three new values to `.cflags': don't break before character: 128 don't break after character: 256 allow inter-character break: 512 They are handled differently if compared to other cflags values: (1) hcode values are completely ignored (2) similar to kern values, and contrary to the other cflags values, troff looks at pairs of characters to decide whether a break gets inserted A yet-to-be-written patch should add inter-character spacing if those flags are active; currently, only zero-width breakpoints are inserted. * src/roff/troff/charinfo.h (charinfo): Change type of `flags' to `int'. Update callers accordingly. New enum values `DONT_BREAK_BEFORE', `DONT_BREAK_AFTER', and `INTER_CHAR_SPACE'. New member functions `prohibit_break_before', `prohibit_break_after', and `inter_char_space'. * src/roff/troff/input.cpp: Updated. * src/roff/troff/node.cpp (inter_char_space_node): New class similar to kern_pair_node, collecting charinfo entities with the abovementioned cflags values. (break_char_type): Add new enum values. (glyph_node::merge_glyph_node): Handle abovementioned cflags values and emit an `inter_char_space_node' if necessary. * tmac/ja.tmac: Use new cflags values. * doc/groff.texinfo, NEWS, man/groff_diff.man: Document new values.
* Add Japanese localization.wl2010-12-132-2/+53
| | | | | | | Remove trailing spaces. * tmac/ja.tmac: New file. * tmac/Makefile.sub (NORMALFILES): Updated.
* [mdoc]: Complete previous patch and document OpenBSD releases.wl2010-11-022-3/+60
| | | | | | | | | | | | | * tmac/doc-common (doc-operating-system-NetBSD): Add versions 5.0, 5.0.1, and 5.0.2. (doc-operating-system-OpenBSD-*): New strings. (doc-operating-system-FreeBSD-*): Add version 8.1. (doc-operating-system-DragonFly-*): Add versions 2.2, 2.4, 2.6, and 2.8. (Os): Handle DragonFly and OpenBSD. * tmac/groff_mdoc.man: Document OpenBSD releases. Add DragonFly release 2.8.
* [mdoc]: Improve man page.wl2010-11-021-12/+14
| | | | | | * tmac/groff_tmac.man: Fix prologue macro order. Update NetBSD, FreeBSD, and DragonflyBSD version numbers. Other minor layout improvements.
* mdoc: Improve documentation for `.Nm'.wl2010-06-041-1/+6
| | | | From Krzysztof Zelechowski <giecrilj@stegny.2a.pl>
* s/legalize/legalese/ where appropriate.wl2010-06-022-3/+3
| | | | Suggested by Krzysztof Zelechowski <giecrilj@stegny.2a.pl>.
* * tmac/groff_ms.man: Document \n[DD] register.wl2010-03-101-1/+3
| | | | Problem reported by Ted.
* Add new FreeBSD and Posix versions.wl2010-02-243-2/+9
| | | | | | * tmac/doc-common: Add FreeBSD versions 7.2, 7.3, and 8.0 * tmac/doc-syms: Add Posix 2008 * tmac/groff_mdoc.man: Document it.
* * tmac/www.tmac (www-li-ol): Fix indentation if more than 10 items.wl2010-02-081-2/+2
|
* Fix `MC' macro of the ms package.wl2010-01-231-2/+2
| | | | | | | | | | | | | | | | | | | * tmac/s.tmac (@MC): Define `pg*col-top' after the paragraph has been initialized. Otherwise, using this example, .nh .nf .kern 0 .pl 6c .ll 70n .MC 30n Text for multiple columns. Text for multiple columns. Text for multiple columns. Text for multiple columns. Text for multiple columns. the columns start at different vertical positions.