BurntSushi / ucd-generate

A command line tool to generate Unicode tables as source code.
Apache License 2.0
93 stars 21 forks source link

Add support for EastAsianWidth.txt to ucd-parse #26

Closed thomcc closed 2 years ago

thomcc commented 4 years ago

No support for ucd-generate, mostly because it's both tricky, and AFAICT unless you're actually doing east asian typography, it's probably not what you want unless you're going to build on top of it (and https://www.unicode.org/reports/tr11/ even says exactly this at the end of the "scope" section).

I wasn't sure if the width strings should be enums. I left them as-is since nothing else in the library parses stuff out like that, and I guess this is more future-proof.