dy / wavefont

Typeface for rendering waveform/data
https://dy.github.io/wavefont/scripts/
SIL Open Font License 1.1
416 stars 7 forks source link

Value encoding strategy #18

Closed dy closed 3 years ago

dy commented 3 years ago

What would be the right strategy to map characters?

0. Direct mapping to char codes with offset

1. Hex pairs (doubles) as a0a1a2

2. a-z as main values, 0-9 as fraction (0-width), or any other separation on base and fract

3. 0-9 as main values, ↑ and ↓ as combining modifiers

~ similar to previous conceptually

4. Baseless modifiers only .̂̂̂̂.̬̬̬.̬̬.̬̬̬̬̬̬̬.̬.̬̬̬̬̬̬̬̬̬̬̬̬̬.̂̂̂.̂̂̂̂̂̂̂.̂̂̂̂̂̂̂̂̂̂.̂̂̂.̂̂̂̂.̂̂̂̂̂.̂̂.̂

~ Printer-like tech. ~ With vertical space combining mark enables xy-plot as a single string... ~ Would require sort of i,d,v,x composing characters to combine into bar

5. First value is chunk identifier (latin), rest is spaces with combining marks

dy commented 3 years ago

Probably mixed approach is the way. For values - 0 method. For vertical shift - 1 cursive feature see next issue.

dy commented 3 years ago

Maybe non-latin range has drawback of bad escaping. Latin range allows:

dy commented 3 years ago

Simple mapping to 0x100+ is a good balance.