| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
const struct regset pointer. No functionality.
|
|
|
|
|
|
|
|
| |
in mdoc_term.c and man_term.c down into term.c. This is still not
implemented in term.c, although stubs for width calculations are in
place. From now on, offset, rmargin, and other layout variables are
abstract screen widths. They will resolve to the the familiar values
for -Tascii but -Tps will eventually use points instead of chars.
|
| |
|
|
|
|
| |
simple state machine. This paves the way for decorated text.
|
|
|
|
| |
Made low-level engine functions into function pointers.
|
|
|
|
|
| |
terminal_free() in favour of ps_free() and ascii_free(). Moved ps_*()
functions into term_ps.c so that they don't clutter up term.c.
|
| |
|
|
|
|
| |
Added J.C. Roberts' TODO note.
|
|
|
|
|
|
| |
within term.c, but does add a small shim over putchar() that switches on
the output engine. Prints, for this initial version, only monospace and
without font decorations. It's a start.
|
|
|
|
| |
thousand years ago. Note that this is normalised to >=60.
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
| |
save the visual cursor position in term_flushln()
and use that to avoid multiple blank lines in nested lists while
still putting subsequent empty list tags each on their own line;
"go ahead" kristaps@
|
|
|
|
|
|
|
|
| |
and outside. In literal context, tab stops are at each eigth column;
outside, they are at each fifth column.
from OpenBSD mdoc_term.c rev. 1.75;
"commit" kristaps@
|
|
|
|
|
|
|
|
|
|
|
| |
stringified in main.c.
Allow `An' to handle an argument and child (with a warning).
Allow `Rv' and `Ex' to work without a prior `Nm' as groff does (with a
warning).
Allow inconsistent column syntax to only raise a warning.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the bsd.lv part of the main step to bring it back in sync.
At the same time, this prevents trailing whitespace in the output:
We delay writing blanks until we are sure printable characters follow.
This is achieved by
* remembering the end of the word instead of its length
* and not using vbl any longer for the control of line breaking
* such that vbl can sum up all kinds of white space
* before writing a word, printing all the blanks collected in vbl
* within the word, adding NBSP chars to vbl, then continuing with the word
* after the word, adding blanks to vbl, then starting the next word
"looks good" kristaps@
|
|
|
|
|
|
| |
introduce a #define to get rid of the magic number
describing the ASCII character used to represent non-breaking space;
ok kristaps
|
|
|
|
| |
the default margin. Hard-code 80 chars/line for now.
|
|
|
|
| |
output engine with flag.
|
| |
|
|
|
|
| |
(noted by Ingo Schwarze).
|
|
|
|
|
|
| |
Syntax" for why this mistake was made). Noted by Ingo Schwarze.
Lines of text now break at a hyphen, unless the hyphen is the first or second subsequent in a word. Inspired by a Ingo Schwarze's patch.
|
|
|
|
| |
between parse sequences.
|
|
|
|
| |
architectures. Thanks to Joerg Sonnenberger.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
bold and underline, we use a stack (no cascading, no double-font-mode).
Font modes with \f only affect the current stack point, as documented in
mdoc.7 and man.7. While -mdoc stacks fonts with embedded macros, -man
replaces them (the stack is always size 1). This works for all
invocations in supported systems' manual corpora to date. It doesn't
support groff's insanity with line-scoped \f as documented in mdoc.7.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Removed err.h from inclusions (less main.c--still in progress).
|
|
|
|
| |
Made realloc puke with fprintf.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixed assertion (this needs more consideration) when an overstep line is exactly as long as the rmargin.
|
| |
|
| |
|
| |
|
|
|
|
| |
Schwarze).
|
|
|
|
| |
underlined (noted by Joerg Sonnenberger).
|
|
|
|
| |
difficult, differ not only between -mdoc and -man, but between various invocation, e.g., -offset and -width).
|
|
|
|
| |
syntax for scaling widths: -mdoc assumes no unit means that the value is a string literal while -man instead uses the default vertical/horizontal scale.
|
|
|
|
| |
Terminal scaling backend pushed into term.c.
|
|
|
|
| |
Pushed terminal_{mdoc,man} into {mdoc,man}_term.c.
|
|
|
|
| |
Noted similarity of HP/TP and -hang/-tag in mandoc.1.
|
|
|
|
| |
Re-added text links to index.sgml (just for show).
|
| |
|
|
|
|
| |
More html work.
|