aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/chars.in
Commit message (Collapse)AuthorAgeFilesLines
* Render \(lq and \(rq as '"' in -Tascii mode but leave the renderingIngo Schwarze2015-02-171-3/+5
| | | | | | of .Do/.Dc, .Dq, .Lb, and .St untouched. Reduces groff-mandoc differences in OpenBSD base by about 7%. Reminded of the issue by naddy@.
* correct -Tutf8 and -Thtml rendering of \(~=Ingo Schwarze2014-12-161-3/+3
| | | | | and change the name of \(-~ to \(|= to agree with groff; difference found by Carsten dot Kunze at arcor dot de
* correct some character names to match groff;Ingo Schwarze2014-12-151-8/+8
| | | | reported by Carsten dot Kunze at arcor dot de
* Let -Tascii \(bu (bullet) output agree with groff;Ingo Schwarze2014-11-061-2/+2
| | | | this is now possible because -Tps now handles backspace overstriking.
* Some fine tuning of console rendering of named special characters.Ingo Schwarze2014-10-291-20/+20
| | | | | | Correct ASCII rendering: \(lb \(<> \(sd Make ASCII rendering agree with groff, using backspace overstrike: \(da \(ua \(dA \(uA \(fa \(c* \(c+ \(ib \(ip \(/_ \(pp \(is \(dd \(dg
* Refine -Tascii rendering of Unicode characters, mostly to better agreeIngo Schwarze2014-10-281-95/+95
| | | | | | | | | with groff, in particular in cases where groff uses backspace overstrike. In two cases, agreement is impossible because groff clobbers the previous line: \(*G \(*S In a number of cases, groff rendering is so misleading that i chose to render differently: \(Sd \(TP \(Tp \(Po \(ps \(sc \(r! \(r? \(de While here, also correct the \(la and \(ra Unicode code points.
* KNF: case (FOO): -> case FOO:, remove /* LINTED */ and /* ARGSUSED */,Ingo Schwarze2014-04-201-2/+2
| | | | | remove trailing whitespace and blanks before tabs, improve some indenting; no functional change
* In -Tutf8 mode, mandoc_char(7) named accent character escape sequencesIngo Schwarze2014-03-051-12/+12
| | | | | | | | | | | | | | have to render as non-combining accents; if you want combining accents, you have to explicitly specify them using the Unicode character numbers for combining accents, or you can use character escape sequences for accented characters. This lets mandoc behave like groff. Additionally, both the Ossanna/Kernighan/Ritter troff manual and the GNU troff manual say that \' and \` are equivalent to \(aa and \(ga, respectively, so do the same for these. This mitigates issues with man(7) code autogenerated by texinfo2man(1), which mistranslates TeX ` and ' to \` and \' instead of \(oq and \(cq as reported by sthen@ and as analyzed by bentley@.
* Implement the \: (optional line break) escape sequence,Ingo Schwarze2014-01-221-8/+12
| | | | | | | documented in the Ossanna-Kernighan-Ritter troff manual and also supported by groff. Missing feature reported by Steffen Nurpmeso <sdaoden at gmail dot com>.
* Improve handling of the roff(7) "\t" escape sequence:Ingo Schwarze2013-06-201-1/+2
| | | | | | | | | | | * Parsing macro arguments has to be done in copy mode, which implies replacing "\t" by a literal tab character. * Otherwise, render "\t" as the empty string, not as a 't' character. This fixes formatting of the distfile example in the oldrdist(1) manual. This also shows up in the unzip(1) manual as one of several issues preventing the removal of USE_GROFF from the archivers/unzip port. Thanks to espie@ for attracting my attention to the unzip(1) manual.
* Make -T[x]html suppress output with \& (and similar zwsp points). ThisKristaps Dzonsons2011-10-021-7/+7
| | | | | fixes lynx's rendering of manuals with the \&, which were rendering as &#8203; in the text. Reported by Paul de Weerd, thanks!
* forgotten Copyright bumps; no code changeIngo Schwarze2011-09-181-2/+2
| | | | found while syncing to OpenBSD
* Add support for 1/2, 1/4, and 3/4 (needed by eqn).Kristaps Dzonsons2011-07-221-1/+4
|
* Use the correct Unicode value for the zero-width space, which means thatKristaps Dzonsons2011-05-241-7/+7
| | | | | spec2cp never needs to fall through to spec2str. Then clean out html.c of its unnecessary print_res() function.
* Remove predefined strings from the chars.in file, as they're now localKristaps Dzonsons2011-05-241-49/+16
| | | | | to predefs.in. This also makes "BOTH" entries directly into CHAR. The res2str and spec2str are now effectively the same function.
* Add \*(Ai (ANSI) and \*(Px (POSIX) predefined strings, which are part ofKristaps Dzonsons2011-04-201-1/+3
| | | | | | groff's tmac.doc package. Originally noted by Matthew Dempsky. Feedback by Jason McIntyre, joerg@, and schwarze@. Also add some documentation about predefined strings, tweaked by schwarze@.
* o diaeresis is 246 (U+00F6)Ingo Schwarze2011-03-161-2/+2
| | | | from Christian Weisgerber <naddy at openbsd dot org>
* Remove last pod2man escapes. These render ok, although \*(-- renders asKristaps Dzonsons2010-09-151-16/+3
| | | | | | O- because the underlying macro depends on \(*W, which a prior pod2man preamble `tr' macro rewrites as "-". This is an error in groff as this tramples on the real \(*W, or Greek omega.
* Remove the pod2man table entries. They can now be properly read andKristaps Dzonsons2010-08-291-10/+3
| | | | assigned within the pod2man preamble.
* Remove \*(C+ from the pre-predefined strings. It is always `ds'-definedKristaps Dzonsons2010-08-161-2/+1
| | | | | | when being used in manuals. Since we now support `ds', it's no longer necessary to account for it. From a bug report originally by Thomas Jeunet.
* Sync to OpenBSD: add missing Copyright years.Ingo Schwarze2010-07-311-2/+2
| | | | | I checked that substantial changes were committed to these files during these years.
* Remove asciisz from chars.in. It frees up a nice chunk of memory and atKristaps Dzonsons2010-07-261-372/+372
| | | | | | 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).
* Fix chars.in fall-through to ASCII mode. This bug only affectedKristaps Dzonsons2010-07-261-7/+7
| | | | -T[x]html.
* Changed Unicode codepoint of left-arrow right-arrow to be the regularKristaps Dzonsons2010-07-191-3/+3
| | | | ASCII symbols.
* Make "\ " produce non-breaking space.Kristaps Dzonsons2010-07-181-2/+2
| | | | Noted by Theo de Raadt. Ok schwarze@.
* By letting strncmp() do its job and not helping it with a prior lengthKristaps Dzonsons2010-07-171-371/+371
| | | | | check, we can remove the hard-coded length of all escape patterns. This frees up a nice chunk of memory.
* Change chars.in HTML encoding to be a Unicode codepoint (int), which isKristaps Dzonsons2010-07-161-371/+371
| | | | later formatted in html.c.
* Churn as I finish email address migration kth.se -> bsd.lv.Kristaps Dzonsons2010-06-191-2/+2
|
* Fixed condition of `\}' closing a conditional at the start of the line.Kristaps Dzonsons2010-06-011-1/+2
| | | | | | | | Fixed flushed-out condition of \} causing subsequent arguments to be truncated, when in fact the whole line should be passed through (if the conditional succeeds) to the front-end and the \} ignored there. Added regression test of this behaviour.
* sync to OpenBSD:Ingo Schwarze2010-05-161-2/+2
| | | | | | introduce a #define to get rid of the magic number describing the ASCII character used to represent non-breaking space; ok kristaps
* Escape TH -> Th (noticed by Joerg Sonnenberger).Kristaps Dzonsons2010-03-301-2/+2
| | | | Moved pod2man escapes into man.3 (they're not part of -man or -mdoc, technically).
* Added stupid pod2man reserved strings.Kristaps Dzonsons2010-03-231-5/+26
|
* Removed references to `\\' escape (noted by Jason McIntyre, Ingo Schwarze).Kristaps Dzonsons2010-01-051-2/+1
|
* Added functionality of -Tascii non-breaking `\~' space.Kristaps Dzonsons2009-11-051-2/+9
|
* Fix in -Tascii where `Lb' causes line-break in any section (should only ↵Kristaps Dzonsons2009-09-241-2/+2
| | | | | | | happen in LIBRARY). `Fn' first parameter is broken apart into ftype and fname in -Thtml (for correct style application). Fixed \0 special character.
* All special characters sync'd with groff, both -Thtml and -Tascii.Kristaps Dzonsons2009-09-231-63/+89
| | | | Re-added text links to index.sgml (just for show).
* Sync'd currency symbols with newest groff.Kristaps Dzonsons2009-09-231-9/+11
|
* Sync'd special letters and ligatures with newest groff.Kristaps Dzonsons2009-09-231-63/+65
|
* Arrows & brackets sync'd with newest groff.Kristaps Dzonsons2009-09-231-19/+49
|
* Quotes sync'd with newest groff.Kristaps Dzonsons2009-09-231-9/+14
|
* Accent marks sync'd with current groff.Kristaps Dzonsons2009-09-221-16/+17
|
* Many more UTF-8 symbols in place.Kristaps Dzonsons2009-09-221-121/+172
| | | | | | Started partitioning chars.in into sections corresponding to mandoc_char.7. Correctly ordered Greek letters. Sync'd all mathematical and logical symbols with current groff.
* Fix segfault in -Thtml column lists.Kristaps Dzonsons2009-09-221-14/+14
| | | | | | Added some more UTF-8 chars. mandoc_char.7 now has all special characters rendered. Fixed column layout in -Thtml.
* Fixed some characters.Kristaps Dzonsons2009-09-221-16/+16
| | | | Initial push of mandoc_char showing the current character rendering (useful for testing, too).
* Many more characters for HMTL (mostly Greek).Kristaps Dzonsons2009-09-221-45/+46
|
* A few more macros in -Thtml.Kristaps Dzonsons2009-09-211-3/+3
|
* Removed man handling in -Thtml (for now).Kristaps Dzonsons2009-09-211-21/+21
| | | | Added some UTF chars to chars.in.
* Headers and footers in -Thtml. Various minor additions.Kristaps Dzonsons2009-09-201-11/+11
|
* Some extra html tags and near-complete Bl: -tag is hopeless (synonym for ↵Kristaps Dzonsons2009-09-201-4/+4
| | | | -hang, now) and -column is still pending.
* Consider html fixes, most importantly -tag and -hang (breaks in IE6, ↵Kristaps Dzonsons2009-09-171-6/+6
| | | | apparently).