Old 13th August 2013, 13:57   #1
Stef Hoeben
Junior Member
 
Join Date: Aug 2013
Posts: 2
Question 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
Stef Hoeben is offline   Reply With Quote
Old 13th August 2013, 15:47   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,153
Did you use Word to create the file?

Here is a file that works fine, created with Wordpad on Win7:
Quote:
{\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
}

\rtlch is probably the important bit there...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 14th August 2013, 05:16   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Yep, works fine for me with Wordpad too. Word has been known to create incompatible RTF files.

Attached script + RTF + installer + picture proof
Attached Files
File Type: zip RTL.zip (37.3 KB, 93 views)

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 14th August 2013, 16:24   #4
Stef Hoeben
Junior Member
 
Join Date: Aug 2013
Posts: 2
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
Stef Hoeben is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump