阿拉伯语文本消息在matlab [英] Arabic text messages in matlab
问题描述
当我显示任何讯息对话(例如警告对话或使用阿拉伯文字的说明文字)时,讯息无法以正确方式显示。
strong>:
英语:
helpdlg('Hello World !!');
阿拉伯语:
helpdlg('أهلاأيهاالعالم');
我的想法是,它的字符编码问题,我真的不知道一定 !
我尝试使用不同的字体:
text (0.6,0.5,'أهلاوسهلا','fontname','david','rotation',180,'fontsize',50,'color','r');
text(0.6,0.5,'أهلاوسهلا','fontname','arial','rotation',180,'fontsize',50,'color','r');
text(0.6,0.5,'أهلاوسهلا','fontname','Arabic Typesetting','rotation',0,'fontsize',50,'color','r');
text(0.6,0.5,'أهلاوسهلا','fontname','Courier','rotation',0,'fontsize',50,'color','r');
问题仍未解决。
问题是
解决方案是将机器本地数字和格式更改为阿拉伯语 [指南]
然后重新启动Matlab和Arabic将支持GUI,命令窗口,工作区等。
只有对话框仍然不支持阿拉伯语。
When I show any message dialogue like warning dialogue or help dialogue using Arabic text as the message it's not shown in a proper way.
Examples:
English:
helpdlg('Hello World !!');
Arabic:
helpdlg('أهلا أيها العالم');
My thoughts goes to that it's character-encoding problem, I really don't know for sure !
I've tried to use different font like:
text(0.6,0.5,'أهلا و سهلا','fontname','david','rotation',180,'fontsize',50,'color','r');
text(0.6,0.5,'أهلا و سهلا','fontname','arial','rotation',180,'fontsize',50,'color','r');
text(0.6,0.5,'أهلا و سهلا','fontname','Arabic Typesetting','rotation',0,'fontsize',50,'color','r');
text(0.6,0.5,'أهلا و سهلا','fontname','Courier','rotation',0,'fontsize',50,'color','r');
And the problem still not solved.
The question is, How can Matlab dialogue messages appear in Arabic ?
The solution is to change machine local numbers and formats to Arabic [Guide]
then restart Matlab and Arabic will be supported in GUI, command window, Workspace and etc..
Only dialogues still don't support Arabic.
这篇关于阿拉伯语文本消息在matlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!