[ABNF] Improve doc comment about bidi exclusions.

This mentions embeddings and isolates besides overrides, in accordance with the
official terminology at https://www.unicode.org/reports/tr9/.

This update was discussed and agreed with @bendyarm.

Note: The Leo Reference includes text explaining these exclusions, with links to
the document above as well to the web site and paper about Trojan source
exploits.
This commit is contained in:
Alessandro Coglio 2022-04-21 20:02:25 -07:00
parent c72f860349
commit a8c674a881
2 changed files with 4 additions and 4 deletions

View File

@ -29,13 +29,13 @@ ascii = %x0-7F
<a name="safe-nonascii"></a>
```abnf
safe-nonascii = %x80-2029 / %x202F-2065 / %x2070-D7FF / %xE000-10FFFF
; excludes bidi overrides and high/low surrogates
; excludes bidi embeddings/overrides/isolates
; and excludes high/low surrogates
```
<a name="character"></a>
```abnf
character = ascii / safe-nonascii
; Unicode code points decoded from UTF-8
```
Go to: _[ascii](#user-content-ascii), [safe-nonascii](#user-content-safe-nonascii)_;

View File

@ -22,10 +22,10 @@
ascii = %x0-7F
safe-nonascii = %x80-2029 / %x202F-2065 / %x2070-D7FF / %xE000-10FFFF
; excludes bidi overrides and high/low surrogates
; excludes bidi embeddings/overrides/isolates
; and excludes high/low surrogates
character = ascii / safe-nonascii
; Unicode code points decoded from UTF-8
horizontal-tab = %x9 ; <HT>