Closed sujato closed 1 year ago
Another possibility is to use soft hyphens in the root text: U+00AD (SHY) An invisible, "soft" hyphen. This character is not rendered visibly; instead, it marks a place where the browser should break the word if hyphenation is necessary. In HTML, use to insert a soft hyphen.
Long words in pali make a bad problem, see eg an3.24.
CSS
hyphens: auto
fixes this, but there are two problems:auto
support in Chrome, apart from Android and Mac (!)Solution: hack it by adding
lang='la'
to Pali strings, and appropriate language to translation texts. Latin seems to give good results.At least it will work in FF and Safari!
Before:
After:
Add CSS to segments, here is the full thing for best practice: