mnater / Hyphenopoly

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

Contra documentation, exceptions are case-sensitive #157

Closed dfoxfranke closed 3 years ago

dfoxfranke commented 3 years ago

The Hyphenopoly documentation claims that hyphenation exceptions are not case-sensitive, but this appears to be untrue. I put this stanza into my Hyphenopoly config:

"setup": {
    "exceptions": {
        "en-us": "quadrant-opaque"
    }
}

But that didn't prevent the capitalized form from getting hyphenated as "Quadran-topaque". If I explicitly include the capitalized form "Quadrant-opaque" in my exception list, then it works correctly.

mnater commented 3 years ago

Hi

Thanks for reporting. Exceptions must be case-sensitive (for cases like strei-ken-de vs Streik-en-de in german).

Where are exceptions being documented as not case-sensitive?

Best regards, Mathias

mnater commented 3 years ago

Ah, just found it. Thank you!