Command-line merge losing delimiter

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
jsweby
Posts: 32
Joined: Wed May 21, 2008 3:07 pm

Command-line merge losing delimiter

Post by jsweby »

I have two SIL files from 2 separate projects that I want to merge together. I use this command line:

Code: Select all

"sileditor.exe" -morig "C:\dev\file1.sil" -mnew "C:\dev\file2.sil" -mlang all -msuperfl
The elements from file2.sil all end up in file1.sil as I would expect, but they have all lost their delimiter.

file2.sil

Code: Select all

TfrmRecruitApplicants.btnInsert=&Insert@#@#@#@#
merged into file1.sil

Code: Select all

TfrmRecruitApplicants.btnInsert=&Insert
The delimiter is the same in both files (@#@#) and the languages are both the same.

Some lines come through correctly, usually those with a standard caption such as OK or Cancel.

I tried changing the command line to use only language 1 ("Standard"):

Code: Select all

"sileditor.exe" -morig "C:\dev\file1.sil" -mnew "C:\dev\file2.sil" -mlang Standard -msuperfl
But this time not even the captions such as OK appeared with a delimiter.

If I use the SIL Editor to manually perform the merge (form the File menu), it works OK, all of the delimiters are saved correctly. In this case, I choose only "Standard" language (number 1), tick "Merge empty cells in original file" and don't tick "Skip superfluous entries".

Any thoughts please?
Carval Computing Limited
Payroll - HR - T&A
carval.co.uk
jsweby
Posts: 32
Joined: Wed May 21, 2008 3:07 pm

Post by jsweby »

Actually, the manual merge using SILEditor.exe doesn't quite work either. This time I selected both languages in the Merge Wizard.

All of the items under [Captions], [Hints] and [Other] are correctly merged into the new file:

Code: Select all

TfrmRecruitApplicants.btnInsert=&Insert@#@#@#@#
but under [Collections], [DisplayLabels], in fact everything else, I end up with:

Code: Select all

TfrmRecruitApplicants.DBGrid1.Columns-0+.Title.Caption=Skill indicator@#@#
This was like this in the original file (note the delimiter at the end):

Code: Select all

TfrmRecruitApplicants.DBGrid1.Columns-0+.Title.Caption=Skill indicator@#@#@#@#
Carval Computing Limited
Payroll - HR - T&A
carval.co.uk
jsweby
Posts: 32
Joined: Wed May 21, 2008 3:07 pm

Post by jsweby »

Performing this on SIB files works 100% correctly, the files are merged perfectly. The problem appears to be with SIL files.
Carval Computing Limited
Payroll - HR - T&A
carval.co.uk
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Please send us sample SIL files to reproduce this problem.
Best regards,
Igor Siticov.
jsweby
Posts: 32
Joined: Wed May 21, 2008 3:07 pm

Post by jsweby »

Email sent.
Carval Computing Limited
Payroll - HR - T&A
carval.co.uk
Post Reply