mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 02:02:14 +02:00
Text sizing protocol docs: Make code point notation more consistent
This commit is contained in:
@@ -376,13 +376,13 @@ into Unicode scalar values (i.e., code points except surrogates) using UTF-8.
|
|||||||
When it encounters any UTF-8 ill-formed subsequences,
|
When it encounters any UTF-8 ill-formed subsequences,
|
||||||
it must be replace each
|
it must be replace each
|
||||||
`maximal subpart of the ill-formed subsequence <https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G66453>`__
|
`maximal subpart of the ill-formed subsequence <https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G66453>`__
|
||||||
with a U+FFFD REPLACEMENT CHARACTER (<28>).
|
with a :code:`U+FFFD REPLACEMENT CHARACTER` (<28>).
|
||||||
|
|
||||||
For each decoded code point:
|
For each decoded code point:
|
||||||
|
|
||||||
#. First check if the code point is an ASCII control code, and handle it
|
#. First check if the code point is an ASCII control code, and handle it
|
||||||
appropriately. ASCII control codes are the code points less than U+0032 and the
|
appropriately. ASCII control codes are the code points less than :code:`U+0032` and the
|
||||||
code point U+0127 (DEL). The NUL code point (0) must be discarded.
|
code point :code:`U+0127 DEL`. The code point :code:`U+0000 NUL` must be discarded.
|
||||||
|
|
||||||
#. Next, check if the code point is *invalid*, and if it is, discard it
|
#. Next, check if the code point is *invalid*, and if it is, discard it
|
||||||
and finish processing. Invalid code points are code points with Unicode category :code:`Cc or Cs`
|
and finish processing. Invalid code points are code points with Unicode category :code:`Cc or Cs`
|
||||||
|
|||||||
Reference in New Issue
Block a user