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 

SilEditor Command Line

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



Joined: 16 Jul 2015
Posts: 4

PostPosted: Fri Jul 17, 2015 9:55 am    Post subject: SilEditor Command Line Reply with quote

Is there a document available anywhere which provides full details of the command line options available with SilEditor?

I've found a few in the help file with regards to the -a switch which relates to merging .sib files and there's discussion in some release notes (from a long way back) regarding a -E switch which relates in some way to exporting. There's no significant detail though!

I'm trying to create a pre-commit script which invokes SilEditor to open our primary .sib file and to export it to XML to better track changes and to allow for merge/import capabilities.

Thanks for any help anyone can provide!

Owen
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Fri Jul 17, 2015 4:09 pm    Post subject: Reply with quote

Hello,
The latest version of SIL Editor includes updated help file which includes description of -a -d and merging commands. Unfortunately, by unknown reason description of -e key disappeared. We will fix it. In short the command would be:
Code:

sileditor.exe -e [FULL_PATH_TO_SOURCE_FILE]FILE.sib [FULL_PATH_TO_TARGET_FILE]FILE2.SIL

Source file: SIL or SIB.
Target file could be SIL/SIB, CSV, HTML, DOC, DOCX, XLS, XLSX.
Back to top
View user's profile Send private message
Owen



Joined: 16 Jul 2015
Posts: 4

PostPosted: Mon Jul 20, 2015 7:03 am    Post subject: Reply with quote

isiticov wrote:

Code:
sileditor.exe -e [FULL_PATH_TO_SOURCE_FILE]FILE.sib [FULL_PATH_TO_TARGET_FILE]FILE2.SIL




Thanks for the quick reply.

That looks to be the command I'll need. I'll take a look at those export formats. XML would have been ideal for merging multiple changesets but the HTML export format ought to be usable in the same way provided that it's possible to import the file again!
Back to top
View user's profile Send private message
Owen



Joined: 16 Jul 2015
Posts: 4

PostPosted: Tue Oct 06, 2015 2:27 pm    Post subject: Import? Reply with quote

Is there an equivalent import command?

We're now using the -e (export) switch to automatically export .sib files as .html files, suitable for storing in a version control system. That way, when .sib files change on multiple branches it's just a matter of merging the two html files back together.

Within SilEditor we can import the .html files and save them back as .sib files again prior to issuing a release but it would be great to be able to script this process. Is there a command-line import function which can be used to go back from .html to .sib?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Wed Oct 07, 2015 9:34 am    Post subject: Reply with quote

No, unfortunately, import not supported by command-line. We will try to add this feature.
Back to top
View user's profile Send private message
Owen



Joined: 16 Jul 2015
Posts: 4

PostPosted: Wed Oct 07, 2015 10:53 am    Post subject: Reply with quote

That's great to hear, we'll find it extremely useful!

If I might ask, what sort of techniques are your developers (and others reading the board) using to maintain .sib files with regards to version control?
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