Changes

Jump to navigation Jump to search
Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd..."
{{Reference
|name=definebreakpoint
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\definebreakpoint<!--
--><span class="first">[...]</span><!--
--><span class="second">[...]</span><!--
--><span class="third">[...=...]</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[...]</td>
<td>''name of breakpoint set to add to''</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[...]</td>
<td>''character at which to break''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">language</td>
<td>''two-letter code: language for which this breakpoint applies</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">nleft</td>
<td>''number: minimal characters to left to allow breaking' here'</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">nright</td>
<td>''number: minimal characters to right to allow breaking here''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">type</td>
<td>''???''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">middle</td>
<td>''???''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">left</td>
<td>''???''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">right</td>
<td>''???''</td>
</tr>
</table>

== Description ==
{{cmd|definebreakpoint|1=[''setname''][?][...=...]}} defines a breakpoint at {{code|?}}, and makes it a member of a set that can be activated with {{cmd|setupbreakpoints|[''setname'']}}. The set must be initialized with {{cmd|definebreakpoints|[''setname'']}}.

== Example ==
This is how the {{code|compound}} breakpoint set is defined in {{src|typo-brk.mkiv}}
<texcode>
\definebreakpoint [compound] [+] [nleft=3,nright=3,type=1]
\definebreakpoint [compound] [-] [nleft=3,nright=3,type=1]
\definebreakpoint [compound] [/] [nleft=3,nright=3,type=1]
\definebreakpoint [compound] [(] [nleft=3,nright=3,type=2]
\definebreakpoint [compound] [)] [nleft=3,nright=3,type=3]
</texcode>

== See also ==
* [[Hyphenation]]
* {{cmd|hyphenation}} to define the hyphenation of a specific word
* {{cmd|-}} to define an ad-hoc breakpoint
* {{cmd|definebreakpoints}} to initialize the breakpoint set
* {{cmd|setbreakpoints}} to activate the breakpoint set

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|definebreakpoint}}

[[Category:Command/Languages|definebreakpoint]]

Navigation menu