open-campaign-logger / generator-library

This repository contains the generator library files for https://campaign-logger.com/generator which can be referenced like this: "{lib:adjColor}".
Apache License 2.0
31 stars 13 forks source link

TableSmith file importer #3

Open JochenLinnemann opened 7 years ago

JochenLinnemann commented 7 years ago

Would that be a viable way for users to import existing generators to CL? I don't know the file format, though...

evesala commented 7 years ago

This would indeed be a killer feature, as TableSmith is some kind of a de facto standard and as far as I know, the best of its kind. (And nowadays quite an inactive project, it seems.)

The syntax is quite extensive, so unfortunately the conversion will not be a quick job. The TableSmith feature set can produce quite intelligent results, so matching it would of course be immensely useful.

It seems that the official TS documentation is not currently online, but this tutorial should give you a good overview:

https://randomdm.wordpress.com/category/tablesmith-tuesdays/

(I can provide you the official Windows help file later if you want to have a closer look.)

JochenLinnemann commented 7 years ago

I just downloaded and installed TableSmith 5.2. The basic file format seems very straight forward, even with table calls and such. The most "problematic" part to convert seems to be "scripting". I need to sleep over that.

JochenLinnemann commented 7 years ago

In preparation of future extensions, I added support for variable assignment to the next update. Here is how it will look in the generator file: https://github.com/open-campaign-logger/generator-library/blob/extended-file-format/json/_file-format.json