mirror of https://github.com/mkerrisk/man-pages
/'/\\'/ to produce better UTF rendering
This commit is contained in:
parent
9377e6281a
commit
b8b45978b0
|
@ -72,7 +72,7 @@ into the buffer pointed to by
|
||||||
until either a terminating newline or
|
until either a terminating newline or
|
||||||
.BR EOF ,
|
.BR EOF ,
|
||||||
which it replaces with
|
which it replaces with
|
||||||
.BR '\e0' .
|
.BR \'\e0\' .
|
||||||
No check for buffer overrun is performed (see BUGS below).
|
No check for buffer overrun is performed (see BUGS below).
|
||||||
.PP
|
.PP
|
||||||
.BR fgets ()
|
.BR fgets ()
|
||||||
|
@ -87,7 +87,7 @@ Reading stops after an
|
||||||
or a newline.
|
or a newline.
|
||||||
If a newline is read, it is stored into the buffer.
|
If a newline is read, it is stored into the buffer.
|
||||||
A
|
A
|
||||||
.B '\e0'
|
.B \'\e0\'
|
||||||
is stored after the last character in the buffer.
|
is stored after the last character in the buffer.
|
||||||
.PP
|
.PP
|
||||||
.BR ungetc ()
|
.BR ungetc ()
|
||||||
|
|
|
@ -132,15 +132,15 @@ In the
|
||||||
and
|
and
|
||||||
.B """POSIX"""
|
.B """POSIX"""
|
||||||
locales, these are: space, form-feed
|
locales, these are: space, form-feed
|
||||||
.RB ( '\ef' ),
|
.RB ( \'\ef\' ),
|
||||||
newline
|
newline
|
||||||
.RB ( '\en' ),
|
.RB ( \'\en\' ),
|
||||||
carriage return
|
carriage return
|
||||||
.RB ( '\er' ),
|
.RB ( \'\er\' ),
|
||||||
horizontal tab
|
horizontal tab
|
||||||
.RB ( '\et' ),
|
.RB ( \'\et\' ),
|
||||||
and vertical tab
|
and vertical tab
|
||||||
.RB ( '\ev' ).
|
.RB ( \'\ev\' ).
|
||||||
.TP
|
.TP
|
||||||
.BR isupper ()
|
.BR isupper ()
|
||||||
checks for an uppercase letter.
|
checks for an uppercase letter.
|
||||||
|
|
|
@ -98,7 +98,7 @@ and
|
||||||
.BR vsnprintf ()
|
.BR vsnprintf ()
|
||||||
write at most
|
write at most
|
||||||
.I size
|
.I size
|
||||||
bytes (including the trailing null byte ('\e0')) to
|
bytes (including the trailing null byte (\'\e0\')) to
|
||||||
.IR str .
|
.IR str .
|
||||||
.PP
|
.PP
|
||||||
The functions
|
The functions
|
||||||
|
@ -133,7 +133,7 @@ the variable-length argument facilities of
|
||||||
are converted for output.
|
are converted for output.
|
||||||
.SS "Return value"
|
.SS "Return value"
|
||||||
Upon successful return, these functions return the number of characters
|
Upon successful return, these functions return the number of characters
|
||||||
printed (not including the trailing '\e0' used to end output to strings).
|
printed (not including the trailing \'\e0\' used to end output to strings).
|
||||||
|
|
||||||
The functions
|
The functions
|
||||||
.BR snprintf ()
|
.BR snprintf ()
|
||||||
|
@ -141,9 +141,9 @@ and
|
||||||
.BR vsnprintf ()
|
.BR vsnprintf ()
|
||||||
do not write more than
|
do not write more than
|
||||||
.I size
|
.I size
|
||||||
bytes (including the trailing '\e0').
|
bytes (including the trailing \'\e0\').
|
||||||
If the output was truncated due to this limit then the return value
|
If the output was truncated due to this limit then the return value
|
||||||
is the number of characters (not including the trailing '\e0')
|
is the number of characters (not including the trailing \'\e0\')
|
||||||
which would have been written to the final string if enough space
|
which would have been written to the final string if enough space
|
||||||
had been available.
|
had been available.
|
||||||
Thus, a return value of
|
Thus, a return value of
|
||||||
|
|
|
@ -53,7 +53,7 @@ writes the string
|
||||||
to
|
to
|
||||||
.IR stream ,
|
.IR stream ,
|
||||||
without its trailing
|
without its trailing
|
||||||
.BR '\e0' .
|
.BR \'\e0\' .
|
||||||
.PP
|
.PP
|
||||||
.BR putc ()
|
.BR putc ()
|
||||||
is equivalent to
|
is equivalent to
|
||||||
|
|
|
@ -115,7 +115,7 @@ This structure gives the name of the special file associated with the
|
||||||
user's terminal, the user's login name, and the time of login in the form
|
user's terminal, the user's login name, and the time of login in the form
|
||||||
of
|
of
|
||||||
.BR time (2).
|
.BR time (2).
|
||||||
String fields are terminated by \fB'\e0'\fP if they are shorter than the size
|
String fields are terminated by \fB\'\e0\'\fP if they are shorter than the size
|
||||||
of the field.
|
of the field.
|
||||||
.PP
|
.PP
|
||||||
The first entries ever created result from
|
The first entries ever created result from
|
||||||
|
|
20
man7/ascii.7
20
man7/ascii.7
|
@ -43,7 +43,7 @@ The international counterpart of ASCII is known as ISO 646.
|
||||||
.LP
|
.LP
|
||||||
The following table contains the 128 ASCII characters.
|
The following table contains the 128 ASCII characters.
|
||||||
.LP
|
.LP
|
||||||
C program \f(CW'\eX'\fP escapes are noted.
|
C program \f(CW\'\eX\'\fP escapes are noted.
|
||||||
.if t \{\
|
.if t \{\
|
||||||
.in 1i
|
.in 1i
|
||||||
.ft CW
|
.ft CW
|
||||||
|
@ -52,20 +52,20 @@ C program \f(CW'\eX'\fP escapes are noted.
|
||||||
l l l l l l l l.
|
l l l l l l l l.
|
||||||
Oct Dec Hex Char Oct Dec Hex Char
|
Oct Dec Hex Char Oct Dec Hex Char
|
||||||
_
|
_
|
||||||
000 0 00 NUL '\e0' 100 64 40 @
|
000 0 00 NUL \'\e0\' 100 64 40 @
|
||||||
001 1 01 SOH (start of heading) 101 65 41 A
|
001 1 01 SOH (start of heading) 101 65 41 A
|
||||||
002 2 02 STX (start of text) 102 66 42 B
|
002 2 02 STX (start of text) 102 66 42 B
|
||||||
003 3 03 ETX (end of text) 103 67 43 C
|
003 3 03 ETX (end of text) 103 67 43 C
|
||||||
004 4 04 EOT (end of transmission) 104 68 44 D
|
004 4 04 EOT (end of transmission) 104 68 44 D
|
||||||
005 5 05 ENQ (enquiry) 105 69 45 E
|
005 5 05 ENQ (enquiry) 105 69 45 E
|
||||||
006 6 06 ACK (acknowledge) 106 70 46 F
|
006 6 06 ACK (acknowledge) 106 70 46 F
|
||||||
007 7 07 BEL '\ea' (bell) 107 71 47 G
|
007 7 07 BEL \'\ea\' (bell) 107 71 47 G
|
||||||
010 8 08 BS '\eb' (backspace) 110 72 48 H
|
010 8 08 BS \'\eb\' (backspace) 110 72 48 H
|
||||||
011 9 09 HT '\et' (horizontal tab) 111 73 49 I
|
011 9 09 HT \'\et\' (horizontal tab) 111 73 49 I
|
||||||
012 10 0A LF '\en' (new line) 112 74 4A J
|
012 10 0A LF \'\en\' (new line) 112 74 4A J
|
||||||
013 11 0B VT '\ev' (vertical tab) 113 75 4B K
|
013 11 0B VT \'\ev\' (vertical tab) 113 75 4B K
|
||||||
014 12 0C FF '\ef' (form feed) 114 76 4C L
|
014 12 0C FF \'\ef\' (form feed) 114 76 4C L
|
||||||
015 13 0D CR '\er' (carriage ret) 115 77 4D M
|
015 13 0D CR \'\er\' (carriage ret) 115 77 4D M
|
||||||
016 14 0E SO (shift out) 116 78 4E N
|
016 14 0E SO (shift out) 116 78 4E N
|
||||||
017 15 0F SI (shift in) 117 79 4F O
|
017 15 0F SI (shift in) 117 79 4F O
|
||||||
020 16 10 DLE (data link escape) 120 80 50 P
|
020 16 10 DLE (data link escape) 120 80 50 P
|
||||||
|
@ -80,7 +80,7 @@ _
|
||||||
031 25 19 EM (end of medium) 131 89 59 Y
|
031 25 19 EM (end of medium) 131 89 59 Y
|
||||||
032 26 1A SUB (substitute) 132 90 5A Z
|
032 26 1A SUB (substitute) 132 90 5A Z
|
||||||
033 27 1B ESC (escape) 133 91 5B [
|
033 27 1B ESC (escape) 133 91 5B [
|
||||||
034 28 1C FS (file separator) 134 92 5C \e '\e\e'
|
034 28 1C FS (file separator) 134 92 5C \e \'\e\e\'
|
||||||
035 29 1D GS (group separator) 135 93 5D ]
|
035 29 1D GS (group separator) 135 93 5D ]
|
||||||
036 30 1E RS (record separator) 136 94 5E ^
|
036 30 1E RS (record separator) 136 94 5E ^
|
||||||
037 31 1F US (unit separator) 137 95 5F \&_
|
037 31 1F US (unit separator) 137 95 5F \&_
|
||||||
|
|
|
@ -491,7 +491,7 @@ file (such as HTML or Docbook).
|
||||||
Anything else suggests simple ASCII
|
Anything else suggests simple ASCII
|
||||||
text (e.g., a "catman" result).
|
text (e.g., a "catman" result).
|
||||||
.PP
|
.PP
|
||||||
Many man pages begin with \fB'\e"\fP followed by a
|
Many man pages begin with \fB\'\e"\fP followed by a
|
||||||
space and a list of characters,
|
space and a list of characters,
|
||||||
indicating how the page is to be preprocessed.
|
indicating how the page is to be preprocessed.
|
||||||
For portability's sake to non-troff translators we recommend
|
For portability's sake to non-troff translators we recommend
|
||||||
|
|
Loading…
Reference in New Issue