From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: Alan Braslau <alan.braslau@icloud.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: missing space with French quotation
Date: Fri, 7 Jun 2024 19:40:08 +0200 [thread overview]
Message-ID: <8bbf68d3-8ebd-6137-25fd-19db7950ff3a@gmail.com> (raw)
In-Reply-To: <20240607082127.1e129c2d@boo.my.domain>
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2024-06-07 17:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 15:34 [NTG-context] " Peter Münster
2024-05-30 17:21 ` [NTG-context] " Rik Kabel
2024-05-30 20:33 ` Wolfgang Schuster
2024-05-30 21:29 ` Rik Kabel
2024-06-04 18:31 ` Peter Münster
2024-06-07 11:31 ` Peter Münster
2024-06-07 12:18 ` Wolfgang Schuster
2024-06-07 14:21 ` Alan Braslau via ntg-context
2024-06-07 17:40 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8bbf68d3-8ebd-6137-25fd-19db7950ff3a@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=alan.braslau@icloud.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).