kriskowal / tengwarjs

A Tengwar (J.R.R. Tolkien’s Elvish alphabet) transcriber for ES5 and HTML5
http://tengwar.3rin.gs
MIT License
58 stars 9 forks source link

Replace normalizer with explicit parse rules #30

Closed kriskowal closed 5 years ago

kriskowal commented 5 years ago

Previously, the transcriber depended on a normalizer to change common clusters like PH and X into a regular form (F, CS) as well as equivalent notations for vowels. A recent feature allows the transcriber to produce not just the transcription, but trace each individual glyph to the text that originated it. While this greatly simplified the parsers, there were a number of lingering bugs due to the process and it obscured the original text. It also became recently apparent that certain orthographic transcriptions are possible, particularly for PH, if we remove the normalizer and allow the mode for general use transcriber to choose the representation of that cluster.

vercel[bot] commented 5 years ago

This pull request is being automatically deployed with ZEIT Now (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/kriskowal/tengwarjs/hsxettoww 🌍 Preview: https://tengwarjs-git-denormalize.kriskowal.now.sh