Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spec] Clarify when to use which escape mechanism #166

Open
brawer opened this issue Feb 16, 2017 · 2 comments
Open

[spec] Clarify when to use which escape mechanism #166

brawer opened this issue Feb 16, 2017 · 2 comments
Labels

Comments

@brawer
Copy link
Contributor

brawer commented Feb 16, 2017

In the Feature File Syntax specification, the current wording of section 9.e is a bit unclear about which escape mechanism (single-byte or double-byte) is applicable to what encoding. The current spec ties double-byte to “Windows” encodings. But in OpenType, the Windows platform can have encodings other than UTF16-BE. For example, platformID=3 + platformEncodingID=5 is EUC-KR/Wansung, which is a variable-width encoding so double-byte sequences won’t actually work.

As of 2017, this doesn’t matter much anymore, but perhaps the spec should say “UTF-16” instead of “Windows”.

@kenlunde
Copy link

Those legacy Windows encodings are still byte-based, like the Macintosh ones, and many of them are actually the same across platforms. As such, they would still use the \hh escaping mechanism, not the \hhhh one, which is for Unicode 'name' table strings. I agree that the wording can be better and more tightened.

@readroberts
Copy link
Contributor

Agreed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants