SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Command-line merge losing delimiter

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
jsweby



Joined: 21 May 2008
Posts: 32

PostPosted: Tue Sep 30, 2008 10:53 am    Post subject: Command-line merge losing delimiter Reply with quote

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

Code:
"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:
TfrmRecruitApplicants.btnInsert=&Insert@#@#@#@#


merged into file1.sil
Code:
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:
"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?
Back to top
View user's profile Send private message
jsweby



Joined: 21 May 2008
Posts: 32

PostPosted: Tue Sep 30, 2008 12:31 pm    Post subject: Reply with quote

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:
TfrmRecruitApplicants.btnInsert=&Insert@#@#@#@#


but under [Collections], [DisplayLabels], in fact everything else, I end up with:

Code:
TfrmRecruitApplicants.DBGrid1.Columns-0+.Title.Caption=Skill indicator@#@#


This was like this in the original file (note the delimiter at the end):

Code:
TfrmRecruitApplicants.DBGrid1.Columns-0+.Title.Caption=Skill indicator@#@#@#@#
Back to top
View user's profile Send private message
jsweby



Joined: 21 May 2008
Posts: 32

PostPosted: Tue Sep 30, 2008 1:45 pm    Post subject: Reply with quote

Performing this on SIB files works 100% correctly, the files are merged perfectly. The problem appears to be with SIL files.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Oct 01, 2008 11:19 am    Post subject: Reply with quote

Please send us sample SIL files to reproduce this problem.
Back to top
View user's profile Send private message
jsweby



Joined: 21 May 2008
Posts: 32

PostPosted: Thu Oct 02, 2008 8:09 am    Post subject: Reply with quote

Email sent.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group