diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-16 00:17:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-16 00:17:02 +0000 |
commit | 0cfd5175e34d41bc422a986950293edb0d8d2c38 (patch) | |
tree | 63934b15f1f9821374eb2a81ad104851dbc5cf12 /regress/roff/ft | |
parent | 0e3f0b740ea18224c3b2c07114be601dd8be97bb (diff) | |
download | mandoc-0cfd5175e34d41bc422a986950293edb0d8d2c38.tar.gz |
Yet another round of improvements to manual font selection.
Unify handling of \f and .ft.
Support \f4 (bold+italic).
Support ".ft BI" and ".ft CW" for terminal output.
Support the .ft request in HTML output.
Reject the bogus fonts \f(C1, \f(C2, \f(C3, and \f(CP.
In regress.pl, only strip leading whitespace in math mode.
Diffstat (limited to 'regress/roff/ft')
-rw-r--r-- | regress/roff/ft/Makefile | 3 | ||||
-rw-r--r-- | regress/roff/ft/badargs.in | 21 | ||||
-rw-r--r-- | regress/roff/ft/badargs.out_ascii | 7 | ||||
-rw-r--r-- | regress/roff/ft/badargs.out_html | 9 | ||||
-rw-r--r-- | regress/roff/ft/badargs.out_lint | 4 |
5 files changed, 37 insertions, 7 deletions
diff --git a/regress/roff/ft/Makefile b/regress/roff/ft/Makefile index 5d2accbb..0eadb05d 100644 --- a/regress/roff/ft/Makefile +++ b/regress/roff/ft/Makefile @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile,v 1.1 2014/07/05 12:33:54 schwarze Exp $ +# $OpenBSD: Makefile,v 1.3 2018/12/15 23:33:20 schwarze Exp $ REGRESS_TARGETS = badargs badargs-mdoc +HTML_TARGETS = badargs LINT_TARGETS = badargs badargs-mdoc SKIP_TMAN = badargs diff --git a/regress/roff/ft/badargs.in b/regress/roff/ft/badargs.in index 82269609..ac3ee72a 100644 --- a/regress/roff/ft/badargs.in +++ b/regress/roff/ft/badargs.in @@ -1,9 +1,23 @@ -.\" $OpenBSD: badargs.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ -.TH "FT-BADARGS" 1 "July 5, 2014" +.\" $OpenBSD: badargs.in,v 1.5 2018/12/16 00:10:03 schwarze Exp $ +.TH "FT-BADARGS" 1 "December 15, 2018" .SH NAME ft-badargs \(en font request with bad arguments .SH DESCRIPTION +BEGINTEST +.br default font +.ft I +italic +.ft BI +bold italic +.ft CR +typeqriter +.ft CW +roman +.ft CB +bold +.ft CI +italic .ft B bold .ft foo @@ -14,3 +28,6 @@ italic back to bold .ft back to italic +.ft R +.br +ENDTEST diff --git a/regress/roff/ft/badargs.out_ascii b/regress/roff/ft/badargs.out_ascii index 30bfed3c..07c2392a 100644 --- a/regress/roff/ft/badargs.out_ascii +++ b/regress/roff/ft/badargs.out_ascii @@ -6,8 +6,11 @@ NNAAMMEE ft-badargs - font request with bad arguments DDEESSCCRRIIPPTTIIOONN - default font bboolldd ssttiillll bboolldd _i_t_a_l_i_c bbaacckk ttoo bboolldd _b_a_c_k _t_o _i_t_a_l_i_c + BEGINTEST + default font _i_t_a_l_i_c _bb_oo_ll_dd _ii_tt_aa_ll_ii_cc typeqriter roman bboolldd _i_t_a_l_i_c bboolldd ssttiillll + bboolldd _i_t_a_l_i_c bbaacckk ttoo bboolldd _b_a_c_k _t_o _i_t_a_l_i_c + ENDTEST -OpenBSD July 5, 2014 FT-BADARGS(1) +OpenBSD December 15, 2018 FT-BADARGS(1) diff --git a/regress/roff/ft/badargs.out_html b/regress/roff/ft/badargs.out_html new file mode 100644 index 00000000..8b30ab05 --- /dev/null +++ b/regress/roff/ft/badargs.out_html @@ -0,0 +1,9 @@ +BEGINTEST +<br/> +default font <i></i><i>italic</i> <b><i></i></b><b><i>bold italic</i></b> + <span class="Li"></span><span class="Li">typeqriter</span> + <span class="Li"></span> <span class="Li">roman</span> <b></b><b>bold</b> + <i></i> <i>italic</i> <b></b><b>bold</b> <b>still bold</b> + <i></i><i>italic</i> <i></i><i>back to bold</i> <i></i><i>back to italic</i> +<br/> +ENDTEST</div> diff --git a/regress/roff/ft/badargs.out_lint b/regress/roff/ft/badargs.out_lint index 36c8c0bf..493aaeb4 100644 --- a/regress/roff/ft/badargs.out_lint +++ b/regress/roff/ft/badargs.out_lint @@ -1,2 +1,2 @@ -mandoc: badargs.in:11:7: ERROR: skipping excess arguments: ft ... bogus -mandoc: badargs.in:9:2: WARNING: unknown font, skipping request: ft foo +mandoc: badargs.in:25:7: ERROR: skipping excess arguments: ft ... bogus +mandoc: badargs.in:23:2: WARNING: unknown font, skipping request: ft foo |