xref: /openbsd/regress/usr.bin/mandoc/roff/esc/w.in (revision 6d9b308d)
1.\" $OpenBSD: w.in,v 1.5 2023/10/23 20:07:19 schwarze Exp $
2.Dd $Mdocdate: October 23 2023 $
3.Dt ESC-W 1
4.Os
5.Sh NAME
6.Nm esc-w
7.Nd the roff escape w sequence: text width
8.Sh DESCRIPTION
9empty: \w''
10.br
11character: \w'n'
12.br
13blank: \w' '
14.br
15text: \w'text'
16.br
17special: \w'\(bu'
18.br
19numbered: \w'\N'100''
20.br
21Unicode: \w'\[u2013]'
22.br
23overstrike: \w'\o'ab''
24.br
25undefined: \w'\G'
26.br
27zero-width: \w'\fB\&\fP'
28.br
29skipchar: \w'a\zb\z\(buc'
30.Ss Argument delimiters
31unsupported \er: \w\rM\ru
32.br
33ignored \e&: \w\&M\&u
34.br
35useless \e.: \w\.M.u
36.br
37invalid \eG: \w\GMGu
38.br
39special \e-: \w\-M\-u
40.br
41break \ep: \w\pM\pu
42.br
43nospace \ec: \w\cM\cu
44.\".br
45.\"XXX skipchar \ec: \w\zM\zu
46.br
47.ds mystr xMxu
48string expansion: \w\*[mystr]
49.br
50.nr myreg 121
51register expansion: \w\n[myreg]u
52.br
53ignored \eON: \w\O1M\O2u
54.br
55special character: \w\(hyM\(hyu
56.br
57ignored \eZ\(aqstr\(aq: \w\Z'foo'M\Z'bar'u
58.br
59horizontal motion: \w\h'1'M\h'3'u
60.br
61horizontal line: \w\l'4'M\l'2'u
62.br
63overstrike: \w\o'ab'M\o'cd'u
64.br
65unterminated: \w'foo
66