ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Apostrophes not converting to typographical curly apostrophes
@ 2012-03-22  6:32 John Magolske
  2012-03-22 21:43 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: John Magolske @ 2012-03-22  6:32 UTC (permalink / raw)
  To: ntg-context

I'm having difficulty getting straight 0x0027 apostrophes to convert
into typographical single-quotes when using a given typescript.

In the following example, \quote{single quotes} generates curly
typographical single quotes, but the apostrophe comes out as a
straight apostrophe in the PDF output:

    \usetypescriptfile[type-lemonde]
    \usetypescript[lemonde-1]
    \setupbodyfont[lemonde,ss,11pt]
    \starttext
    Why don't the apostrophes show up as \quotation{curly}? The
    \quote{single quotes} and \quotation{double quotes} are fine\ldots{}
    \stoptext

The only way I can generate curly apostrophes is by placing 0x2019
characters into the source. However, when I comment out those first
three lines, the output displays a curly apostrophe fine in the default
font. Am I doing something wrong with how I've set up my typescript?

~/texmf/tex/context/user/type-lemonde.tex looks like this:

\starttypescript [serif] [lemonde]
    \definefontsynonym [LeMondeLivre-Roman]  [name:lemondelivrenormalosf]
    \definefontsynonym [LeMondeLivre-Bold]   [name:lemondelivreboldosf]
    \definefontsynonym [LeMondeLivre-Italic] [name:lemondelivreitalicosf]
    \definefontsynonym [Serif]               [LeMondeLivre-Roman]
    \definefontsynonym [SerifBold]           [LeMondeLivre-Bold]
    \definefontsynonym [SerifItalic]         [LeMondeLivre-Italic]
\stoptypescript

\starttypescript [sans] [lemonde]
    \definefontsynonym [LeMondeSans-Roman]   [name:lemondesansnormalosf]
    \definefontsynonym [LeMondeSans-Bold]    [name:lemondesansboldosf]
    \definefontsynonym [LeMondeSans-Italic]  [name:lemondesansitalicosf]
    \definefontsynonym [Sans]                [LeMondeSans-Roman]
    \definefontsynonym [SansBold]            [LeMondeSans-Bold]
    \definefontsynonym [SansItalic]          [LeMondeSans-Italic]
\stoptypescript

\starttypescript [lemonde-1]
    \definetypeface [lemonde] [rm] [serif]    [lemonde]
    \definetypeface [lemonde] [ss] [sans]     [lemonde]
\stoptypescript


This is using MkIV, recently updated minimals.

Thanks for any help,

John

-- 
John Magolske
http://B79.net/contact
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Apostrophes not converting to typographical curly apostrophes
  2012-03-22  6:32 Apostrophes not converting to typographical curly apostrophes John Magolske
@ 2012-03-22 21:43 ` Hans Hagen
  2012-03-27  4:34   ` John Magolske
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2012-03-22 21:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 22-3-2012 07:32, John Magolske wrote:
> I'm having difficulty getting straight 0x0027 apostrophes to convert
> into typographical single-quotes when using a given typescript.
>
> In the following example, \quote{single quotes} generates curly
> typographical single quotes, but the apostrophe comes out as a
> straight apostrophe in the PDF output:
>
>      \usetypescriptfile[type-lemonde]
>      \usetypescript[lemonde-1]
>      \setupbodyfont[lemonde,ss,11pt]
>      \starttext
>      Why don't the apostrophes show up as \quotation{curly}? The
>      \quote{single quotes} and \quotation{double quotes} are fine\ldots{}
>      \stoptext
>
> The only way I can generate curly apostrophes is by placing 0x2019
> characters into the source. However, when I comment out those first
> three lines, the output displays a curly apostrophe fine in the default
> font. Am I doing something wrong with how I've set up my typescript?
>
> ~/texmf/tex/context/user/type-lemonde.tex looks like this:
>
> \starttypescript [serif] [lemonde]
>      \definefontsynonym [LeMondeLivre-Roman]  [name:lemondelivrenormalosf]
>      \definefontsynonym [LeMondeLivre-Bold]   [name:lemondelivreboldosf]
>      \definefontsynonym [LeMondeLivre-Italic] [name:lemondelivreitalicosf]
>      \definefontsynonym [Serif]               [LeMondeLivre-Roman]
>      \definefontsynonym [SerifBold]           [LeMondeLivre-Bold]
>      \definefontsynonym [SerifItalic]         [LeMondeLivre-Italic]
> \stoptypescript
>
> \starttypescript [sans] [lemonde]
>      \definefontsynonym [LeMondeSans-Roman]   [name:lemondesansnormalosf]
>      \definefontsynonym [LeMondeSans-Bold]    [name:lemondesansboldosf]
>      \definefontsynonym [LeMondeSans-Italic]  [name:lemondesansitalicosf]
>      \definefontsynonym [Sans]                [LeMondeSans-Roman]
>      \definefontsynonym [SansBold]            [LeMondeSans-Bold]
>      \definefontsynonym [SansItalic]          [LeMondeSans-Italic]
> \stoptypescript
>
> \starttypescript [lemonde-1]
>      \definetypeface [lemonde] [rm] [serif]    [lemonde]
>      \definetypeface [lemonde] [ss] [sans]     [lemonde]
> \stoptypescript
>
>
> This is using MkIV, recently updated minimals.

search the wiki for 'features' ... you need to tell context what 
features to use for an opentype font

btw, the quote remapping is a old-time tex thing and should be avoided 
by either using proper unicodes or by using \quote and \quotation

Hans


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Apostrophes not converting to typographical curly apostrophes
  2012-03-22 21:43 ` Hans Hagen
@ 2012-03-27  4:34   ` John Magolske
  2012-03-27  7:52     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: John Magolske @ 2012-03-27  4:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

* Hans Hagen <pragma@wxs.nl> [120322 22:24]:
> On 22-3-2012 07:32, John Magolske wrote:
> > I'm having difficulty getting straight 0x0027 apostrophes to convert
> > into typographical single-quotes when using a given typescript.
> [...]
> search the wiki for 'features' ... you need to tell context what
> features to use for an opentype font

Thanks, I found it's trep that lets the straight apostrophes get curly:

\definefontfeature[default][trep=yes]

This was informative:  http://wiki.contextgarden.net/Quotesingle

Regards,

John


-- 
John Magolske
http://B79.net/contact
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Apostrophes not converting to typographical curly apostrophes
  2012-03-27  4:34   ` John Magolske
@ 2012-03-27  7:52     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-03-27  7:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.03.2012 um 06:34 schrieb John Magolske:

> * Hans Hagen <pragma@wxs.nl> [120322 22:24]:
>> On 22-3-2012 07:32, John Magolske wrote:
>>> I'm having difficulty getting straight 0x0027 apostrophes to convert
>>> into typographical single-quotes when using a given typescript.
>> [...]
>> search the wiki for 'features' ... you need to tell context what
>> features to use for an opentype font
> 
> Thanks, I found it's trep that lets the straight apostrophes get curly:
> 
> \definefontfeature[default][trep=yes]
> 
> This was informative:  http://wiki.contextgarden.net/Quotesingle

ConTeXt has a predefined feature set where “trep” is already set, you missed only in your typescripts to apply the features to the font.

\starttypescriptcollection [lemonde]

\starttypescript [serif] [lemonde]
   \definefontsynonym [LeMondeLivre-Roman]  [name:lemondelivrenormalosf]
   \definefontsynonym [LeMondeLivre-Bold]   [name:lemondelivreboldosf]
   \definefontsynonym [LeMondeLivre-Italic] [name:lemondelivreitalicosf]
\stoptypescript

\starttypescript [serif] [lemonde]
   \setups[font:fallback:serif]
   \definefontsynonym [Serif]       [LeMondeLivre-Roman]
   \definefontsynonym [SerifBold]   [LeMondeLivre-Bold]
   \definefontsynonym [SerifItalic] [LeMondeLivre-Italic]
\stoptypescript

\starttypescript [sans] [lemonde]
   \definefontsynonym [LeMondeSans-Roman]   [name:lemondesansnormalosf]
   \definefontsynonym [LeMondeSans-Bold]    [name:lemondesansboldosf]
   \definefontsynonym [LeMondeSans-Italic]  [name:lemondesansitalicosf]
\stoptypescript

\starttypescript [sans] [lemonde]
  \setups[font:fallback:sans]
  \definefontsynonym [Sans]       [LeMondeSans-Roman]
  \definefontsynonym [SansBold]   [LeMondeSans-Bold]
  \definefontsynonym [SansItalic] [LeMondeSans-Italic]
\stoptypescript

\starttypescript [lemonde]
  \definetypeface [lemonde] [rm] [serif] [lemonde] [default] [features=default]
  \definetypeface [lemonde] [ss] [sans]  [lemonde] [default] [features=default]
  \quittypescriptscanning
\stoptypescript

\stoptypescriptcollection

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-27  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-22  6:32 Apostrophes not converting to typographical curly apostrophes John Magolske
2012-03-22 21:43 ` Hans Hagen
2012-03-27  4:34   ` John Magolske
2012-03-27  7:52     ` 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).