Arabic character input error

Bug #1560984 reported by hfaisal
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pipelight
Fix Committed
Undecided
Unassigned

Bug Description

Hello ,
I just installed pipelight-plugin for silverlight on Ubuntu 14 , it is working perfectly and displaying Arabic words right(labels and menu ) , but if you tried to input some Arabic text , it appears as "????????" ...

 if you type the text in LibreOffice Writer and then past it in the Silverlight , it will display it correctly ... I tried systemcheck and looks like all fonts installed , so can anyone help with this problem ?

thanks.

Revision history for this message
Michael Müller (mqchael) wrote :

This is most probably caused by missing fonts. Please try the following:

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
WINEPREFIX=~/.wine-pipelight WINE=/usr/share/pipelight/wine winetricks corefonts

Now try to open the silverlight application again. It might work, although this package does not directly install any specific arabic fonts. If it doesn't help and you have access to a windows machine, you might want to copy some fonts from C:\Windows\Fonts to ~/.fonts/ in your home directory. I would especially try Arabtype.ttf, simpo.ttf and trado.ttf.

Revision history for this message
hfaisal (hfaisal) wrote :

Thanks Michael for responding , but it did not work . I think the problem is not from fonts , because the "labels" text are displaying correctly , but when you enter some text , it looks like it accept encoding other than Unicode . We tried to use a "playonlinux" which Install Wine 1.8 (rather than wine 1.6 that comes with installation here ) and It worked perfectly but not depending on pipelight (I guess) .

Is there any fix we can get here ?

Thanks.

Revision history for this message
Michael Müller (mqchael) wrote :

How did you test it with playonlinux? Did you reproduce it with firefox + silverlight or did you try some other software?

This problem might be indeed related to fonts. It is not unusual that labels use differents fonts than the text input fields. In the end the silverlight application decides which fonts should be used.

Is this a public silverlight application, so that you can give me a link and i can try to reproduce the issue?

Revision history for this message
hfaisal (hfaisal) wrote :

On Playonlinux , I just installed firefox and install silverlight over it ( no pipelight here) and It worked.

What I think problem is related to input text encoding mismatch , because I forced silverlight to use fonts in textbox same as label , the label can display text but textbox cannot. This Silverlight application is business application , so I tried to save the data entered to database and It submitted (??????) value to the server , that means it is no a display (font ) issue , rather than encoding issue.

I will develop a simple application that show that case and I will provide the url here soon.

Thank you.

Revision history for this message
hfaisal (hfaisal) wrote :

Can you please try this site : www.mkrts.com ?
There is read only textbox (in arabic ) hold value of (حسام الفيصل) , try to copy and past that value into editable text box and see the problem ...

Thanks

Revision history for this message
hfaisal (hfaisal) wrote :

Sorry , I mean try to copy and past the value into the text box and you will see that it is okay and it display correctly.
Now add any kind of Arabic keyboard and try to add any letters , you will see questions marks ?????? start appearing while your are typing . strange , right ?

Thank you

Revision history for this message
Michael Müller (mqchael) wrote :

I can reproduce the issue. It works in plain Wine / Wine Staging but not when using Pipelight. I don't know yet what is causing the problem, but I will take a look at it. Pipelight doesn't alter the input messages for a plugin in windowed mode and everything is handled by wine. It could be possible that Firefox changes some settings before loading the plugin which is required to make the input work correctly and which is obviously not done when using native Firefox. We had similar issues with Silverlight in the past.

Revision history for this message
hfaisal (hfaisal) wrote :

Any update regarding the issue ?

Thanks.

Revision history for this message
Michael Müller (mqchael) wrote :

I was able to locate the issue and fix it. The only problem is that we are currently rewriting some parts of Pipelight and not everything is fully functional. I therefore can't release a new version now. Nevertheless, the changes only affect the windows part of Pipelight and could easily be backported to the last release. In the attachment you find two files (pluginloader.exe, pluginloader64.exe). Just copy them to /usr/share/pipelight/ and replace the existing files. This should hopefully fix the issue.

Changed in pipelight:
status: New → Fix Committed
Revision history for this message
hfaisal (hfaisal) wrote :

it worked , thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.