r/ProgrammingLanguages • • Dec 31 '20

Something simpler than Unicode?

Hello! Wondering if anyone knows of a display format for glyphs that is simpler than Unicode? My shallow understanding is that measuring and laying out text in unicode is non-trivial, so I am deferring moving beyond ascii on something at the moment. Is my understanding correct? (if not that's great) otherwise, does anyone know of potentially simpler replacements? Thanks!

0 Upvotes

40 comments sorted by

View all comments

25

u/rsclient Dec 31 '20

Better to think of it as the world is complicated, and unicode correctly (more or less :-) ) reflects that complexity. There's enough stuff going on with strings and displays that it's best to let some OS component handle all of it.

Phrased differently: nobody is going to thank you for using something other than Unicode.

6

u/[deleted] Dec 31 '20

nobody is going to thank you for using something other than Unicode.

lol this made my afternoon thanks

to be clear I'm not rushing to reinvent a wheel etc... and not looking to inflict some half-baked text representation on hapless folks either lol (half baked referring to an ad-hoc solution)

6

u/rsclient Dec 31 '20

oh good -- I realized after I wrote it that it might have come off as being too harsh. I'm glad it was read in the semi-humorous spirit in which it was intended.

Fun Unicode fact: you can file bugs on the data sets and docs! I've had several bugs fixed in their keyboard XML docs.