A simple example of a Domain-Specific Language for the transcription of manuscripts. Specific portions of text can be marked as written by the author ({}
) or by the editor ([]
), gaps ([...]
) can be inserted whenever the text is too hard to read, and placeholders for figures ([fig]
) can be inserted into the text stream. All of these phenomena could also be commented by adding a parenthesized string right after the symbols.
Finally, the ---
symbol can be used on a line by itself to represent a break (like for example a page break).
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Clavius DSL</title>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="AppView.css">
<link rel="stylesheet" href="Editor.css">
<link rel="stylesheet" href="AnnotationView.css">
<link type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/codemirror.min.css" rel="stylesheet"/>
<link type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css" rel="stylesheet"/>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="/webvis/tmp/peg-0.9.0.min.js"></script>
<script src="https://underscorejs.org/underscore-min.js"></script>
<script src="https://backbonejs.org/backbone-min.js"></script>
<script src="backbone.d3view.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/codemirror.min.js"></script>
<script src="//wafi.iit.cnr.it/webvis/tmp/codemirror_mode_simple.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/addon/search/searchcursor.min.js"></script>
<!-- your views go here -->
<script src="AppView.js"></script>
<script src="Editor.js"></script>
<script src="AnnotationView.js"></script>
<!-- your models go here -->
<script src="Data.js"></script>
</head>
<body>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script>
<script src="index.js"></script>
</body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://underscorejs.org/underscore-min.js to a secure url
Modified http://backbonejs.org/backbone-min.js to a secure url
https://d3js.org/d3.v3.min.js
https://underscorejs.org/underscore-min.js
https://backbonejs.org/backbone-min.js
https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/codemirror.min.js
https://wafi.iit.cnr.it/webvis/tmp/codemirror_mode_simple.js
https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/addon/search/searchcursor.min.js
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js