CVS log for mandoc/Attic/chars.in

[BACK] Up to [cvsweb.bsd.lv] / mandoc

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.53, Tue Oct 13 22:59:54 2015 UTC (5 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.52: +1 -1 lines
FILE REMOVED

Major character table cleanup:
* Use ohash(3) rather than a hand-rolled hash table.
* Make the character table static in the chars.c module:
There is no need to pass a pointer around, we most certainly
never want to use two different character tables concurrently.
* No need to keep the characters in a separate file chars.in;
that merely encourages downstream porters to mess with them.
* Sort the characters to agree with the mandoc_chars(7) manual page.
* Specify Unicode codepoints in hex, not decimal (that's the detail
that originally triggered this patch).
No functional change, minus 100 LOC, and i don't see a performance change.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Feb 17 20:37:16 2015 UTC (6 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.51: +5 -3 lines
Diff to previous 1.51 (colored)

Render \(lq and \(rq as '"' in -Tascii mode but leave the rendering
of .Do/.Dc, .Dq, .Lb, and .St untouched.
Reduces groff-mandoc differences in OpenBSD base by about 7%.
Reminded of the issue by naddy@.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Dec 16 19:50:03 2014 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

correct -Tutf8 and -Thtml rendering of \(~=
and change the name of \(-~ to \(|= to agree with groff;
difference found by Carsten dot Kunze at arcor dot de

Revision 1.50 / (download) - annotate - [select for diffs], Mon Dec 15 19:42:21 2014 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.49: +8 -8 lines
Diff to previous 1.49 (colored)

correct some character names to match groff;
reported by Carsten dot Kunze at arcor dot de

Revision 1.49 / (download) - annotate - [select for diffs], Thu Nov 6 22:28:36 2014 UTC (6 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

Let -Tascii \(bu (bullet) output agree with groff;
this is now possible because -Tps now handles backspace overstriking.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 29 03:35:09 2014 UTC (6 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.47: +20 -20 lines
Diff to previous 1.47 (colored)

Some fine tuning of console rendering of named special characters.
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

Revision 1.47 / (download) - annotate - [select for diffs], Tue Oct 28 02:43:59 2014 UTC (6 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.46: +95 -95 lines
Diff to previous 1.46 (colored)

Refine -Tascii rendering of Unicode characters, mostly to better agree
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.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Apr 20 16:46:04 2014 UTC (7 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1, VERSION_1_12_4, VERSION_1_12
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

KNF: case (FOO):  ->  case FOO:, remove /* LINTED */ and /* ARGSUSED */,
remove trailing whitespace and blanks before tabs, improve some indenting;
no functional change

Revision 1.45 / (download) - annotate - [select for diffs], Wed Mar 5 23:14:46 2014 UTC (7 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.44: +12 -12 lines
Diff to previous 1.44 (colored)

In -Tutf8 mode, mandoc_char(7) named accent character escape sequences
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@.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jan 22 20:58:39 2014 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.43: +12 -8 lines
Diff to previous 1.43 (colored)

Implement the \: (optional line break) escape sequence,
documented in the Ossanna-Kernighan-Ritter troff manual
and also supported by groff.

Missing feature reported by Steffen Nurpmeso <sdaoden at gmail dot com>.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 20 22:39:30 2013 UTC (8 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_3, VERSION_1_12_2
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Improve handling of the roff(7) "\t" escape sequence:
* 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.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Oct 2 10:02:26 2011 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_1, VERSION_1_12_0
Changes since 1.41: +7 -7 lines
Diff to previous 1.41 (colored)

Make -T[x]html suppress output with \& (and similar zwsp points).  This
fixes lynx's rendering of manuals with the \&, which were rendering as
&#8203; in the text.  Reported by Paul de Weerd, thanks!

Revision 1.41 / (download) - annotate - [select for diffs], Sun Sep 18 14:14:15 2011 UTC (10 years ago) by schwarze
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

forgotten Copyright bumps; no code change
found while syncing to OpenBSD

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jul 22 14:15:15 2011 UTC (10 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5
Changes since 1.39: +4 -1 lines
Diff to previous 1.39 (colored)

Add support for 1/2, 1/4, and 3/4 (needed by eqn).

Revision 1.39 / (download) - annotate - [select for diffs], Tue May 24 21:40:14 2011 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_4, VERSION_1_11_3
Changes since 1.38: +7 -7 lines
Diff to previous 1.38 (colored)

Use the correct Unicode value for the zero-width space, which means that
spec2cp never needs to fall through to spec2str.  Then clean out html.c
of its unnecessary print_res() function.

Revision 1.38 / (download) - annotate - [select for diffs], Tue May 24 21:24:16 2011 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.37: +16 -49 lines
Diff to previous 1.37 (colored)

Remove predefined strings from the chars.in file, as they're now local
to predefs.in.  This also makes "BOTH" entries directly into CHAR.  The
res2str and spec2str are now effectively the same function.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Apr 20 22:50:22 2011 UTC (10 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_2
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

Add \*(Ai (ANSI) and \*(Px (POSIX) predefined strings, which are part of
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@.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 16 22:49:55 2011 UTC (10 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_11_1, VERSION_1_10_10
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

o diaeresis is 246 (U+00F6)
from Christian Weisgerber <naddy at openbsd dot org>

Revision 1.35 / (download) - annotate - [select for diffs], Wed Sep 15 13:10:30 2010 UTC (11 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_9, VERSION_1_10_8, VERSION_1_10_7, VERSION_1_10_6
Changes since 1.34: +3 -16 lines
Diff to previous 1.34 (colored)

Remove last pod2man escapes.  These render ok, although \*(-- renders as
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.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Aug 29 11:36:49 2010 UTC (11 years ago) by kristaps
Branch: MAIN
Changes since 1.33: +3 -10 lines
Diff to previous 1.33 (colored)

Remove the pod2man table entries.  They can now be properly read and
assigned within the pod2man preamble.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Aug 16 09:51:17 2010 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.32: +1 -2 lines
Diff to previous 1.32 (colored)

Remove \*(C+ from the pre-predefined strings.  It is always `ds'-defined
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.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jul 31 23:52:58 2010 UTC (11 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Sync to OpenBSD: add missing Copyright years.
I checked that substantial changes were committed
to these files during these years.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 26 13:59:00 2010 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_5
Changes since 1.30: +372 -372 lines
Diff to previous 1.30 (colored)

Remove asciisz from chars.in.  It frees up a nice chunk of memory and at
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).

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 26 10:20:06 2010 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.29: +7 -7 lines
Diff to previous 1.29 (colored)

Fix chars.in fall-through to ASCII mode.  This bug only affected
-T[x]html.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jul 19 10:49:30 2010 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_5_PREPDF
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Changed Unicode codepoint of left-arrow right-arrow to be the regular
ASCII symbols.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 18 18:04:25 2010 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Make "\ " produce non-breaking space.

Noted by Theo de Raadt.  Ok schwarze@.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jul 17 09:21:39 2010 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.26: +371 -371 lines
Diff to previous 1.26 (colored)

By letting strncmp() do its job and not helping it with a prior length
check, we can remove the hard-coded length of all escape patterns.  This
frees up a nice chunk of memory.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 16 22:33:30 2010 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.25: +371 -371 lines
Diff to previous 1.25 (colored)

Change chars.in HTML encoding to be a Unicode codepoint (int), which is
later formatted in html.c.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jun 19 20:46:27 2010 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_4, VERSION_1_10_3, VERSION_1_10_2
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Churn as I finish email address migration kth.se -> bsd.lv.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 1 11:47:28 2010 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_1
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Fixed condition of `\}' closing a conditional at the start of the line.

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.

Revision 1.23 / (download) - annotate - [select for diffs], Sun May 16 01:35:37 2010 UTC (11 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

sync to OpenBSD:
introduce a #define to get rid of the magic number
describing the ASCII character used to represent non-breaking space;
ok kristaps

Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 30 19:20:33 2010 UTC (11 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_25, VERSION_1_9_24, VERSION_1_9_23, VERSION_1_9_22, VERSION_1_9_21
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Escape TH -> Th (noticed by Joerg Sonnenberger).
Moved pod2man escapes into man.3 (they're not part of -man or -mdoc, technically).

Revision 1.21 / (download) - annotate - [select for diffs], Tue Mar 23 13:25:01 2010 UTC (11 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_20, VERSION_1_9_19, VERSION_1_9_18, VERSION_1_9_17
Changes since 1.20: +26 -5 lines
Diff to previous 1.20 (colored)

Added stupid pod2man reserved strings.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jan 5 19:51:10 2010 UTC (11 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_16, VERSION_1_9_15
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

Removed references to `\\' escape (noted by Jason McIntyre, Ingo Schwarze).

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 5 07:21:02 2009 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_15-pre2, VERSION_1_9_15-pre1, VERSION_1_9_14
Changes since 1.18: +9 -2 lines
Diff to previous 1.18 (colored)

Added functionality of -Tascii non-breaking `\~' space.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Sep 24 11:55:28 2009 UTC (12 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_9, VERSION_1_9_8, VERSION_1_9_7, VERSION_1_9_6, VERSION_1_9_13, VERSION_1_9_12, VERSION_1_9_11, VERSION_1_9_10
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Fix in -Tascii where `Lb' causes line-break in any section (should only happen in LIBRARY).
`Fn' first parameter is broken apart into ftype and fname in -Thtml (for correct style application).
Fixed \0 special character.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Sep 23 11:02:21 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.16: +89 -63 lines
Diff to previous 1.16 (colored)

All special characters sync'd with groff, both -Thtml and -Tascii.
Re-added text links to index.sgml (just for show).

Revision 1.16 / (download) - annotate - [select for diffs], Wed Sep 23 09:10:52 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.15: +11 -9 lines
Diff to previous 1.15 (colored)

Sync'd currency symbols with newest groff.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Sep 23 09:06:44 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.14: +65 -63 lines
Diff to previous 1.14 (colored)

Sync'd special letters and ligatures with newest groff.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Sep 23 01:04:11 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.13: +49 -19 lines
Diff to previous 1.13 (colored)

Arrows & brackets sync'd with newest groff.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 23 00:03:45 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.12: +14 -9 lines
Diff to previous 1.12 (colored)

Quotes sync'd with newest groff.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 22 23:34:14 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.11: +17 -16 lines
Diff to previous 1.11 (colored)

Accent marks sync'd with current groff.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 22 23:15:58 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.10: +172 -121 lines
Diff to previous 1.10 (colored)

Many more UTF-8 symbols in place.
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.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Sep 22 16:10:52 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.9: +14 -14 lines
Diff to previous 1.9 (colored)

Fix segfault in -Thtml column lists.
Added some more UTF-8 chars.
mandoc_char.7 now has all special characters rendered.
Fixed column layout in -Thtml.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 22 10:11:57 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.8: +16 -16 lines
Diff to previous 1.8 (colored)

Fixed some characters.
Initial push of mandoc_char showing the current character rendering (useful for testing, too).

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 22 10:07:01 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.7: +46 -45 lines
Diff to previous 1.7 (colored)

Many more characters for HMTL (mostly Greek).

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 21 23:12:08 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

A few more macros in -Thtml.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 21 14:40:31 2009 UTC (12 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_5
Changes since 1.5: +21 -21 lines
Diff to previous 1.5 (colored)

Removed man handling in -Thtml (for now).
Added some UTF chars to chars.in.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 20 19:25:06 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.4: +11 -11 lines
Diff to previous 1.4 (colored)

Headers and footers in -Thtml.  Various minor additions.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 20 17:24:57 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Some extra html tags and near-complete Bl: -tag is hopeless (synonym for -hang, now) and -column is still pending.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Sep 17 23:35:41 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored)

Consider html fixes, most importantly -tag and -hang (breaks in IE6, apparently).

Revision 1.2 / (download) - annotate - [select for diffs], Thu Sep 17 08:21:42 2009 UTC (12 years ago) by kristaps
Branch: MAIN
Changes since 1.1: +267 -267 lines
Diff to previous 1.1 (colored)

More html.
Initial html encodings in chars.in.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Sep 17 07:41:28 2009 UTC (12 years ago) by kristaps
Branch: MAIN

ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding).
More html work.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb