1

我正在尝试显示应该看起来像的希伯来语字符串

1 גיל

当数字应该从右侧然后空格然后希伯来字符

这似乎很容易,但直到现在我还没有成功

当试图在字节数组中构建字符串时,它看起来格式正确,但是在显示它时,文本改变了,数字总是在左侧

有什么建议吗?

4

4 回答 4

1

The answer to this depends on how you're rendering the text.

Many environments (Word, WinForms, and others) have a right-to-left mode, which is exactly what you're looking for.

In WinForms, you can set the RightToLeft property of a control to true.

于 2009-12-09T14:28:50.913 回答
1

您需要指定所涉及的技术以获得特定的有用答案。

一般来说,在处理混合的希伯来语/英语时,有两个组成部分。一是段落方向,二是字符方向。在希伯来语中,从右到左模式将是段落的典型结果,您的文本将更像这样:

<Hebrew> 1

(显然,由于编辑对 SO 的限制,我无法使用希伯来语字符来模仿它)。

您想要的是从左到右的段落方向,列表中恰好有一个希伯来语项目。您如何实现这一点(或者实际上是否可以做到)将取决于您使用的技术。

于 2009-12-09T14:36:23.920 回答
0

When displayed where (file, console, web page)?

It sounds to me like an issue with right-to-left vs. left-to-right, can you set the page orientation?

于 2009-12-09T14:28:02.553 回答
0

在 HTML 中:

<tag style="direction:rtl;">hebrew text</tag>

当然,您应该将样式提取到外部 CSS 样式表中,并可能将其应用于 body 标签

于 2009-12-09T14:36:43.387 回答