Windows Installer is an ANSI (byte-oriented character set) technology so any
scripts which are Unicode-only won't work. The list of supported ANSI
codepages can be found at
http://www.microsoft.com/globaldev/reference/WinCP.mspx.

 

Hindi uses the Devanagari script. There is a 'Code Page 57002' for
Devanagari but I believe this is only supported by
MultiByteToWideChar/WideCharToMultiByte, you cannot actually set it as the
script to use in a call to CreateFont, which I think is how the GDI ANSI
text APIs determine what glyphs to draw for a given input. I'm afraid I
think Hindi is not do-able. You'd probably have to use an external UI
handler.

 

The EULA is fine because the Windows Installer ScrollableText control is
actually a RichEdit control, and that control can handle being presented
with Unicode RTF data and can perform the composition required to show
Devanagari properly.

 

For Hebrew you should be OK with the 1255 codepage. To set the package's
codepage for strings, use the Product/@Codepage attribute.
Package/@SummaryCodepage is only for the summary information stream.
Alternatively you can use WixLocalization/@Codepage, which actually
overrides the product's codepage. Specifying 0, or no value, would I think
get you a package using the current system ANSI code page (a.k.a. 'Language
for non-Unicode Programs'). The WiX-supplied .wxl files do not specify a
Codepage attribute. You may well find that the (presumably Simplified?)
Chinese .wxl file does set Codepage, to 936.

 

0x380 is the correct value for setting in the Dialog table, not the Control
table. For the Control table it's 0xE0. I believe that the Dialog value
overrides the Control value. You can set this in a WiX Dialog element by
setting the RightToLeft, RightAligned and LeftScroll attributes to 'yes'. I
don't think WiX 2.0 allows these bits to be overridden for the standard
dialog set, so I think you'd have to do a copy and paste.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pat Higgins
Sent: 05 November 2007 21:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] 2 WiX questions

 

Hi 

 

My team started using WiX only this year, they're creating patches for a
product & I'm localising the patches, however I'm having problems for:

 

*         Hindi & Hebrew - the patch gets created but all the characters are
corrupted. All I see are ?????? Where there should be Hindi or Hebrew text.
I thought it might be a font issue so replaced Tahoma with Mangal (used in
our Eula which does display ok - this is for Hindi) but it made no
difference. 

We are using the standard WiX library so all our dialogs etc are not defined
by us.  The strange thing is no other language has this problem displaying
characters - Chinese etc, all display fine.

Any advice on displaying Hindi & Hebrew char's or does WiX even support
them? Maybe I need WiX 3?

 

*         Arabic - the text itself displays fine, however getting it to
display Right to Left is a bit more problematic. If I change the Attributes
value (generally 3 but not always) in the MSI (control table) by adding hex
380 to it, I can reverse the text however I get a type of box around the
text. 

Even if I get the value correct, I'll have to run a query to change all the
text in the MSI because the dialogs are coming from the WiX library - is
there a better way of making a BiDi MSI?

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to