Hans Hagen wrote:
Mojca Miklavec wrote:
Compare the two examples:
\starttext \language[sl] a\quotation{l}c \language[en] a\quotation{l}c \stoptext
this is something that we can try to sort out in the 'new' encodings ... latin modern has proper quotes now (no funny sidebearings and such)
Thank you. Taco Hoekwater wrote:
Here's the part of the answer I know:
Mojca Miklavec wrote:
\defineactivetoken 171 {\ifvmode\leavevmode\fi\leftguillemot\prewordbreak} \defineactivetoken 187 {\prewordbreak\rightguillemot}
My questions are: - (Does \prewordbreak force or prevent line breaks?)
It prevents line breaks at that point, but it allows both the left- and right- side words to be hyphenated (as a side-effect, it reliably breaks ligatures).
I suppose that the behaviour should be equal for different input encodings (which is currently not the case and can have some minor influence on "backward compatibility details" if it becomes unified). On the other hand: how do you know if you have to prevent break on the left or the right side of the guillemot (german/french)? The question has more to do with texts from the "outside world" since if someone is writing in ConTeXt, he will use \quotation instead of guillemots (which are mostly not present on a keyboard). But in case that the \ifvmode\leavevmode\fi\leftguillemot\prewordbreak is the proper way of doing things (I'm no expert here), can a (language specific?) macro be defined and used in all regimes consistently? It can also be implemented in such a way that the user has to explicitely say that he wants to handle quotations from input "properly". Or, the macro could check if there's a space on the left/rightside of the guillemot and prevent breaking only if there's no space present (again, I'm no expert for this stuff). Do \quotation and \quote also have strange influence on ligatures? Mojca