elpaco-escience / talkr

Apache License 2.0
0 stars 0 forks source link

Add `geom_utterance` #47

Open bvreede opened 6 months ago

bvreede commented 6 months ago

Instead of text integrated in the geom_turn (see #26), it would be good to have a separate geometry that allows plotting the utterance text.

It would inherit y (participant), begin and end, and provide additional aesthetics utterance for the utterance text.

Possible inspiration in this vignette for GeomTextPath.

mdingemanse commented 6 months ago

Useful mental model for how to deal with overflow (when utterance content would fall outside the turn bounds) may be the CSS overflow property: https://www.w3schools.com/css/css_overflow.asp

Some combination of text wrap and overflow options, with sensible defaults, might go a long way.