On 2012-07-04, Kevin Hunter wrote:
> At 3:52am -0400 Sun, 01 Jul 2012, Guenter Milde wrote:
>> On 2012-06-28, Kevin Hunter wrote:
>>> ReST input                  Output
>>> ----------                  ------
>>> ``'''``                      "'
>>> ``\'''``,                    \"'
>>> ``'\''``,                    '\",
>>> ``''\'``,                    "\',
>>> ``'``\ ``'``\ ``'``          '''

>> It seems like the "beautifier" uses typographic quotes ('' -> “) even in
>> inline literals. This is either some setup problem at your site or a
>> Sphinx bug. Try to disable the quote conversion.

> I actually appreciate the beautifier, and it's only for the latexpdf 
> output. 

> I think the issue is LaTeX interpreting it, 
...

Yes, if it affects only the latexpdf output, maybe it is not the
beautifier. Can you post what ``'''`` looks like in the LaTeX source?

The Docutils latex writer translates it to ::

   \texttt{'{}'{}'}

With 

        # Break up input ligatures e.g. '--' to '-{}-'.
        if not self.is_xetex: # Not required with xetex/luatex
            separate_chars = '-'
            # In monospace-font, we also separate ',,', '``' and "''" and some
            # other characters which can't occur in non-literal text.
            if self.literal:
                separate_chars += ',`\'"<>'
            for char in separate_chars * 2:
                # Do it twice ("* 2") because otherwise we would replace
                # '---' by '-{}--'.
                text = text.replace(char + char, char + '{}' + char)


in LaTeXTranslator.encode().

But Sphinx uses it's own fork...

Günter


-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to