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

ascii-string in the properties grammar BNF #97

Open
wollmers opened this issue Dec 1, 2016 · 0 comments
Open

ascii-string in the properties grammar BNF #97

wollmers opened this issue Dec 1, 2016 · 0 comments

Comments

@wollmers
Copy link
Contributor

wollmers commented Dec 1, 2016

The spec version 1.2 has

ascii-string     = +(%x01-FF - semicolon)  ; printable ascii without semicolon
delimited-string = doublequote ascii-string doublequote

delimited-string id mostly used in the titleattribute for filenames or links.

The spec for HTML 4.01 and XHTML has for the title string: CDATA depending on character encoding.

XML has a better definition:

Char	   ::=   	#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]	/* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */

First, the name ascii in the current hOCR definition %x01-FF is misleading, because ascii ends at x7F. Seems more to target at bytewise parsing, or 8-bit encodings, not unicode codepoints.

Seems it should better be defined as any char without semicolon and without doublequote.

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

No branches or pull requests

1 participant