#34 **, *, `` don't work for Chinese

closed-invalid
None
5
2005-03-27
2005-03-27
FengFeng
No

I am using 0.3.7 of docutils. I tried to use the tool
rst2html.py.

I found that the *, **, `` don't work for Chinese
characters.

See attachment for a sample file. It uses UTF-8
encoding with signature.

Discussion

  • FengFeng

    FengFeng - 2005-03-27

    the chinese sample file

     
  • Felix Wiemann

    Felix Wiemann - 2005-03-27
    • assigned_to: nobody --> felixwiemann
    • status: open --> closed-invalid
     
  • Felix Wiemann

    Felix Wiemann - 2005-03-27

    Logged In: YES
    user_id=1014490

    You have to surround the text marked with inline markup
    (like *, ** or ``) with whitespace. So instead of

    早就听说``reStructuredText``非常好用。

    write

    早就听说 ``reStructuredText`` 非常好用。

    If this is a problem and you do not want whitespace there,
    please escape the whitespace with backslashes (like "早就听
    说\ ``reStructuredText``\ 非常好用。") as a workaround, and
    feel free to ask on the Docutils-users mailing list for a
    change of the inline markup syntax (so that the whitespace
    isn't necessary for, say, Chinese characters).

    http://docutils.sourceforge.net/#mailing-lists
    http://news.gmane.org/gmane.text.docutils.user

     
  • Felix Wiemann

    Felix Wiemann - 2005-03-27

    Logged In: YES
    user_id=1014490

    SF.net shreddered the Chinese text. :-( Again, with
    replacements for the Chinese text:

    Instead of

    SOMETEXT``reStructuredText``SOMETEXT

    write

    SOMETEXT ``reStructuredText`` SOMETEXT

    You can escape the whitespace like this:

    SOMETEXT\ ``reStructuredText``\ SOMETEXT

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks