direct-phonology / jdsw

Parsing the "Jingdian Shiwen" with spaCy
MIT License
2 stars 0 forks source link

add visualization #29

Closed thatbudakguy closed 1 year ago

thatbudakguy commented 1 year ago

this will ultimately be migrated out of this repo along with most of lib/, but it's time to start prototyping some visualizations for Old Chinese documents, inspired by displaCy.

functionality we want to stub/borrow:

the "default" visualization style should use a sensible font and visually highlight annotations, as well as mark them up as such (we can try <ruby> or look at other things for this, like SVG's <tspan>.

as an exercise, it would be interesting to try to replicate the "classic" look of vertical running text, right-to-left, with annotations rendered half-size but in the same line and format, in red.

thatbudakguy commented 1 year ago

closing since https://github.com/direct-phonology/jdsw/commit/6c98486fadf631bbbbb52b48ccfc0bbeb5ce409b and https://github.com/direct-phonology/jdsw/commit/84bb5e0fc1aac5ecfc5dec96569dea0ed3dda9f3 have explored this somewhat.