summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/ls-R
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2022-08-20 22:43:53 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2022-08-20 22:43:53 +0000
commit1f554b5e55fb76a98420dbf16db38046a8370f60 (patch)
treeb5c7a788aa6b7115a939b8e5b9ddcca16ac1be09 /Master/texmf-dist/ls-R
parent45cea7def9ed0e1640c8c30cf361bf59a6372457 (diff)
[CWEB] Add option '+u' for CTANGLE.
Option 'ctangle +u' extends the transliteration mechanism for ``poor man's UTF-8'. Instead of extending the 'translit' table (or replacing it with a dynamic data structure), CTANGLE skips all but the last of a sequence of high-bit bytes representing a single UTF-8 character. Only the last high-bit byte is used as the index into 'translit' as before. Example: In ``classic ASCII'', the German word 'grün' was transformed into 'gruen' with the transliteration '@l fc ue' (from the Western European codepage ISO/IEC 8859-1; see file cweb_ecma94.w for context). With UTF-8 encoded input and 'ctangle +u', the first (starter) byte 'c3' (1100.0011) is skipped and the second (continuing) byte 'bc' is used to look up the transliteration for 'ü' (latin small letter u with diaeresis), so '@l bc ue' can be used to get 'gruen' in the C output. Note that this is not a general UTF-8 transliteration because there are tons of possible collisions, e.g., '¼' (vulgar fraction one quarter) is 'c2 bc' in UTF-8 and would be transformed into 'ue' as well. git-svn-id: svn://tug.org/texlive/trunk@64157 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/ls-R')
0 files changed, 0 insertions, 0 deletions