阿拉伯文本中嵌入的日期的正确方向是什么?
问题很简单:我有一个阿拉伯文本,其中包含美国格式的日期。该日期的正确显示顺序是什么?是(例如)01/10/2009 还是 2009/10/1?
bidi 算法将斜线数字识别为中性,并按照与周围文本相同的方向对它们进行排序。所以日期应该是向后的,但这不是任何浏览器所做的。另一方面,我在 unicode bidi 算法中找不到任何排除日期模式的规则。那么,这里什么是正确的以及(特别是)为什么?
The question is quiet simple: I've got an arabic text with an US formated Date in it. What is the correct display order of this date? Is it(for instance) 01/10/2009 or 2009/10/1?
The bidi algorithm recognizes the numbers an slashes as neutral and orders them in the same direction like the surrounding text. So the date should be backwards but that's not what any browser does. On the other hand, i can't find any rule in the unicode bidi algorithm which excludes date patterns. So, what is correct here and (especially) why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无需深入了解技术细节,
我就可以知道 01/10/2009 是正确的,有时是 10/01/2009
但从来没有 2009/10/1
without going deep in the technical details
I can tell that 01/10/2009 is the correct one and some times it's 10/01/2009
but it's never 2009/10/1