Grofftut: UTF-8 explanation.
This commit is contained in:
parent
13aa99402a
commit
ea21b8cd51
13
grofftut.ms
13
grofftut.ms
@ -382,15 +382,10 @@ And this can be set off, with "delim off".
|
|||||||
UTF-8
|
UTF-8
|
||||||
.PP
|
.PP
|
||||||
UTF-8 is wonderful.
|
UTF-8 is wonderful.
|
||||||
Unfortunately, this wasn't implemented in troff, since it comes from 1972, and neither in the later implementation
|
This wasn't implemented in troff, since it comes from 1972, and neither in the later implementation
|
||||||
.B groff .
|
.B groff .
|
||||||
So, I wrote the \f[CW]./bin/utf8-to-ms.sh\f[] filter to automatically convert an extensive list of accents, ligatures, and text markers in their equivalent ms macros.
|
But, you can write UTF-8 characters anyway, thanks to the troff preprocessor
|
||||||
Therefore, one can write in UTF-8 (or at least a good chunk of it) in the input file\*[*].
|
.B preconv .
|
||||||
.FS
|
|
||||||
All characters cannot be converted so easily.
|
|
||||||
Some of them are used in troff, such as the arobase, the backslash, etc.
|
|
||||||
However, my script is a good enough solution for me to write in my mother tongue without any problem.
|
|
||||||
.FE
|
|
||||||
|
|
||||||
Examples (all written in UTF-8 in the troff file):
|
Examples (all written in UTF-8 in the troff file):
|
||||||
.br
|
.br
|
||||||
@ -432,7 +427,7 @@ Tables with hdtbl
|
|||||||
.\".nr t*cpd 0.1n \" cell padding
|
.\".nr t*cpd 0.1n \" cell padding
|
||||||
.ds t*bc pink2\" border color
|
.ds t*bc pink2\" border color
|
||||||
.
|
.
|
||||||
.TBL cols=3 width='10% 45%'
|
.TBL cols=3 width='20% 35%'
|
||||||
. CPTN val=b This is a fine table. This is a fine table. This is a fine table. This is a fine table. This is a fine table. This is a fine table.
|
. CPTN val=b This is a fine table. This is a fine table. This is a fine table. This is a fine table. This is a fine table. This is a fine table.
|
||||||
. TR
|
. TR
|
||||||
. TD fst=I first cell
|
. TD fst=I first cell
|
||||||
|
Loading…
Reference in New Issue
Block a user