Stef Hoeben
13th August 2013 14:57 UTC
Right-align license file for RTL language?
Hi,
we have a Hebrew license file which look fine (= right-aligned) when viewed with Word.
When we add it to our installer:
LicenseData "${LICENSEDIR}\License_he.rtf"
...
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Hebrew.nlf"
everything builds nicely; but when we run the installer, the license text is left-aligned.
I tried with the V2.3 and V3.1a compilers.
Am I missing something? Or is there a convenient work-around (an image as license, ...) ?
Thanks, br,
Stef
Anders
13th August 2013 16:47 UTC
Did you use Word to create the file?
Here is a file that works fine, created with Wordpad on Win7:
Quote:
\rtlch is probably the important bit there...
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1044{\fonttbl{\f0\fnil\fcharset177 Calibri;}{\f1\fnil\fcharset0 Calibri;}} {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\ltrpar\sa200\sl276\slmult1\qr\lang1037\f0\rtlch\fs22\'fa\'f7\'f9\'e5\'f8\'fa \'e7\'e5\'f4\'f9\'e9\'fa\par \pard\ltrpar\sa200\sl276\slmult1\lang1044\f1\ltrch Hello\lang1037\f0\rtlch\par }
|
kichik
14th August 2013 06:16 UTC
Yep, works fine for me with Wordpad too. Word has been known to create incompatible RTF files.
Attached script + RTF + installer + picture proof :)
Stef Hoeben
14th August 2013 17:24 UTC
Hi,
thx for the help. Your RTF files work indeed. Ours not, even if we save it
with WordPad (which looks indeed very different from what Word saves).
It turns out I have to remove the indenting in our license file.
After doing that all is right aligned.
Cheers!
Stef