summaryrefslogtreecommitdiffstats
path: root/mandoc.1
Commit message (Collapse)AuthorAgeFilesLines
* Turn on -Tutf8 in the frontend. Here we go!Kristaps Dzonsons2011-05-201-3/+13
|
* Locale support. I'm checking this in to clean up fall-out in-tree, butKristaps Dzonsons2011-05-171-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | it looks pretty good. Basically, the -Tlocale option propogates into term_ascii.c, where we set locale-specific console call-backs IFF (1) setlocale() works; (2) locale support is compiled in (see Makefile for -DUSE_WCHAR); (3) the internal structure of wchar_t maps directly to Unicode codepoints as defined by __STDC_ISO_10646__; and (4) the console supports multi-byte characters. To date, this configuration only supports GNU/Linux. OpenBSD doesn't export __STDC_ISO_10646__ although I'm told by stsp@openbsd.org that it should (it has the correct map). Apparently FreeBSD is the same way. NetBSD? Don't know. Apple also supports this, but doesn't define the macro. Special-casing! Benchmark: -Tlocale incurs less than 0.2 factor overhead when run through several thousand manuals when UTF8 output is enabled. Native mode (whether directly -Tascii or through no locale or whatever) is UNCHANGED: the function callbacks are the same as before. Note. If the underlying system does NOT support STDC_ISO_10646, there is a "slow" version possible with iconv or other means of flipping from a Unicode codepoint to a wchar_t.
* Documentation: note COMPATIBILITY of -Tascii `?' printing in mandoc.1Kristaps Dzonsons2011-05-171-3/+8
| | | | | and remove some long-fixed notes in sthe same section. Also, add an `Lb' for the mandoc library to mandoc.3 (noted by Sascha Wildner).
* Add stub for eqn.7 manual and flip it on. Also note COMPATIBILITY issueKristaps Dzonsons2011-02-091-0/+1
| | | | of how we considered .TS (etc.) macros and how the preprocessors do.
* Moved table stuff from roff.7 into the new tbl.7 (suggested by Jason McIntyre).Kristaps Dzonsons2011-01-041-1/+3
| | | | Added cross-links to tbl.7 from other manuals.
* Clarify style inclusions and update release information.Kristaps Dzonsons2010-12-201-8/+6
|
* Correctly mark the examples as `Dl', not `D1'.Kristaps Dzonsons2010-12-171-4/+4
|
* Note that we use CSS1, not CSS2.Kristaps Dzonsons2010-12-161-6/+5
| | | | Remove superfluous language in output-mode short description.
* Remove stray note on `i', which we no longer support.Kristaps Dzonsons2010-12-161-6/+0
|
* Remove stupid outer DIV tag in favour of regular BODY and HTML that canKristaps Dzonsons2010-12-151-9/+0
| | | | | | | | be handled in CSS. Clarified "lit" tag (will be the subject of future clarification). Removed CSS2 note in mandoc.1, which is no longer the case.
* sync to OpenBSD:Ingo Schwarze2010-09-261-2/+2
| | | | | new sentence, new line; from jmc@
* Implement a simple, consistent user interface for error handling.Ingo Schwarze2010-08-201-58/+142
| | | | | | | | | | | | | | | | | We now have sufficient practical experience to know what we want, so this is intended to be final: - provide -Wlevel (warning, error or fatal) to select what you care about - provide -Wstop to stop after parsing a file with warnings you care about - provide consistent exit status codes for those warnings you care about - fully document what warnings, errors and fatal errors mean - remove all other cruft from the user interface, less is more: - remove all -f knobs along with the whole -f option - remove the old -Werror because calling warnings "fatal" is silly - always finish parsing each file, unless fatal errors prevent that This commit also includes a couple of related simplifications behind the scenes regarding error handling. Feedback and OK kristaps@; Joerg Sonnenberger (NetBSD) and Sascha Wildner (DragonFly BSD) agree with the general direction.
* Migrate `Xr groff 1' -> GNU troff. I no longer assume that groff isKristaps Dzonsons2010-08-181-5/+2
| | | | installed on the host system.
* Remove references to \s in mandoc.1: we no longer document these and justKristaps Dzonsons2010-08-181-11/+0
| | | | flat-out ignore them.
* Remove mandoc.1 compatibility notes that are no longer relevant.Kristaps Dzonsons2010-08-071-10/+0
|
* Initial PDF shim over PS. This produces working PDF output with -Tpdf.Kristaps Dzonsons2010-07-251-0/+12
| | | | | | | | | | It's currently missing the xref table, so you'll get a warning in most PDF viewers). It also produces lots of redundant output, which will go away once I get a better handle on the PDF spec. The code doesn't really touch any existing functionality; it's a bunch of conditionals atop the -Tps (term_ps.c) implementation. I'm checking it in now to have it exist and be auditable. It needs clean-up, polish, and general care (and xref!).
* correct lots of copyright notices;Ingo Schwarze2010-07-131-1/+1
| | | | ok kristaps@
* Set line-height to be 1.4em. Removed check for minimum margins that are noKristaps Dzonsons2010-07-041-0/+1
| | | | longer important.
* Backed out margin calculations in favour of much simpler rule of thumb:Kristaps Dzonsons2010-07-041-4/+2
| | | | margins are 1/9 the length/width.
* Auto-margins. Documented in mandoc.1. Also bumped line-height and madeKristaps Dzonsons2010-07-041-1/+4
| | | | sure header and footer accomodate for said line-height.
* First, I'm defaulting to 11-point font, which renders much nicer (theKristaps Dzonsons2010-07-011-2/+11
| | | | | | | | | | | "Internet" vaguely suggests using 11- or 9-Point for serifed fonts). This verified on GNU/Linux, Mac OSX, Windows, and OpenBSD. Noted in mandoc.1. Then added a3, a4, a5, letter, legal, and custom page dimensions. These seem to be the main players. Noted in mandoc.1. Lintified the casting.
* Now using Times AFM provided by Dillo. Verified on OpenBSD by me and Mac OSXKristaps Dzonsons2010-06-301-2/+2
| | | | by M. Deksters.
* Remove some incorrect data from mandoc.1 (that of non-macro lines andKristaps Dzonsons2010-06-291-140/+106
| | | | | | spacing, which is for mdoc.7/man.7 anyway). Also document -Opage=xxx and push the per-output options into the output subsections. Makes the manual shorter and more readable.
* Give -Tps better PostScript hinting. Note that we're using Adobe-3.0Kristaps Dzonsons2010-06-291-1/+3
| | | | | constructs. Push the stupid CPP defines for page boundaries and margins into proper variables. Give enum termfont a proper TERMFONT__MAX.
* Allow OpenBSD's nroff to process mandoc.1 without puking on long `It'Kristaps Dzonsons2010-06-251-6/+10
| | | | lines.
* Note that we use PostScript level 2, not 1 (the /Courier invocation).Kristaps Dzonsons2010-06-111-1/+1
|
* First check-in of PostScript output. This does not change any logicKristaps Dzonsons2010-06-071-0/+9
| | | | | | within term.c, but does add a small shim over putchar() that switches on the output engine. Prints, for this initial version, only monospace and without font decorations. It's a start.
* Forgot to check in manual along with -Owidth=width patch.Kristaps Dzonsons2010-06-071-2/+12
|
* Remove -fno-ign-chars as well-argued by Ingo Schwarze. Patch by Ingo ↵Kristaps Dzonsons2010-05-091-5/+2
| | | | Schwarze, too.
* As per Jason McIntyre's heartful urgings, do away with '.' separators ↵Kristaps Dzonsons2010-04-131-78/+2
| | | | | | between logical sections. Change email address to BSD.lv one (this is not an academic project...)
* Merge patch by Jason McIntyre cleaning on mandoc.1: `Ar' -> `Cm' and other ↵Kristaps Dzonsons2010-04-121-93/+92
| | | | | | readability fixes. Merge modified patch by Joerg Sonnenberger that rewinds to whitespace when encountering trailing line-comments.
* Merged Jason McIntyre's "new-sentence, new-line" patch along with Ingo ↵Kristaps Dzonsons2010-04-081-35/+64
| | | | Schwarze' "gt" patch.
* Final (?) fix to issue pointed out by Sascha Wildner: roff instructions ↵Kristaps Dzonsons2010-03-291-1/+2
| | | | clobbering prior scope rules and line modes.
* Fix mandoc.1 ending (noted by Sascha Wildner).VERSION.1.9.19Kristaps Dzonsons2010-03-271-1/+2
|
* Documentation of apostrophe control character.Kristaps Dzonsons2010-03-271-0/+8
|
* Fixed up some documentation in man.7: only documenting man.7 macros, not ↵Kristaps Dzonsons2010-03-251-0/+7
| | | | related ones (de, Vb, etc.), which aren't technically man. It's an open question as to where these /should/ be documented, however.
* Have -Tlint imply -Wall and -fstrict. Based on a patch submitted by Ingo ↵Kristaps Dzonsons2010-03-221-2/+8
| | | | Schwarze.
* Clarify -man -T[x]html handling of `br' within `B'.Kristaps Dzonsons2010-03-221-2/+14
| | | | | Consolidated node unlinking in -man. Conclude nested next-line scope issues noted by Ingo Schwarze.
* Fixed Makefile for `make lint' dep. on config.hKristaps Dzonsons2010-01-291-4/+25
| | | | Added -Txhtml for XHTML output (minimal increase to programme logic). Because groff has it and it bothers me that we don't.
* Fix white-space issues found by mandoc's better white-space finder.Kristaps Dzonsons2010-01-071-10/+10
| | | | Fixed bogus `\\' escapes in some manuals.
* More clarification in manuals. Added per-OUTPUT section in mandoc.1.Kristaps Dzonsons2009-11-161-54/+120
|
* Enabled -Thtml -mdoc to work with \f (see compat notes in mandoc.1).Kristaps Dzonsons2009-11-161-4/+12
|
* Documented that `\s' and `\f' don't work in HTML mode (and why).Kristaps Dzonsons2009-11-051-0/+11
| | | | Added support for recognising the many forms of `\s' (doesn't yet render).
* Merged patch to allow -fign-escape (thanks Joerg Sonnenberger).Kristaps Dzonsons2009-10-261-0/+5
|
* Changed `-o' to `-O' for clarity. THIS BREAKS UTILITIES DEPENDING ON -o!Kristaps Dzonsons2009-10-261-6/+6
|
* Fix in mandoc.1 and mandoc_char.7 syntax (submitted Joerg Sonnenberger).Kristaps Dzonsons2009-10-151-2/+2
| | | | Added note on character format per output type.
* Fix hang lists in -Tascii -Tmdoc, which seem to have been broken since ~1.8.x.Kristaps Dzonsons2009-10-101-0/+20
| | | | Noted similarity of HP/TP and -hang/-tag in mandoc.1.
* Fixed mandoc.1 examples (new -Thtml options).Kristaps Dzonsons2009-10-031-5/+5
| | | | | Fixed manuals to use `In', not `Fd'. Moved buf* functions into html.c.
* Added the -oincludes=FMT option.Kristaps Dzonsons2009-10-031-2/+18
| | | | | The `In' handler now decorates with a hyperlink. If no -oman= or -oincludes= is stipulated, no link is printed (but the text is still style-decorated).
* Element tag buffer is now part of struct html.Kristaps Dzonsons2009-10-031-7/+18
| | | | | | | buffmt() can be called in sequence. Noted BUFSIZ-sized buffer in CAVEATS (attribute length for link formats). Added -oman=FMT -Thtml option for `Xr' manual links. Removed -obase=URI -Thtml option (obsolete).