aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Remove asciisz from chars.in. It frees up a nice chunk of memory and atKristaps Dzonsons2010-07-262-382/+381
| | | | | | the overhead of running strlen() for ASCII strings (yes, I benchmarked this running mandoc_char(7) as input again and again with hundredth-second penalties... on my slow-ass alpha).
* Note that `Dd' can be empty. This found following a thread on discuss@Kristaps Dzonsons2010-07-263-7/+18
| | | | started by Sascha Wildner, 07/25/2010 06:30 AM.
* Merge schwarze@'s pass over mdoc.7. Fixed small new-sentence-new-lineKristaps Dzonsons2010-07-261-224/+232
| | | | | | nit noted by Jason McIntyre. "your diff looks ok" (Jason McIntyre)
* Fix chars.in fall-through to ASCII mode. This bug only affectedKristaps Dzonsons2010-07-261-7/+7
| | | | -T[x]html.
* Note -Tpdf in www.Kristaps Dzonsons2010-07-261-1/+2
|
* Merge Jason McIntyre's corrections to man.7.Kristaps Dzonsons2010-07-261-26/+23
| | | | "urgle": Jason McIntyre. "This is all ok" schwarze@.
* Avoid running the "width" termp callback for each whitespace.Kristaps Dzonsons2010-07-251-4/+4
|
* Fully-working -Tpdf: xref table is now generated. This works for bothKristaps Dzonsons2010-07-252-19/+50
| | | | single and multiple-manual mode (e.g., mandoc -Tpdf foo.1 bar.1).
* Make PDF sections contiguous.Kristaps Dzonsons2010-07-251-64/+52
|
* Ensure that isalnum is called with unsigned char argument.Joerg Sonnenberger2010-07-251-2/+2
|
* list two additional issuesIngo Schwarze2010-07-251-1/+18
|
* Initial PDF shim over PS. This produces working PDF output with -Tpdf.Kristaps Dzonsons2010-07-255-56/+262
| | | | | | | | | | 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!).
* Collapse `nf', `fi', `Vb', and `Ve' into one function as in man_html.c.VERSION_1_10_5_PREPDFKristaps Dzonsons2010-07-231-19/+18
|
* Enable literal contexts (Vb/nf) in -T[x]html -man. This requires that aKristaps Dzonsons2010-07-232-20/+67
| | | | | | | | new struct pass down in the call-tree (as also in man_term.c). Also add a line-break for `in', which isn't otherwise supported (yet). Now -Thtml -man cvs.1 for GNU's cvs.1 isn't as ugly.
* Add support for `Sm' in -T[x]html -mdoc.Kristaps Dzonsons2010-07-233-5/+28
|
* Fix broken compilation, hopefully before anybody notices.Kristaps Dzonsons2010-07-221-2/+2
|
* Added `in' macro support for -man -Tascii. This is not yet supported inKristaps Dzonsons2010-07-229-14/+75
| | | | -Thtml (I'm surprised to note that neither is LITERAL mode).
* Start putting in release notes. A record is good because this releaseKristaps Dzonsons2010-07-221-1/+19
| | | | will have lots of small, incremental improvements.
* Accept "\s0" (i.e., properly ignore it). Found in the wild (e.g., gfdl.7).Kristaps Dzonsons2010-07-222-2/+8
|
* Bring `sp', `Sp', and `br' behaviour for -man in line with how -mdoc'sKristaps Dzonsons2010-07-221-16/+11
| | | | | is handled: correctly. This removes superfluous line breaks in many -man manuals.
* Have `nf' and `fi' flush lines. This is necessary or the LITERAL willKristaps Dzonsons2010-07-221-1/+3
| | | | | | be meaningless when invoked within a non-flushing context. This based on a formatting bug report submitted by Jonathon Gray (jsg@) via Christian Weisgerber (naddy@).
* In the SYNOPSIS, .Nm at the beginning of an input line startsIngo Schwarze2010-07-211-2/+3
| | | | | | | | | | an .Nm block, and gets special handling (new line, indentation). But .Nm in the middle of a line is just a normal in-line element, so make sure it does NOT get the special handling. Partly fixes the test(1) SYNOPSIS; indentation after "[" is still excessive, which is an unrelated and more difficult issue. Reminded of the problem by jmc@; OK kristaps@.
* Accomodate for groff's crappy behaviour wherein an unrecognisedKristaps Dzonsons2010-07-215-15/+27
| | | | | | | | | | | | | single-character escape (and ONLY this type of escape) will map back into itself: "If a backslash is followed by a character that does not constitute a defined escape sequence the backslash is silently ignored and the character maps to itself." (From groff.7.) Found by Jason McIntyre.
* Clarified mailing list purposes.Kristaps Dzonsons2010-07-211-3/+3
|
* Tidy up the www page.Kristaps Dzonsons2010-07-212-93/+52
|
* Nit-picking assign in decl.Kristaps Dzonsons2010-07-211-2/+4
|
* Lint-fixes (NetBSD).Kristaps Dzonsons2010-07-211-6/+6
|
* Finally make mdoc argv CPP-defines into a proper enum.Kristaps Dzonsons2010-07-213-37/+40
|
* The "wx" value is quite small, so use a u_short instead of a size_t.Kristaps Dzonsons2010-07-211-8/+8
|
* Strip non-graphable input characters from input. The manualsKristaps Dzonsons2010-07-204-42/+71
| | | | | | | | | specifically say that this is not allowed, and were it allowed, output would be inconsistent across output media (-Tps will puke, non-your-charset terminals will puke, etc.). With this done, simplify check_text() to only check escapes and for tabs. Add in a new tab warning, too.
* Use floating-point -Tps "moveto" arguments to smooth out column and rowKristaps Dzonsons2010-07-201-5/+5
| | | | misalignments.
* sync to OpenBSD:Ingo Schwarze2010-07-191-19/+31
| | | | | | | | | * briefly mention the HISTORY of the man(7) language * update the copyright notice * improve the wording in a few places * fix a couple of typos including two suggestions from J.C. Roberts feedback and ok jmc@, ok sobrado@ and kristaps@
* All macros in mdoc.7 are now documented.Kristaps Dzonsons2010-07-191-15/+53
|
* Finished document -mdoc macros. Note `br' and `sp' remain.Kristaps Dzonsons2010-07-193-9/+127
| | | | | Noted in arch.in and st.in that mdoc.7 must be updated if entries are added.
* Added documentation for several more macros. Only a few remaining!Kristaps Dzonsons2010-07-191-110/+171
| | | | | | | | | Applied "new-sentence, new-line" here and there. Refer to "whitespace", not "white-space". Remove long-commented-out CAVEATS, all of which have been addressed or at least discussed to some extent or another.
* Remove some FIXMEs: `Ms' accepts arbitrary text, so it can't/shouldn'tKristaps Dzonsons2010-07-193-6/+5
| | | | | | be converted into a symbol. The `Pp' issue has also been fixed.
* Fix spurrious newline emitted by `Pp' when specified before or afterKristaps Dzonsons2010-07-193-6/+13
| | | | `Sh'/`Ss'. Reported by Jason McIntyre.
* Changed Unicode codepoint of left-arrow right-arrow to be the regularKristaps Dzonsons2010-07-191-3/+3
| | | | ASCII symbols.
* Note discarding of \m, \M, and \s in COMPATIBILITY sections.Kristaps Dzonsons2010-07-192-3/+9
|
* Remove \s TODO: these are intelligently ignored along with \m and \M.Kristaps Dzonsons2010-07-191-10/+1
|
* Removed \s documentation, as we (1) never supported it, and (2) neverKristaps Dzonsons2010-07-192-55/+7
| | | | | | will. Also whack the dot-separator from the embedded man.7 manual.
* Double-up DECO_RESERVED switch branch for colours.Kristaps Dzonsons2010-07-191-16/+6
|
* Properly discard \m colour escapes. Noted by J.C. Roberts.Kristaps Dzonsons2010-07-182-5/+18
|
* Throw out a2roffdeco() in out.c for a readable version. The prior oneKristaps Dzonsons2010-07-183-185/+154
| | | | | | | | | | | | | was completely unmaintainable. The new one is both readable and quite similar to mandoc_special(), which in future versions will easily allow throwing-away of unsupported escapes (such as \m). It's also a fair bit smaller. DECO_SIZE has been removed: this crap, like colours, will not be supported. mandoc_special() also has #if 0'd switch branches for ALL groff.7 escapes and some lint fixes.
* Make "\ " produce non-breaking space.Kristaps Dzonsons2010-07-182-5/+4
| | | | Noted by Theo de Raadt. Ok schwarze@.
* Text ending in a full stop, exclamation mark or question markIngo Schwarze2010-07-185-20/+23
| | | | | | | | | | | | | | | | | | should not flag the end of a sentence if: 1) The punctuation is followed by closing delimiters and not preceded by alphanumeric characters, like in "There is no full stop (.) in this sentence" or 2) The punctuation is a child of a macro and not preceded by alphanumeric characters, like in "There is no full stop .Pq \&. in this sentence" "looks fine" to kristaps@; tested by jmc@ and sobrado@
* fixed .Sm spacing, but there are four new issuesIngo Schwarze2010-07-181-11/+15
|
* Clean up mandoc_special() (in order later to catch \m). It also flagsKristaps Dzonsons2010-07-182-153/+66
| | | | | | several syntactic errors that weren't caught before. Also un-puke chars.c on zero-length \[].
* Avoid letter-by-letter encoding by using strcspn() in term_word().Kristaps Dzonsons2010-07-171-8/+7
|
* By letting strncmp() do its job and not helping it with a prior lengthKristaps Dzonsons2010-07-172-381/+380
| | | | | check, we can remove the hard-coded length of all escape patterns. This frees up a nice chunk of memory.