Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arabic text messages in matlab

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 !!');

Hello world message


Arabic:

helpdlg('أهلا أيها العالم');

Ahlan message


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 ?

like image 439
Sameh K. Mohamed Avatar asked Jan 21 '13 13:01

Sameh K. Mohamed


1 Answers

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.

enter image description here

like image 51
Sameh K. Mohamed Avatar answered Oct 11 '22 23:10

Sameh K. Mohamed