* Opening quotation mark
@ 2025-06-15 15:20 John Was
2025-06-15 15:28 ` Henning Hraban Ramm
0 siblings, 1 reply; 4+ messages in thread
From: John Was @ 2025-06-15 15:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 972 bytes --]
Hello
I have found that trep=yes gives me correct closing quotation marks in the
commercial font Baskerville MT Pro if I type the simple ' as usual in TeX;
but opening quotation marks remain as ` or ``.
In XeTeX I could get round this with e.g.:
\catcode"0060=\active% 0060 is the position for `
\def`{{\char"2018}}% 2018 is the position for ‘ (opening quote)
But this fails in ConTexT. Any idea how to fix this, with or without any
\catcode fiddling?
(In XeTeX the font works as expected if I just give
mapping=tex-text
when setting up the font call, but I don't see an obvious version of that
in ConTexT.)
Best wishes
John Waś
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
[-- Attachment #1.2: Type: text/html, Size: 2927 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Opening quotation mark
2025-06-15 15:20 Opening quotation mark John Was
@ 2025-06-15 15:28 ` Henning Hraban Ramm
2025-06-15 16:03 ` [NTG-context] " John Was
0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2025-06-15 15:28 UTC (permalink / raw)
To: ntg-context
Am 15.06.25 um 17:20 schrieb John Was:
> Hello
>
> I have found that trep=yes gives me correct closing quotation marks in
> the commercial font Baskerville MT Pro if I type the simple ' as usual
> in TeX; but opening quotation marks remain as ` or ``.
Don’t do this. Use \quote{} for single quotes and \quotation{} for
double quotes.
Maybe use \setuplanguage to change the quotation marks.
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: Opening quotation mark
2025-06-15 15:28 ` Henning Hraban Ramm
@ 2025-06-15 16:03 ` John Was
2025-06-15 16:39 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: John Was @ 2025-06-15 16:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1446 bytes --]
Thanks for the prompt response. Something not too obtrusive would be ideal
- though of course I could always just introduce the correct opening
quotation mark by search and replace. It's odd that trep = yes works for
closing quotation marks in this font, and that the equivalent in XeTeX
works as expected for both opening and closing marks.
Best wishes
John *🇪🇺 *
On Sun, 15 Jun 2025, 16:29 Henning Hraban Ramm, <texml@fiee.net> wrote:
> Am 15.06.25 um 17:20 schrieb John Was:
> > Hello
> >
> > I have found that trep=yes gives me correct closing quotation marks in
> > the commercial font Baskerville MT Pro if I type the simple ' as usual
> > in TeX; but opening quotation marks remain as ` or ``.
>
> Don’t do this. Use \quote{} for single quotes and \quotation{} for
> double quotes.
> Maybe use \setuplanguage to change the quotation marks.
>
> Hraban
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2604 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Opening quotation mark
2025-06-15 16:03 ` [NTG-context] " John Was
@ 2025-06-15 16:39 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2025-06-15 16:39 UTC (permalink / raw)
To: ntg-context
Am 15.06.2025 um 18:03 schrieb John Was:
> Thanks for the prompt response. Something not too obtrusive would be
> ideal - though of course I could always just introduce the correct
> opening quotation mark by search and replace. It's odd that trep = yes
> works for closing quotation marks in this font, and that the equivalent
> in XeTeX works as expected for both opening and closing marks.
What you see for the closing quotation mark are two single quotation
marks which are the same character as the apostroph but you don't get
the correct double quotation mark.
While the best solution is to use either proper quotation marks in your
input (many text editors can replace " with opening and closing symbols)
or use the \quote and \quotation commands.
The old method to use `` and '' for quotation marks can be activated but
the other solutions mentioned above are preferred.
%%%% begin example
\definefontfeature [apostroph] [trep=yes]
\definefontfeature [quotation] [tquo=yes]
\starttext
``John's''
{\feature[+][apostroph]``John's''}
{\feature[+][quotation]``John's''}
\stoptext
%%%% end example
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-15 16:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-15 15:20 Opening quotation mark John Was
2025-06-15 15:28 ` Henning Hraban Ramm
2025-06-15 16:03 ` [NTG-context] " John Was
2025-06-15 16:39 ` Wolfgang Schuster
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).