gpt4 book ai didi

html - Python Sphinx 中的 RTL 支持

转载 作者:太空狗 更新时间:2023-10-29 13:15:01 25 4
gpt4 key购买 nike

有没有办法在 Sphinx 中使用 RTL(从右到左,如波斯语、阿拉伯语……)文本?

从 .rst 文件生成 HTML 时,生成的 HTML 是 LTR(默认情况下从左到右)并左对齐,我的问题是如何更改它,使其成为 RTL,并右对齐。

最佳答案

可以查看python的docutils FAQ .它解释了如何使用 css 和类来标记文本方向。

关于html - Python Sphinx 中的 RTL 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12661206/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com