Skip to content

slavonic/cumd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cumd

Church Slavonic dialect of Markdown

Markup

  1. Use = symbol to mark red spans, for example: =Слава и ныне=
  2. Use + to mark expanded font: +Священник глаголет:+
  3. Use leading tilda to mark first letter of a word red: ~Христос рождается
  4. For pagebreak anchors use <<5: л. 3 об.>> or simply <<5>> when label is the same as the page number
  5. Use leading curcumflex symbol to mark bukvitsa: ^Вначале было Слово
  6. For verse numbering use ((и))
  7. For footnote use [[footnote text]] (Attention: this is likely to change)

This package provides two commands:

  • cumd - renders markdown into html
  • cuxml - converts Ponomar XML into markdown

cumd

usage: cumd.py [-h] [--html] [--extension [EXTENSION [EXTENSION ...]]]
               input output

Converts CU markdown to HTML (version X.Y.Z)

positional arguments:
  input       File name of the input *.md file
  output      File name of the output *.html file

optional arguments:
  -h, --help  show this help message and exit
  --html      Set to generate viewable HTML
  --extension [EXTENSION [EXTENSION ...]], -e [EXTENSION [EXTENSION ...]]
                        Extension to enable (allows multiple -e flags). For
                        example -e footnotes

cuxml

usage: cuxml [-h] input output

Converts XML to cu-flavored markdown

positional arguments:
  input       input XML file
  output      output Markdown file

optional arguments:
  -h, --help  show this help message and exit

About

Church Slavonic Markdown Dialect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages