
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>

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

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,
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
___________________________________________________________________________________

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
participants (3)
-
Henning Hraban Ramm
-
John Was
-
Wolfgang Schuster