开发者

Bidirectionality in html

Using Sphinx, I'm editing pylearn documentation content at https://bitbucket.org/omidraha/pylearn/.

All paragraphs are Right-to-Left (because of Persian language) and code samples between text, rendered incorrectly.

Generally I'm looking for a w开发者_C百科ay to apply bi-directionality algorithms of unicode or microsoft on a web page.

Is there a way to set css style of codes, to be LTR inside of a RTL paragraph? if not, how could I modify sphinx source to do seperate code samples, for example in a frame or something like that?


If you want to specify the direction in which the test is displayed, use the "dir" attribute. See: http://reference.sitepoint.com/html/core-attributes/dir

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜