Khmer Unicode problem on Wine 1.2 and 1.3

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Khmer Unicode problem on Wine 1.2 and 1.3

Post by preahkumpii »

I have been trying to get Wine to work correctly with Khmer unicode. I am using theWord, which renders Khmer just fine in Windows. However, when I run the program in Wine, everything functions perfectly, except the Khmer font rendering. I have the fonts installed in Wine and the script does display in the font. However, the script is displayed incorrectly, as if the open layout tables in the fonts are not there or supported. So, the text is useless. Does Wine support Khmer unicode or not? Can anyone provide some information on how to fix this, or at least confirm that is it a known problem. Thanks in advance.
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

At the recommendation of another post, I ran the program with the following commands, all to no avail:

Code: Select all

LC_LANG=km_KH wine theword.exe
LC_LANG=KH wine theword.exe
LC_LANG=kh wine theword.exe
LC_LANG=km wine theword.exe
LC_LANG=km_KH@utf-8 wine theword.exe
None of them worked. If Wine supports Unicode, why would this not work? Just a note, the interface of this program is not Khmer, but a module within it is. Any other advice?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

preahkumpii wrote:LC_LANG=km_KH wine theword.exe
It's not "LC_LANG" is "LANG".
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

Thanks for the reply. I entered this in the command line:

Code: Select all

LANG=km_KH wine theword.exe
It did not work. I have attached a photo of what I see. All the dotted circles demonstrated incorrect rendering, among other issues.

Image
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

One more thing. I get this code in the terminal window when I run theWord:

Code: Select all

fixme:font:GetCharacterPlacementW flags 0x00000132 ignored
fixme:font:GetCharacterPlacementW classes not implemented
There is something there about a font. I get this message many, many times in the terminal window, but all with a different 0x000... code. Does this reveal anything? Thanks for any help.
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

Sorry to keep posting. Just one correction. Concerning the codes I am getting in the terminal window, I get 0x0...112 and 0x0...132 that are alternating. They are not all different codes, but just those two.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

preahkumpii wrote:One more thing. I get this code in the terminal window when I run theWord:

Code: Select all

fixme:font:GetCharacterPlacementW flags 0x00000132 ignored
fixme:font:GetCharacterPlacementW classes not implemented
There is something there about a font. I get this message many, many times in the terminal window, but all with a different 0x000... code. Does this reveal anything? Thanks for any help.
I'm no expert in this regard, but it looks like Wine isn't quite implementing *everything* yet that you need to view the font properly. After all, it's ignoring the placement of something in your font.
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

That is what I was thinking, but why? Does anyone know if there is a way to make it work?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

preahkumpii wrote:That is what I was thinking, but why? Does anyone know if there is a way to make it work?
Compile latest development Wine code. There were several patches to support RTL. Before that Wine in most part doesn't support RTL languages.
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

Khmer is not rtl, but I would be happy to compile the code to see if that helps.

Adam
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

Have a look at
http://www.khmer.ws/unicode/windows.asp
http://www.wazu.jp/gallery/Fonts_Khmer.html
the important part is usp10.dll

Buganini
Thanks. This dll problem is applicable in certain cases in Windows XP. In Vista, it works out of the box. So, the question is does Wine include this/these dll's needed? I will check on these...I think Winetricks has this file included.
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

I installed winetricks (as per this page, which lists usp10.dll) and installed the usp10.dll. It changed nothing. Is there any way to check if there are other dependencies that are needed to render this text?
preahkumpii
Level 2
Level 2
Posts: 10
Joined: Sun Sep 26, 2010 8:19 am

Post by preahkumpii »

do you have "usp10 (native,builtin)" in winecfg->Libraries ?
this may involved, if this does not help, I don't have any more idea.
Yes, it actually says "*usp10 (native,builtin)". Any other ideas?
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

preahkumpii wrote:Any other ideas?
File a bug.
Locked