Skip to content

A little converter written in Go to transform Creole markup to different formats.

License

Notifications You must be signed in to change notification settings

s-l-teichmann/creoleto

Repository files navigation

creoleto

A little tool to export files written in the Creole markup language to different formats.
Currently planned supported outputs are XHTML and LaTex.

Attention: This is work in progress and not ready to use!

Limitations (due to limits in the grammar):

  • Nested lists are not parsed.
  • Links are not parsed.
  • Only bold and italics emphases are supported.

Build

You need a working Go environment. Tested successfully with Go 1.9.

go get github.com/s-l-teichmann/creoleto

Put the resulting creoleto binary into your PATH.

Usage

creoleto -standalone -format latex < data/text.creole > converted.tex

Creole grammar

The GPLed Creole 1.0 ANTLR3 grammar was taken from here and was modified to be usable with ANTLR4.
You need a pretty recent ANTLR4 (tested successfully with 4.6+) to create the Go parser code:

antlr4 -Dlanguage=Go -o parser Creole10.g4

To build the resulting code you need Go ANTLR4 runtime:

go get github.com/antlr/antlr4/runtime/Go/antlr

License

This is Free Software covered by the terms of the MIT license.
Copyright (c) 2017 by Intevation GmbH

About

A little converter written in Go to transform Creole markup to different formats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published