Am 08.03.2013 um 10:22 schrieb Marco Patzer
Hi,
this issue was raised on stackexchange¹. When setting up a delimited text, a line break is allowed between the character and the following text, which is always undesired (maybe I lack imagination where this might be intended). Example:
\setuplayout [width=10cm]
\definedelimitedtext [quotation] %% [left={\symbol[leftquotation]}] %% works [left=“] %% separates symbol from the text
\starttext När jag som liten uppgett att teckningen föreställer \quotation{Tomtarnas eld i skogen} kanske det inte alls var menat som en optisk liknelse av denna händelse. \stoptext
Setting the delimiter as part of the language setting does not cause the symbol to be separated.
If there's no use-case for this behaviour, can it be fixed?
The following change in typo-del.mkiv prevents the line break. \def\typo_delimited_handle_left#1% {\begingroup \setbox\scratchbox\hbox{\delimitedtextparameter#1}% \ifdim\wd\scratchbox>\zeropoint \ifdim\lastkern=\d_typo_delimited_signal \unkern \hskip\hspaceamount\currentlanguage{interquotation}% \else\ifdim\lastskip=\d_typo_delimited_signal \unskip \hskip\hspaceamount\currentlanguage{interquotation}% \fi\fi \strut % new, needed below \ifhmode % else funny pagebeaks \penalty\plustenthousand \hskip\zeropoint % == \prewordbreak \fi \strut % new, needed below \delimitedtextparameter#1% unhbox\scratchbox + \penalty\plustenthousand \hskip\d_typo_delimited_signal % +- \prewordbreak \fi \endgroup} Wolfgang