Archive: Right-align license file for RTL language?

Right-align license file for RTL language?

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,

Did you use Word to create the file?

Here is a file that works fine, created with Wordpad on Win7:

\rtlch is probably the important bit there...

{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1044{\fonttbl{\f0\fnil\fcharset177 Calibri;}{\f1\fnil\fcharset0 Calibri;}}
{\*\generator Msftedit;}\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

Yep, works fine for me with Wordpad too. Word has been known to create incompatible RTF files.

Attached script + RTF + installer + picture proof :)


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.