regimes and different quotations
In regi-il9.tex (on wiki) there are two interesting constructs (also found in regi-il1 and regi-ibm): \defineactivetoken 171 {\ifvmode\leavevmode\fi\leftguillemot\prewordbreak} \defineactivetoken 187 {\prewordbreak\rightguillemot} The two characters correspond to: 0xAB 0x00AB # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK 0xBB 0x00BB # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK My questions are: - (Does \prewordbreak force or prevent line breaks?) - This seems to be optimized for French, but is contradictory for German (or vice versa, depending on the first question) - In most files there is only \[left|right]guillemot, no \prewordbreak. What's the proper way to handle this (and other quotations marks)? This has nothing to do with the example, but: how can kerning in (German for example) quotations be improved? With guillemots it works perfectly, but the usual quotation marks are optimized for English. Opening quotation marks are to close and the closing ones are too far away from the quotation. Compare the two examples: \starttext \language[sl] a\quotation{l}c \language[en] a\quotation{l}c \stoptext Than you, Mojca Miklavec
Hi, Here's the part of the answer I know: Mojca Miklavec wrote:
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). Taco
Mojca Miklavec wrote:
This has nothing to do with the example, but: how can kerning in (German for example) quotations be improved? With guillemots it works perfectly, but the usual quotation marks are optimized for English. Opening quotation marks are to close and the closing ones are too far away from the quotation.
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) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
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
participants (3)
-
Hans Hagen
-
Mojca Miklavec
-
Taco Hoekwater