ᱪᱷᱟᱸᱪ:Soft hyphen/doc
This is a documentation subpage for ᱪᱷᱟᱸᱪ:Soft hyphen. It contains usage information, categories and other content that is not part of the original ᱪᱷᱟᱸᱪ page. |
This template uses Lua: |
Function
[ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]This template inserts ­
, which is a U+00AD SOFT HYPHEN (HTML ­
⧼dot-separator⧽ ­
).
A soft hyphen is an "optional" hyphen – a point at which a word may be broken over the end of a line, with a visible hyphen inserted at line end. The ultimate decision as to whether a particular word will be broken is made by the browser, and depends on a combination of text-layout heuristics, user preferences set in the browser, and hyphenation options embedded in the page being displayed. (Different browsers apply different heuristics, and some browsers ignore soft hyphens completely.)
Examples
[ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]Individual insertions
[ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]Soft hyphens have been inserted in the following text, like this:
super{{shy}}califrag{{shy}}ilistic{{shy}}expiali{{shy}}docious
antidis{{shy}}establish{{shy}}mentarian{{shy}}ism
pneumono{{shy}}ultra{{shy}}micro{{shy}}scopic{{shy}}silico{{shy}}volcano{{shy}}conioses
wocka{{shy}}wocka{{shy}}wocka{{shy}}wocka{{shy}}
The effect will usually be visible when zooming your browser and/or adjusting the width of its window. Most browser configurations will cause this long string to be broken, using hyphens, over multiple lines:
Pac Man goes wockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawockawocka.
Many or most browser configurations will break long words in the passage below using hyphensᱪᱷᱟᱸᱪ:Mdashbwhether and where will vary from browser to browser, and may depend on local settings and preferences:
Mary Poppins, religious officials, and epidemiologists say supercalifragilisticexpialidocious antidisestablishmentarianism pneumonoultramicroscopicsilicovolcanoconioses supercalifragilisticexpialidocious antidisestablishmentarianism pneumonoultramicroscopicsilicovolcanoconioses supercalifragilisticexpialidocious antidisestablishmentarianism pneumonoultramicroscopicsilicovolcanoconioses supercalifragilisticexpialidocious antidisestablishmentarianism pneumonoultramicroscopicsilicovolcanoconioses supercalifragilisticexpialidocious antidisestablishmentarianism pneumonoultramicroscopicsilicovolcanoconioses.
Alternative syntax
[ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]A word, phrase, sentence, or entire passage is enclosed within a single "shy", with each |
being a potential hyphenation point:
Mary Poppins sings {{shy|super|califrag|ilistic|expiali|docious}} as she dances.
{{shy|Mary Poppins, religious officials, and epidemiologists say super|califrag|ilistic|expiali|docious antidis|establish|mentarian|ism pneumono|ultra|micro|scopic|silico|volcano|conioses.}}
Mary Poppins, religious officials, and epidemiologists say {{shy|super|califrag|ilistic|expiali|docious antidis|establish|mentarian|ism pneumono|ultra|micro|scopic|silico|volcano|conioses}}.
See also
[ᱯᱷᱮᱰᱟᱛ ᱥᱟᱯᱲᱟᱣ]