aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/chars.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove last pod2man escapes. These render ok, although \*(-- renders asKristaps Dzonsons2010-09-151-2/+2
| | | | | | 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.
* Churny commit to quiet lint. No functional changes.Kristaps Dzonsons2010-09-041-3/+3
|
* Remove the pod2man table entries. They can now be properly read andKristaps Dzonsons2010-08-291-2/+2
| | | | assigned within the pod2man preamble.
* Implement a simple, consistent user interface for error handling.Ingo Schwarze2010-08-201-3/+3
| | | | | | | | | | | | | | | | | 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.
* Remove \*(C+ from the pre-predefined strings. It is always `ds'-definedKristaps Dzonsons2010-08-161-2/+2
| | | | | | 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-10/+9
| | | | | | 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).
* Clean up mandoc_special() (in order later to catch \m). It also flagsKristaps Dzonsons2010-07-181-2/+3
| | | | | | several syntactic errors that weren't caught before. Also un-puke chars.c on zero-length \[].
* By letting strncmp() do its job and not helping it with a prior lengthKristaps Dzonsons2010-07-171-10/+9
| | | | | 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-24/+65
| | | | 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-2/+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.
* Modified version of Ingo Schwarze's patch for hyphen-breaking.Kristaps Dzonsons2010-05-251-1/+2
| | | | | | | Breakable hyphens are cued in the back-ends (with ASCII_HYPH) and acted upon in term.c or ignored in html.c. Also cleaned up XML decl printing (no need for extra vars).
* Added stupid pod2man reserved strings.Kristaps Dzonsons2010-03-231-2/+2
|
* Removed superfluous lookahead block in chars.c.Kristaps Dzonsons2010-01-281-13/+1
|
* Removed references to `\\' escape (noted by Jason McIntyre, Ingo Schwarze).Kristaps Dzonsons2010-01-051-2/+2
|
* Big check-in of compatibility layer. This should work on most major ↵Kristaps Dzonsons2010-01-011-1/+5
| | | | architectures. Thanks to Joerg Sonnenberger.
* Added functionality of -Tascii non-breaking `\~' space.Kristaps Dzonsons2009-11-051-3/+4
|
* Replaced putchar() loop with fwrite() (noted by Joerg Sonnenberger).Kristaps Dzonsons2009-11-011-2/+2
|
* Using perror() instead of fprintf for failure from library functions.Kristaps Dzonsons2009-10-311-3/+3
|
* Continued safe handling of allocations.Kristaps Dzonsons2009-10-301-7/+12
|
* All special characters sync'd with groff, both -Thtml and -Tascii.Kristaps Dzonsons2009-09-231-2/+2
| | | | Re-added text links to index.sgml (just for show).
* Sync'd special letters and ligatures with newest groff.Kristaps Dzonsons2009-09-231-2/+2
|
* Arrows & brackets sync'd with newest groff.Kristaps Dzonsons2009-09-231-2/+2
|
* Quotes sync'd with newest groff.Kristaps Dzonsons2009-09-231-2/+2
|
* Accent marks sync'd with current groff.Kristaps Dzonsons2009-09-221-2/+2
|
* Many more UTF-8 symbols in place.Kristaps Dzonsons2009-09-221-2/+2
| | | | | | 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.
* Many more characters for HMTL (mostly Greek).Kristaps Dzonsons2009-09-221-2/+2
|
* More html.Kristaps Dzonsons2009-09-171-29/+32
| | | | Initial html encodings in chars.in.
* ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding).Kristaps Dzonsons2009-09-171-0/+201
More html work.