mnater / Hyphenopoly

Hyphenation for node and Polyfill for client-side hyphenation.
http://mnater.github.io/Hyphenopoly/
MIT License
694 stars 44 forks source link

zxx #160

Closed mnater closed 3 years ago

mnater commented 3 years ago

https://www.w3.org/TR/i18n-html-tech-lang/#langvalues recommends to use the language tag zxx for non-linguistic content.

Hyphenopoly emits the following error on elements with attribute lang="zxx":

Error: Element with 'zxx' found, but 'zxx.wasm' not loaded. Check language tags!

Instead Hyphenopoly should not try to hyphenate such elements.

Also document the behaviour and link to this doc from Setup.md#donthyphenate and Setup.md#donthyphenateclass