public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam-63aXycvo3TyHXe+LvDLADg@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Apostrophes not coming out curly in ConTeXt output
Date: Mon, 19 Mar 2012 02:21:02 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1203190214190.12340@nqv-gnoyrg.tngrjnl.2jver.arg> (raw)
In-Reply-To: <20120319054503.GI22366-fRz41mDJ4SjwXfRSRkZCw3nhMCiq3JZZ@public.gmane.org>

On Sun, 18 Mar 2012, John Magolske wrote:

> * John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [120318 22:24]:
>> I'm no ConTeXt expert, but I just did a little experiment, and
>> context seemed to interpret the apostrophe the same way as
>> latex does -- turning it into a curly apostrophe.
>>
>> Does it show up straight when you generate a PDF from your
>> source using context?
>
> The apostrophe is turning up straight in the PDF output by ConTeXt.
> The only way I can get a curly apostrophe is to edit the *.tex file
> and manually change the U0027 characters to curly U2019's.

I am assuming that you are using MkIV and not MkII.

By default, the translation of 0x0027 to 0x2019 is controlled by a font 
feature `tlig`. `tlig` is enabled in the default font features, so either 
something is wrong with your font (unlikely, as in that case 0x2019 will 
also not work) or your typesscripts.

In your example below, if I comment out your typescripts then I get curly 
apostrophe. This means that you are missing something in your typescripts.

>> If so, we may need to see what your context preamble looks like
>> (assuming you're not using the default pandoc template).  I think
>> that with fontspec you can disable interpretation of latex
>> ligatures.  Maybe that's what you're doing?
>
> I did change a few things in the pandoc template, but I can't make out
> if any of that would be affecting this apostrophe issue. Here's the
> full test-1.tex file:
>
> \usetypescriptfile[type-lemonde]
> \usetypescript[lemond-1]
> \setupbodyfont[LeMonde,11pt]

As I said, most likely something is missing in your typescript files. 
However, if you are using MkIV, the simplest way to use system fonts is to 
use the simplefonts module:

\usemodule[simplefonts][size=11pt]
\setmainfont[LeMonde]

This should give you the right apostrophe.

Aditya


  parent reply	other threads:[~2012-03-19  6:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19  0:06 John Magolske
     [not found] ` <20120319000610.GA22702-fRz41mDJ4SjwXfRSRkZCw3nhMCiq3JZZ@public.gmane.org>
2012-03-19  5:20   ` John MacFarlane
     [not found]     ` <20120319052000.GB32250-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2012-03-19  5:45       ` John Magolske
     [not found]         ` <20120319054503.GI22366-fRz41mDJ4SjwXfRSRkZCw3nhMCiq3JZZ@public.gmane.org>
2012-03-19  6:21           ` Aditya Mahajan [this message]
     [not found]             ` <alpine.LNX.2.02.1203190214190.12340-c5hX+hAU7icM2ZW16uGe0b0CBTrrRgWUYd+qtm0fIG0@public.gmane.org>
2012-03-22  6:28               ` John Magolske

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=alpine.LNX.2.02.1203190214190.12340@nqv-gnoyrg.tngrjnl.2jver.arg \
    --to=adityam-63axycvo3tyhxe+lvdladg@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /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).