Alan Braslau schrieb am 07.06.2024 um 16:21:
I have *never* understood how this works and, in fact, have always done weird stuff like explicitly putting a nbps before double punctuation (:;) in my document sources. I do this as it makes the sources much more readable, preventing my text editor from ever breaking lines before the punctuation (and not having some space in the source looks awkward when reading French text).
I use:
[...]
This gives proper spacing with \quotation{} and with \startquotation ... \stopquotation. Also, {\en\quotation{}} and {\de\quotation{}} in the document correctly do not add spaces.
1. \setcharacterspacing[frenchpunctuation] takes care about the space before/after quotation marks when you use manual quotes in a document. It doesn't matter whether you use or don't use space between the quotations marks and the quoted text. %%%% begin example \starttext \startlines «quoted text» « quoted text » \stoplines \setcharacterspacing[frenchpunctuation] \startlines «quoted text» « quoted text » \stoplines \stoptext %%%% end example 2. When you use the quotation command or environment ConTeXt adds a space between the quotation marks and the quoted text by itself but in the quotation-environment the space before the closing mark disappears when you add \setcharacterspacing. %%%% begin example \language[fr] \starttext \startquotation quoted text \stopquotation \quotation{quoted text} \setcharacterspacing[frenchpunctuation] \startquotation quoted text \stopquotation \quotation{quoted text} \stoptext %%%% end example
Is \setupquotation[symstyle=\resetcharacterspacing] necessary?
It's a temporary fix for the problem with the quotation environment by disabling the characterspacing mechanism when ConTeXt places the quotation marks. Wolfgang