This script generates a database usable in RelaX
It transform input like:
TableName1(num,name)
TableName2(date,columnNameB)
into:
group: eserToRelax
description[[
This database was made with eserToRelaX,
you can find it here: https://github.com/Calonca/eserToRelaX
]]
TableName1 = {num, name
1, lo
1, a
0, b
2, lo
0, b}
TableName2 = {date, columnNameB
2004-05-15, lo
2004-05-15, lo
2004-05-15, b
1997-11-04, lo
2021-11-04, th}
You need Python 3 and the module unidecode
You can install unidecode using pip.
- Open a terminal window in the folder where the script is located and run
python3 eserToRelaX.py
- Copy the input into the clipboard
- Press Enter
- Copy the output inside RelaX Group Editor
- Click on preview
- Click on "use Group in editor" (click multiple times if it doesn't work)