DraqueT / PolyGlot

PolyGlot is a conlang construction toolkit.
MIT License
389 stars 44 forks source link

[suggestion] Import/export of grammar #1155

Open TrapinchO opened 2 years ago

TrapinchO commented 2 years ago

DEVELOPER TEXT Export to HTML with invisible markers between chapters and sections to allow PolyGlot to differentiate when re-importing.

ORIGINAL TEXT Formats could include json, xml and possibly plain text files.

If plain-text file was imported, a new section imported would be created, with a new chapted named as the file (or possibly customised in import menu).

Partially links to #1041 with its separation of grammar into external files.

DraqueT commented 2 years ago

This is absolutely a good idea, but I feel like I need to do a complete rehaul of the system beforehand. The text editor is written from scratch, down to its encoding, which was a bad idea. I need to find a good opensource text editor that I can drop into this.

Coincidentally, I'm looking into something similar for another project that I'm working on, so hopefully I'll be able to draw some inspiration from that. ^^

TrapinchO commented 2 years ago

I posted some possibilities I found in the linked issue, would be those good enough?

DraqueT commented 2 years ago

Those are absolutely good suggestions, yeah! Mostly just thinking about the order that I'm going to tackle them in. Once I have the editor and encoding down, I'll be able to easily export to various plaintext formats in more manageable ways.

DraqueT commented 1 year ago

@TrapinchO Gonna be incorporating this into the 4.0 release! :3

TrapinchO commented 1 year ago

@TrapinchO Gonna be incorporating this into the 4.0 release! :3

Glad to hear that!

As for the developer text, would it be possible to simply differentiate the chapters by using a div or something similar?