如何在阿拉伯语语言环境中打印欧洲数字? [英] How to print european digits in arabic locale?

查看:173
本文介绍了如何在阿拉伯语语言环境中打印欧洲数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello guys

我想在设置为arabic的计算机上打印欧洲数字。当我在包含数字的字符串之前和之后放置NODS和NADS时,它们被打印为普通字符。我的打印机是microsoft xps文档编写器。当我使用ETO_NUMERICSLATIN与ExtTextOutW时,它不起作用,并打印阿拉伯数字。

我使用ExtTextOut:

Hello guys
I want to print european digits in computers with locale set to arabic. When I put NODS and NADS before and after the string containing the number, They are printed as ordinary character. my printer is microsoft xps document writer. when I use ETO_NUMERICSLATIN with ExtTextOutW, It does not work and arabic digits are printed.
I use ExtTextOut as this:

int done = ExtTextOutW( hDC, x, y, ETO_NUMERICSLATIN, NULL, L"1234567890", 10, NULL );

任何建议apreciated

提前感谢

mr.abzadeh



编辑:

MSDN称U + 30 th U + 39为标称或欧洲数字,U + 660为U + 66F为Indu-Arabic,在阿拉伯语区域是国家数字塑造。我想在纸上获得欧洲数字形状,但我得到了Indu-arabic。我想绕过数字翻译。

mr.abzadeh



编辑:

我发现问题是使用我的Windows和XPS打印机,可能会损坏。通过在我的笔记本电脑上安装原装Windows 7,每件事情都正常工作,抱歉这个问题。

mr.abzadeh

Any suggestions apreciated
thanks in advance
mr.abzadeh


MSDN calls U+30 th U+39 as Nominal or European digits and U+660 to U+66F as Indu-Arabic, which in arabic locale is National digit shaping. I want to get European digit shapes on paper, but I get Indu-arabic. I want to bypass digit translation.
mr.abzadeh


I found that the problem was with my Windows and XPS printer, may be damaged. By Installing original Windows 7 on my laptop, Every thing worked properly, Sorry for the question.
mr.abzadeh

推荐答案

欧洲数字(1234567890)在欧洲和新世界实际上被称为阿拉伯数字,并且还有较旧的印度 - 阿拉伯数字或印度 - 阿拉伯数字,当阿拉伯人在欧洲引入它们时它们变成了欧洲。目前,两个系统都由单独的不同字符集表示。请参阅:

http://en.wikipedia.org/wiki/Arabic_numerals [< a href =http://en.wikipedia.org/wiki/Arabic_numeralstarget =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/History_of_the_Hindu%E2%80%93Arabic_numeral_system [ ^ ]。



这是目前标准化的方式:

http://www.unicode.org/ chart / [ ^ ],

http://www.unicode.org/charts/PDF/U0600.pdf [ ^ ]。



如果你不使用Unicode,你只能使用阿拉伯数字(欧洲),因为它们是ASCII格式,无论发生什么,它们总是在那里。在Unicode中,您可以使用两种数字,也可以使用任何数字;所有这些字符都有不同的代码点问题根本不是问题。



语言环境无关紧要。



-SA
"European digits" (1234567890) are actually called "Arabic digits" in Europe and New World, and there are also older "Hindu-Arabic numerals" or "Indo-Arabic numerals", they became "European" when Arabs introduced them in Europe. Presently, both systems are represented by separate different sets of characters. Please see:
http://en.wikipedia.org/wiki/Arabic_numerals[^],
http://en.wikipedia.org/wiki/History_of_the_Hindu%E2%80%93Arabic_numeral_system[^].

This is how it is presently standardized:
http://www.unicode.org/charts/[^],
http://www.unicode.org/charts/PDF/U0600.pdf[^].

If you don''t use Unicode, you can only use "Arabic digits" ("European"), as they are in ASCII and are always there, no matter what happens. In Unicode, you can use both kinds of digits, as well as anything at all; all those characters have different code points. The problem is simply not a problem.

And the "locale" simply does not matter.

—SA


这篇关于如何在阿拉伯语语言环境中打印欧洲数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆