summaryrefslogtreecommitdiff
path: root/tmac
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* * tmac/www.tmac (www-li-{ul,ol,dl}): Handle `PORPHANS' register.wl2010-01-231-1/+7
|
* * tmac/doc-common (Dx): Define register.wl2009-10-261-0/+1
|
* Implement `%U' in mdoc for URL references.wl2009-10-263-1/+75
| | | | | | | | | | | | * tmac/doc-common (%U): New register. (Rd): Handle `doc-url-count' and `doc-url-name'. * tmac/doc.tmac (doc-url-count, doc-url-name): New registers. (doc-save-global-vars, doc-restore-global-vars, doc-reset-reference, doc-print-reference): Handle `doc-url-count' and `doc-url-name'. (%U): New macro. * NEWS, tmac/groff_mdoc.man: Document `%U' macro.
* Minor wording improvement.wl2009-10-111-1/+2
|
* * tmac/hyphen.fr: Fix typo which prevents hyphenation.wl2009-07-291-2/+2
| | | | Reported by Seb <sbb@tuxfamily.org>.
* Fix two typos.wl2009-07-221-1/+1
| | | | From Colin.
* * tmac/doc.tmac: Call `ec' before mapping characters.wl2009-04-011-3/+3
|
* * */Makefile.* (CLEANADD, CLEANNOTSRCDIRADD, CLEANDIRADD): Renamedgroff-1_20_1wl2009-01-081-1/+1
| | | | | to... (MOSTLYCLEANADD, MOSTLYCLEANNOTSRCDIRADD, MOSTLYCLEANDIRADD): This.
* Update FDL 1.1 to FDL 1.3.wl2009-01-051-1/+1
|
* Update copyright year.wl2009-01-0516-17/+19
|
* * tmac/s.tmac (@TS, TE, @EQ, @EN), tmac/an-old.tmac (TS, TE, EQ,wl2009-01-054-2/+41
| | | | | EN), tmac/e.tmac (TS, TE, EQ, EN): Set line length to a large value if processed with -Thtml.
* * tmac/www.tmac (TS, TE, EQ, EN): Set line length to a large valuewl2009-01-041-4/+16
| | | | | if processed with -Thtml to avoid warning messages (from code inserted by tbl, for example).
* * */*: Update GPL2 to GPL3.wl2009-01-0416-76/+59
|
* * tmac/de.tmac: Fix German date string. Reported by Axel Kielhorn.wl2009-01-041-4/+4
|
* * tmac/groff_ms.man: Improve formatting of tables.wl2009-01-031-58/+34
|
* * tmac/www.tmac (www->): Handle XHTML.wl2009-01-021-5/+9
| | | | | (HTML</p>): Handle non-HTML devices. (www:url_check_tag): Avoid warnings.
* * tmac/an-old.tmac, tmac/doc.tmac: For -Tutf8, map \-, -, ', and `wl2009-01-022-1/+26
| | | | conservatively to ASCII for the sake of easy cut and paste.
* * tmac/groff_mdoc.man: Update OS version string listing.wl2009-01-021-2/+2
|
* * tmac/ptx.tmac: New file.wl2009-01-021-0/+40
| | | | * NEWS, man/groff_tmac: man: Document it.
* Formatting.wl2009-01-021-38/+62
| | | | Minor typos and simplifications.
* Fix more quoting issues.wl2008-12-301-16/+17
| | | | | | * tmac/www.tmac (BCL, BGIMG, PIMG, MPIMG, LNS): For the sake of XHTML, quote more arguments. (IMG): Fix quoting.
* Fix quoting issues in www.tmac.wl2008-12-301-58/+63
| | | | | | | | | | | | | | | | * tmac/www.tmac (www:url_breaks_splitted): Renamed to... (www:url_breaks_split): This. (www->): New string to close tag singletons like <img> or <hr>. In XHTML mode (not implemented yet), this has to be changed from `>' to `/>'. (IMG): Don't use </img> Use www->. (PIMG, MPIMG): Don't use </img> Use www->. Fix doublequote issues. (HR): Don't use </hr>. Use www->. (LNS): Fix doublequote issues.
* * tmac/doc-common: Add entries for Mac OS X and FreeBSD.wl2008-12-241-1/+4
|
* * tmac/doc-common (Dt): Start a new page if necessary and set upwl2008-11-053-2/+7
| | | | | | | | | headers. * tmac/andoc.tmac (reload-doc): Simplify due to change in doc-common. * NEWS: Document it.
* * tmac/doc-common (doc-operating-system-*), tmac/groff_mdoc.man: Addwl2008-10-162-4/+7
| | | | NetBSD 4.0.1.
* * tmac/andoc.tmac: Rewritten, based on a preliminary version fromwl2008-10-044-13/+80
| | | | | | | | Tadziu Hoffmann. It can now process multiple man pages with both man and mdoc formats intermixed. * NEWS, tmaca/groff_man.man, tmac/groff_mdoc.man, man/groff_tmac.man: Document it.
* * tmac/doc-common (doc-operating-system-*): Update releases.wl2008-10-041-13/+37
|
* * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting upwl2008-10-041-4/+24
| | | | default macros. This causes endless loops (at least for TE).
* * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], andwl2008-10-041-1/+1
| | | | | \O[5] non-transparent w.r.t. beginning-of-line recognition (similar to the other \O variants).
* * tmac/trace.tmac: Much improved.wl2008-10-012-226/+228
| | | | | | | | | | | | | (trace-full): New register to be set on the command line; it controls whether number and string register assignments get traced also. (!!c): New macro for comments. (rm): New traced macro. (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to `!!xxx'; this makes doc.tmac completely traceable. Trace call of .de and friends also. * tmac/groff_tmac.man, NEWS: Update.
* typowl2008-09-281-1/+1
|
* Formatting.wl2008-09-281-1/+1
|
* Don't use `.de1' for `.rn' and `.nr'.wl2008-09-261-11/+11
|
* * tmac/trace.tmac: Add copyright message.wl2008-09-261-110/+229
| | | | | | | Use `.de1' where possible to make source code more readable. (so, mso, als, rn): Restore escape character before executing the request. (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
* * tmac/an-old.tmac (FT): Initialize properly. Reported by Tadziuwl2008-09-091-2/+3
| | | | Hoffmann.
* * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to makewl2008-09-062-1/+10
| | | | `.Nm' work properly if next manual page is printed.
* * tmac/eqnrc (.EQ, .EN): Provide default definitions. Reportedwl2008-07-262-10/+13
| | | | | | by Denis M. Wilson. * tmac/www.tmac (.EQ, .EN, .TS, .TE): Fix definitions.
* Add better support for `.TAG #<label>' in non-HTML documents:wl2008-04-051-4/+31
| | | | | | | | | | | | In case of a forward reference in a call to .URL, write `(see below)'. In case of a backwards reference use the page number instead. The reference gets stored in a string `TAG_<label>' and can be overridden while calling `.TAG' with its new optional argument -- this is useful for a second-pass system which resolves forward references. * tmac/www.tmac (www:url_check_tag): New function. (URL): Use it. (TAG): Add optional argument to define string `TAG_<label>.
* * tmac/trace.tmac (so, mso): Added.wl2008-03-243-3/+33
| | | | | | | | | | | * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'. If used with -mtrace, and this clause was active, the macro was executed twice. * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality. This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML devices. * man/groff_tmac.man: Document it.
* * src/preproc/html/pre-html.cpp (usage): Don't describe options butwl2008-01-193-9/+26
| | | | | | | | | | mention that it should never be called stand-alone. * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man, man/groff_tmac.man, man/groff_out.man, README, README.MinGW, src/roff/groff/groff.man: Mention -Txhtml. * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.