DraqueT / PolyGlot

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

Suggestion: Grammar section improvements #1041

Open TrapinchO opened 2 years ago

TrapinchO commented 2 years ago

1) markdown support It would be nice if it would be possible properly format grammar sections, such as making text bold underlined or creating tables. No highlight/indentation support is needed, though it would be nice.

2) undo/redo button no explanation here need

3) separation into different files It would make things much easier if we could just import/export pages just by dragging .txt (or .md) files in and out of a folder. It could also clear stuff inside the main project .xml file. A folder structure could be either grammar/<chapter name>/<page name> or grammar/<chapter name>_<page name>. (this is also partially addressed in #931)

Other possible additions:

edit: added minor additions

DraqueT commented 2 years ago

This is a good idea, but it's also a big project. Do you happen to know of a good open source text editor that I could just consume and drop into PolyGlot? The one that exists in it is totally custom, which I recognize now was a big mistake.

This is something I intend to do eventually, but it's gonna be a big task.

TrapinchO commented 2 years ago

Found these three things, licenses should be fine

Markdown text editor https://github.com/commonmark/commonmark-java

Code highlighter (supports markdown)

Seems to be a swing component (in java) for text editing https://github.com/bobbylight/RSyntaxTextArea

Sinfaen commented 5 days ago

CodeView-Android is MIT licensed, but was last updated 6 years ago. I'll look into the following for markdown support

Plugin License
common-mark BSD-2
flexmark BSD-2
Sinfaen commented 5 days ago

would also address https://github.com/DraqueT/PolyGlot/issues/975