Commit Graph

99 Commits

Author SHA1 Message Date
joerg 6602d8c908 Restore cast hack for GCC's "new qualifiers in middle of multi-level
non-const cast" warning.
2014-01-05 20:38:55 +00:00
joerg 66153a214b Update build system and import script for mdocml 1.12.3. 2014-01-05 19:49:57 +00:00
joerg 603fc4ebb9 Merge mdocml 1.12.3. 2014-01-05 19:27:20 +00:00
joerg 70f041f905 Import mdocml 1.12.3 from upstream CVS as of today.
Changes in version 1.12.3, released on December 31, 2013

 * In the mdoc(7) SYNOPSIS, line breaks and hanging indentation
   now work correctly for .Fo/.Fa/.Fc and .Fn blocks.
   Thanks to Franco Fichtner for doing part of the work.
 * The mdoc(7) .Bk macro got some addititonal bugfixes.
 * In mdoc(7) macro arguments, double quotes can now be quoted
   by doubling them, just like in man(7).
   Thanks to Tsugutomo ENAMI for the patch.
 * At the end of man(7) macro lines, end-of-sentence spacing
   now works.  Thanks to Franco Fichtner for the patch.
 * For backward compatibility, the man(7) parser now supports the
   man-ext .UR/.UE (uniform resource identifier) block macros.
 * The man(7) parser now handles closing blocks that are not open
   more gracefully.
 * The man(7) parser now ignores blank lines right after .SH and .SS.
 * In the man(7) formatter, reset indentation when leaving a block,
   not just when entering the next one.
 * The roff(7) .nr request now supports incrementing and decrementing
   number registers and stops parsing the number right before the
   first non-digit character.
 * The roff(7) parser now supports the alternative escape sequence
   syntax \C'uXXXX' for Unicode characters.
 * The roff(7) parser now parses and ignores the .fam (font family)
   and .hw (hyphenation points) requests and the \d and \u escape
   sequences.
 * The roff(7) manual got a new ESCAPE SEQUENCE REFERENCE.

Changes in version 1.12.2, released on Oktober 5, 2013

 * The mdoc(7) to man(7) converter, to be called as mandoc -Tman,
   is now fully functional.
 * The mandoc(1) utility now supports the -Ios (default operating system)
   input option, and the -Tutf8 output mode now actually works.
 * The mandocdb(8) utility no longer truncates existing databases when
   starting to build new ones, but only replaces them when the build
   actually succeeds.
 * The man(7) parser now supports the PD macro (paragraph distance),
   and (for GNU man-ext compatibility only) EX (example block) and EE
   (example end).  Plus several bugfixes regarding indentation, line
   breaks, and vertical spacing, and regarding RS following TP.
 * The roff(7) parser now supports the \f(BI (bold+italic) font escape,
   the \z (zero cursor advance) escape and the cc (change control
   character) and it (input line trap) requests. Plus bugfixes regarding
   the \t (tab) escape, nested escape sequences, and conditional requests.
 * In mdoc(7), several bugs were fixed related to UTF-8 output of quoting
   enclosures, delimiter handling, list indentation and horizontal and
   vertical spacing, formatting of the Lk, %U, and %C macros, plus some
   bugfixes related to the handling of syntax errors like badly nested
   font blocks, stray Ta macros outside column lists, unterminated It Xo
   blocks, and non-text children of Nm blocks.
 * In tbl(7), the width of horizontal spans and the vertical spacing
   around tables was corrected, and in man(7) files, a crash was fixed
   that was triggered by some particular unclosed T{ macros.
 * For mandoc developers, we now provide a tbl(3) library manual and
   gmdiff, a very small, very simplistic groff-versus-mandoc output
   comparison tool.
2014-01-05 19:21:37 +00:00
christos 4f9b4467be Use cleantags to remove RCS tags, missed the NEWS file before. 2013-12-29 00:23:34 +00:00
christos 182f9dc507 add p1003.1j 2013-12-25 15:09:27 +00:00
wiz 845c2955b6 Fix handling of nested double quotes.
From Ingo Schwarze <schwarze@usta.de> based on patch by enami@
in PR 48438.
2013-12-17 09:28:10 +00:00
christos 45b261d12f remove unused variables 2013-10-20 03:10:45 +00:00
christos 14303f280d don't assume that what we are going to import lives in dist 2013-04-03 14:51:31 +00:00
christos 43ed5f5eba merge diffs 2013-04-03 14:50:26 +00:00
christos 0d88b60388 import latest 2013-04-03 14:46:49 +00:00
christos 18c0fd3025 Allow both x==y and x=y in conditionals. With this change the ksh93 manpage
works.
2013-04-03 01:05:16 +00:00
christos 738a635d29 remove debugging printf. 2013-04-03 01:00:03 +00:00
christos 08c89a8c21 - remove the expand inline function, we don't need it.
- make allow = 1, deny = 0 to avoid confusion
- use memset properly
- merge ctl duplicated code
- add numeric conditional evaluator for unary and binary
- fix parsing of numeric registers to stop on non alnum

With those fixes, the man page for top(1) works.
2013-04-03 00:58:48 +00:00
christos 897a7bb8a0 do roff nr expansion before trailing backslash 2013-04-03 00:55:32 +00:00
christos f3119165d7 avoid arraycount for toolz 2013-03-22 12:31:25 +00:00
christos 81aec73d48 move the code to expand variables in one place and use it to expand
variables inside conditionals. still conditionals with variables don't
work.
2013-03-22 01:24:46 +00:00
christos 66541c2d35 support expanding numbered registers 2013-03-21 21:42:16 +00:00
wiz 500d85431e casing. 2013-03-08 08:29:36 +00:00
pooka e23a1341b4 Add librumpclient. requested by wiz 2013-03-08 08:13:34 +00:00
wiz ba9019db8d Add libnpf. From rmind.
While here, add consistency in casing.
2013-03-07 21:54:04 +00:00
agc 63d2555829 Following a prompt from wiz, ensure that explanations for the
minimalist JSON library libmj, and the netpgp verification library,
libnetpgpverify, are in the correct places.
2013-03-07 05:33:13 +00:00
wiz 72cafb0e98 Add libmandoc. 2013-03-06 21:42:47 +00:00
christos f60f86a673 XXX: rename data() to getdata(). This is to avoid an assembler botch on the
ppc64 toolchain where function names are prefixed with a period, so "data"
becomes ".data" and ".data" is confused by the assembler with the segment
directive with the same name. Clearly this is a toolchain issue; we should
be able to call functions "text" and "data" but it is simpler to fix the
code rather than the toolchain.
2012-11-24 22:29:09 +00:00
agc d055d5654e add definition for libnetpgpverify 2012-11-20 16:24:30 +00:00
christos e848a9e55e add libexecinfo 2012-06-10 00:25:51 +00:00
joerg d04049e559 Use mmap when dealing with plain files. 2012-02-16 22:56:12 +00:00
joerg 1fff0d9a0c Merge mandoc.h r1.99 and read.c 1.28 from upstream:
Add mparse_readmem, which allows application to run the parser directly
from memory, e.g. after de-compressing a document.
2012-02-16 20:58:23 +00:00
joerg 7bf72726f9 Pull read.c r1.27 from upstream repository:
Don't silently skip non-ASCII characters, but replace them with ``?''.
This is less likely to break the syntax of macros.
2012-02-06 10:42:44 +00:00
dholland 3190ca5bed Fix broken build by laundering const. hi joerg 2012-01-30 18:50:45 +00:00
joerg 1350fe098d Merge for mdocml 1.20.1pre import 2012-01-30 17:03:01 +00:00
joerg cf816816a1 Merge mdocml state from 2012-01-30 for various relaxed checks in the
parser to allow it to pass almost all man pages in pkgsrc.
2012-01-30 16:44:10 +00:00
joerg 0f0fda1c10 Merge mdocml state from 2012-01-30 for various relaxed checks in the
parser to allow it to pass almost all man pages in pkgsrc.
2012-01-30 16:44:08 +00:00
joerg 94561435e1 Merge mdocml state from 2012-01-30 for various relaxed checks in the
parser to allow it to pass almost all man pages in pkgsrc.
2012-01-30 16:44:03 +00:00
dholland de37c897b5 Add libquota, as requested by wiz 2012-01-25 22:22:20 +00:00
njoly e933eb3317 Lowercase arch strings, and add missing ones. 2011-12-18 13:40:08 +00:00
christos bfc91a38aa rename data() -> parse_data() to appease the powerpc64 toolchain:
{standard input}: Assembler messages:
{standard input}:105: Error: symbol `.data' is already defined
2011-10-28 14:00:20 +00:00
njoly 3a1b9a69ca define HAVE_STRPTIME needed for date parsing. 2011-10-12 15:33:38 +00:00
joerg 937673ea7b Revert incorrect last change and redo it in a way that doesn't violate
strict aliasing rules.
2011-10-12 14:11:25 +00:00
christos 90136e10d7 fix wrong cast. 2011-10-12 13:44:33 +00:00
joerg 01476cad21 Update build system for mdocml 1.12.0. 2011-10-11 19:20:13 +00:00
joerg b1e8115bf5 Merge changes for mdocml-1.12.0. 2011-10-11 19:12:13 +00:00
joerg c5f73b3488 Import mdocml 1.12.0:
- Support to output HTML fragments
- Initial support for mdoc->man translation
- Initial eqn support
- preconv / apropos / demandoc (not hooked up)
- Various bugfixes
2011-10-11 19:09:36 +00:00
wiz 7c47a19704 Add libppath. 2011-08-29 08:58:18 +00:00
christos e307dc8de5 fix cast warnings 2011-08-17 09:30:13 +00:00
mrg c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
hans f559331e26 include config.h 2011-06-01 15:52:48 +00:00
joerg 032ce801a7 Really apply roff.c 1.134 for the conditional stack fix 2011-04-15 22:05:51 +00:00
joerg a5447c9e30 Deal with two cases of name shadowing 2011-04-15 15:50:28 +00:00
joerg 78bc4f7461 Update build glue for mdocml 1.11.1. 2011-04-15 14:36:28 +00:00