Changes

Jump to navigation Jump to search
23 bytes removed ,  12:24, 29 June 2012
Make examples smaller.
<context source="yes">
\setuppapersize[A5]
\setuphyphenmark[sign=wide]
<context source="yes">
\setuppapersize[A5]
\setuphyphenmark[sign=normal]
intra||word
<context source="yes">
\setuppapersize[A5]
a |<|as explained below|>| conflirtaneous \unknown
</context>
<context>
\setuppapersize[A5]
\def\ShowComposed #1
{\handletokens#1\with\type\VL#1\VL\hyphenatedword{#1}}
\starttable[|l|l|l|]\setuppapersize[A5]
\HL
\VL \bf input \VL \bf normal \VL \bf hyphenated \VL\SR
</context>
== Indicating hyphenation pattern patterns manually (Optional hyphen) / optional hyphens ==
If you have single a few foreign words in your text, or just very simply a few unusual wordsones, they may hyphenate incorrectlybut not be worth invoking a different {{cmd|language}} for. Especially if the word is used multiple times, you You can define a ad-hoc hyphenation pattern patterns with the command{{cmd|hyphenation}}:
<texcode>
</texcode>
If you just need to fix a single word, you can add an optional hyphen (hyphenation hint) with <code>\{{cmd|-}}: </code>: <tt>kai\-vos\-auk\-ko</ttcode>.
== Enabling hyphenation on hyphens for composed words globally ==
For mkiv just add to This is possible in MkIV with the preamblefollowing command:
<texcode>
</texcode>
(which does the same thing as This is equivalent to typing for each composed word as <code>intracomposed|-|word</code>). It will set also sets the characters "'+" "/" (typed verbatim', '/', 'not(', and ')' as <code>\slash</code> or <code>\textslash</code> ) "(" ")" as good breakpoints inside composed words. EThe slash must be typed verbatim, though, not as {{cmd|slash}} or {{cmd|backslash}}.g the following line will be correctly broken at the /
<texcodecontext mode=mkiv source=yes>% mode=mkiv
% mkiv only
 
\setuppapersize[A6]
\setbreakpoints[compound]
\setupwhitespace[line]
\starttextlove/hate/play/run/love/hate/play/run/love/hate/play/run/love/hate/play/run
love/(hate/(play/(run/(love/(hate/(play/(run/(love/(hate/(play/(run/(love/(hate/(play/(run/love/hate/play/run/love/hate/play/run/
love(-hate(-play(-run(-love(-hate(-play(-run(-love(-hate(-play(-run(-love(-hate(-play(-run(love(hate(play(run(love(hate(play(run(
love-+hate-+play-+run-+love-+hate-+play-+run-+love-+hate-+play-+run-+love-+hate-+play-+run-love-hate-play-run-love-hate-play-run-
love+hate+play+run+love+hate+play+run+love+hate+play+run+love+hate+play+run+love+hate+play+run+love+hate+play+run+ love)hate)play)run)love)hate)play)run)love)hate)play)run)love)hate)play)run)love)hate)play)run)love)hate)play)run)\stoptext</texcodecontext>
[[Category:International]]

Navigation menu