sil to csv command line export

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
aleazevedo
Posts: 4
Joined: Tue Nov 21, 2023 7:33 pm

sil to csv command line export

Post by aleazevedo »

Hello,

We are currently encountering a challenge regarding the export of a .sil file to .csv format.

Traditionally, our process involves manually opening a .sil file in SilEditor and subsequently exporting it to a .sib file. Following this, we repeat the manual process by opening the .sib file in SilEditor and exporting it to a .csv file.

This method is adopted to ensure that the resulting .csv file maintains the same section order as the original .csv file, which was generated from exporting .sib to .csv.

We are interested in automating this procedure through command-line functionality. Ideally, the command-line export from .sil to .csv would preserve the section order as observed in the export from .sib to .csv.

Could you kindly assist us in implementing this modification? We believe that streamlining this process would significantly enhance our workflow efficiency.

Thank you for your attention to this matter. We look forward to your guidance and support in resolving this issue.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Re: sil to csv command line export

Post by isiticov »

Hello,
You can use the command-line interface to export SIB to CSV as well. Cite from the help:
To export file to other format:


sileditor.exe -e <full path to source file> <full path to output file>

Description:

-e - export command-line switch;
Second parameter must be full path to the SIL/SIB file to use.
Third parameter must be full path to the output file. Supported formats are: SIL/SIB, CSV, HTML, DOC, DOCX, XLS, XLSX.


Example:

sileditor.exe -e [FULL_PATH_TO_SOURCE_FILE]\File_Name.sib [FULL_PATH_TO_TARGET_FILE]\File_Name.html
Best regards,
Igor Siticov.
aleazevedo
Posts: 4
Joined: Tue Nov 21, 2023 7:33 pm

Re: sil to csv command line export

Post by aleazevedo »

Hello,

We need the export from SIB to CSV and SIL to CSV to maintain the same order. Currently, we have the following order for both export options:

SIB to CSV:
[Captions]
[Hints]
[DisplayLabels]
[Fonts]
[Multilines]
[Dialogs]
[Strings]
[Other]
[Collections]
[CharSets]

SIL to CSV:
[Captions]
[CharSets]
[Collections]
[Dialogs]
[DisplayLabels]
[Fonts]
[Hints]
[Multilines]
[Other]
[Strings]

We would appreciate it if both exports could maintain the same order, if possible.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Re: sil to csv command line export

Post by isiticov »

We will check how to adjust this.
Best regards,
Igor Siticov.
Post Reply