You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
pollen-tfl/optional-hyphens.html.pm

10 lines
918 B
Perl

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#lang pollen
(define-meta title "optional hyphens")
hanging-topic[(topic-from-metas metas)]{Mark a hyphenation location}
The em{optional hyphen} is usually invisible. The optional hyphen marks where a word should be hyphenated if the word lands at the end of a line. You can put multiple optional hyphens in a word.
Why would you want to do this? Some words bedevil hyphenation engines. For instance, em{TrueType} will often get hyphenated as em{Tru-eType}. To prevent this, I put an optional hyphen in the middle (em{True~Type}) so it will be hyphenated correctly.
How do you know whether a word wont be hyphenated correctly? The problem usually afflicts words that arent in a standard hyphenation dictionary, like jargon words, unusual proper names, and other words with nonstandard spellings, like trade names. As Justice Potter Stewart might have said, youll know it when you see it.