pasky / speedread

A simple terminal-based open source Spritz-alike (per-word RSVP aligned on optimal reading points)
MIT License
1.08k stars 93 forks source link

Don't strip em-dash, pause on it #28

Closed h3xx closed 3 years ago

h3xx commented 3 years ago

Treat both -- and as if it were a sentence-ending mark, giving it a "full stop" length pause.

Also necessarily changes how hyphens work; don't strip them (hyphens are important!), but instead display them, pausing on the word using the $multitime pause.

This is the text I tested it with:

"But this creature--" he nodded toward Dragonbait-- "is too large to be a familiar, and few sorcerers carry quite so much steel about their person." "This scroll was written by the hand of the Arch-cleric Mzentul himself.

Sorry if this change is too far-reaching. I just found it useful to properly display the book I was reading.

h3xx commented 3 years ago

Found some issues. I'd like to refine how it handles dashes. Namely, "word--word" counts as one where it shouldn't. My bad.

I want to take it back to my lab to make split "word--word" into "word--" and "word", pausing fstop on the first.