For all geeks and devs out there, we just rolled out a cool feature for Bilara. You can now export the data from Bilara in a range of file formats, and re-import it again!
This is a pre-pre-alpha feature. It will break and destroy everything! Use only if you do not value your own life or that of your loved ones!!!
Only kind of kidding! Actually on my very limited testing it seems to work fine, but best be cautious. I’m sharing it with you in the hope that someone might want to test it and play around and find some bugs.
This is not a user-facing feature. It is developed for two main use cases:
- Internal SC work, if we need to make bulk or complex changes to the bilara-data
- Consumption of bilara-data in external apps
How does it work? First, clone bilara-data:
Go to the
.scripts folder. Change the python version to 3.7.2. (Other versions may work if you have a different version installed.) Run something like:
pip3 install -r requirements.txt
Ready to go, let’s export dn1 as a Libreoffice spreadsheet!
./sheet_export.py dn1 dn1.ods
Edit it, save, and run:
Et voila, your changes appear in the bilara data file. Of course you should never do this unless you’re on official SC business, but anyway you can see how it works.
You can easily do something like this, too:
./sheet_export.py dn dn.tsv --include root, translation+en
“Export the whole of DN as a
tsv file, including only the root text and English translation”.
It uses Pyexcel under the hood, so you have a wide range of formats to choose from.