On 2013-06-22, cs60175 wrote:

> [-- Type: text/plain, Encoding: quoted-printable --]

> Hi,

> Can someone tell me how they would set up their .rst file so that the
> non-English expression:

> *arrière-pensée*

> is properly formatted and spelled?  According to MLA/Chicago Manual of
> Style, this should be *italicized *with accents.

Works out of the box here (all files utf-8).

> The last author in this post
> (https://groups.google.com/forum/#!searchin/sphinx-users/accented/sphinx-users/j-Fok0x3B8Q/hvm9qtmhNL8J)
> says that encoding can be set in individual .rst files, but does not
> provide the syntax for doing it.  And, as I've also seen others report in
> this group, playing with the encoding setting in config.py has not
> succeeded for me.  Thanks for any help.

If you "manually" include a file with the "include" directive, you can set
the encoding as directive option::

  .. include:: inclusion.txt
     :encoding: latin1


http://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment

This helps if for some "dual use" reason the included file is required to be
in a different encoding.

Günter

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to