如何在 less 中更改文本方向?
How to change text direction in less?
我正在处理 RTL 文本文档,我想将显示切换为 RTL。手册页似乎没有提及任何有关方向的内容,仅提及编码。
P.S。我在这里看到其他不太相关的问题(例如 this),所以我希望它是主题。
less
as such does not do this. While it can work with UTF-8 (see FAQ), RTL/LTR is a step further, and less portable. Actually "BIDI" 可能比 "RTL" 产生更多的可能性。但你必须从各种可能性中挑选出来。网络搜索
less+pager+bidi
找到了一些看起来很有前途的东西:LESS-bidi - Direction agnostic stylesheets,但是(无论出于何种原因)名称 LESS
具有误导性,因为它只处理浏览器的 CSS。也沉寂了将近3年
Translate Shell 页面暗示它有一个可用的 BIDI 文本查看器。
Ubuntu 列出了一个可能有用的包 bidiv
。
我正在处理 RTL 文本文档,我想将显示切换为 RTL。手册页似乎没有提及任何有关方向的内容,仅提及编码。
P.S。我在这里看到其他不太相关的问题(例如 this),所以我希望它是主题。
less
as such does not do this. While it can work with UTF-8 (see FAQ), RTL/LTR is a step further, and less portable. Actually "BIDI" 可能比 "RTL" 产生更多的可能性。但你必须从各种可能性中挑选出来。网络搜索
less+pager+bidi
找到了一些看起来很有前途的东西:LESS-bidi - Direction agnostic stylesheets,但是(无论出于何种原因)名称 LESS
具有误导性,因为它只处理浏览器的 CSS。也沉寂了将近3年
Translate Shell 页面暗示它有一个可用的 BIDI 文本查看器。
Ubuntu 列出了一个可能有用的包 bidiv
。