You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Package Document, the language tags appearing in the elements or attributes below
MUST be well-formed according to BCP47:
- `xml:lang` attribute
- `hreflang` attribute
- `dc:language` element
For these values:
- the schema now only do basic datatype check (string, non-empty value when relevant)
- the well-formedness is checked with Java’s Locale.Builder#setLanguageTag() API
- a new check (OPF-092) is reported when an ill-formed value is found
See https://docs.oracle.com/javase/8/docs/api/java/util/Locale.Builder.html#setLanguageTag-java.lang.String-Fix#1221Close#702
Not sure our current pattern for well formedness matches BCP47. Looks much weaker.
w3c/epub-specs#1325
The text was updated successfully, but these errors were encountered: