PolyGlot icon indicating copy to clipboard operation
PolyGlot copied to clipboard

[suggestion] Import/export of grammar

Open TrapinchO opened this issue 2 years ago • 5 comments

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.

TrapinchO avatar Mar 09 '22 17:03 TrapinchO

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. ^^

DraqueT avatar Mar 11 '22 01:03 DraqueT

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

TrapinchO avatar Mar 11 '22 08:03 TrapinchO

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 avatar Mar 12 '22 05:03 DraqueT

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

DraqueT avatar Apr 21 '23 18:04 DraqueT

@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?

TrapinchO avatar Apr 21 '23 18:04 TrapinchO