rpg-cards
rpg-cards copied to clipboard
Text justification
I am just wondering if it would be possible to include a justify text option, so that it justify the text | words words words
I have thought about that. But without hyphenation, justified text looks very ugly.
I have seen the following solutions to hyphenation in HTML, but don't have any experience with them:
- Automatic hyphenation via CSS, which is not yet available in most browsers.
- Manual hyphenation via inserting soft hyphens in your words, which is a lot of work.
- Explicitly preprocessing card contents with a javascript hyphenation library (such as this one), which would insert soft hyphens in the processed text.
- Using a javascript hyphenation library that automatically inserts soft hyphens to all text on a page (such as this one).
Once the hyphenation is solved, it would be easy to add a text-align: justify;
to all elements holding text, via a global flag or distinct content keywords