感谢大家这些想法。
是的 - 我确实尝试了其他空格字符,它们确实导致不同大小的空格,但仍然会翻转方向。我尝试在空格的一侧或两侧(以及为了尝试一切 – 在任何字符串之前)添加 RTL 标记。
Jeff - 我确实尝试了零宽非连接符,它工作正常!(但不留空格)。我想我可以激活该字符,然后将其定义为一定量的胶水(空格)?我的 TeX 知识非常非常生疏,我不确定该如何着手。我尝试了:
\catcode`\=\active
\def{\bgroup\hskip 0.25em\egroup}
(在 \catcode `\ 和 \def 之后有一个 200c)
这有效 - 但它给出的结果与空格相同(我想这并不令人惊讶,因为它现在是一定量的空格)。
我还尝试了:
\catcode`\=\active
\def{\bgroup\beginR\hskip 0.25em\egroup}
这是一个不同的结果,但仍然不正确 – 我知道我现在是在这里瞎摸索。
Malachi - 我尝试了你的建议,但结果是 TeX 错误,我不会在这里粘贴。我认为那里的问题是它正在将 USFM 标记插入到 \rb ...|...\rb* 的属性部分中
既然我不能在那里添加标记,我想尝试用从右到左的字符代替空格并对其进行着色(Michael 的建议),但我真的不知道我在做什么。我尝试了以下内容,用 Paseq 代替空格:
\catcode`\׀=\active
\def׀{\bgroup\color{white}׀\egroup}
但我收到关于 ! Argument of \color has an extra } 的抱怨
我不知道如何使用\color,或者它是否甚至像这样可用,或者是语法问题。我知道我现在是在黑暗中摸索。
没有颜色的情况下,Paseq 本身实际上工作得很好!我希望有一个设置了 Right-To-Left 属性的空格字符。
感谢回复和想法。
Jeff
Thanks for these ideas everyone.
Yes - I did try others spacing characters, which do result in different sizes of space, but still flip direction. I tried adding the RTL mark on either side of the space or both (and for the sake of trying everything – before any string at all).
Jeff - I did try the zero width non-joiner, and that works OK! (but leaves no space). I suppose I could make that character active and then define it as some amount of glue (space)? My TeX is very very rusty and I’m not sure how to go about this. I tried:
\catcode`\=\active
\def{\bgroup\hskip 0.25em\egroup}
(there is a 200c in there after \catcode `\ and \def)
This works - but it gives the same result as a space (which is not surprising I guess, since it is now an amount of space).
I also tried:
\catcode`\=\active
\def{\bgroup\beginR\hskip 0.25em\egroup}
which is a different result, but still not correct – and I know I’m hunting around here at this point.
Malachi - I tried your suggestion, but the result is a TeX error, which I won’t paste here. I think the issue there is that it is inserting USFM markup into the attribute section of \rb ...|...\rb*
Since I can’t add markup in there, I’d like to try coloring a right-to-left character in place of the space (Michael’s suggestion), but I don’t really know what I’m doing. I tried the following with Paseq inserted in place of spaces:
\catcode`\׀=\active
\def׀{\bgroup\color{white}׀\egroup}
but I get a complaint about ! Argument of \color has an extra }
I don’t know how to use\color or whether it is even available like this, or a syntax problem. I’m aware that I’m searching in the dark at this point.
Without the color, the Paseq itself actually works fine! I wish there was an space character with Right-To-Left property set.
Thanks for the replies and ideas.
Jeff
机器翻译自 English