ogmarkup
What is ogmarkup?
Typographic rules can be trick to enforce in a consistent manner in a
document. In French, typographic rules for dialogues are arguably
worst. ogmarkup is part of the so-called ogma-project. It is a minimal
domain-specific markup language, intended to free fiction writers from the pain
to enforce typographic rules within their productions manually.
The Language
Formatting
This is a regular sentence.
This is a regular sentence.
*This is a sentence with emphasize.*</p>
This is a regular sentence.
+This is a sentence with strong emphasize.+</p>
This is a sentence with strong emphasize.
This +is+ a *sentence with +multiple emphasizes+*.
This is a sentence with multiple emphasizes.
"This is a +quote+."
“This is a quote.”
This +is an "incorrect+" sentence.
This +is an "incorrect+" sentence.
This +is an "incorrect+"
sentence.
This +is an "incorrect+" sentence.
Dialogues
[Hi,| she says.|](Clara)
“Hi,” she says.
[Hi,| she says.| How are you?](Clara)
“Hi, she says. How are you?”
[Hi,| she says.| How are you?](Clara) [I'm fine, thanks.]
“Hi, she says. How are you?”“I’m fine, thanks.”
[Hi,| she says.| How are you?](Clara) She was smiling. [I'm fine, thanks.]
“Hi, she says. How are you?” She was smiling. “I’m fine, thanks.”
It was a hot day. [Hi!| he said.](Aaron)
His friends smiled.
It was a hot day.[Hi!| he said.](Aaron) His friends smiled.
Paragraphs
This is a first paragraph.
This is a second paragraph.
This is a first paragraph.This is a second paragraph
[Ceci est une première ligne de dialogue.]
[Ceci est une autre ligne de dialogue.]
« Ceci est une première ligne de dialogue.— Ceci est une autre ligne de dialogue.
The Implementations
A first implementation of an ogmarkup parser and compiler has been
written in Haskell, and has been published on hackage
(MIT). This first
project has been deprecated in favor of a rewriting in Rust yet to be
released on crates.io