-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved directory structure, improved README
- Loading branch information
EsGeh
authored and
EsGeh
committed
Aug 6, 2019
1 parent
68631de
commit d71166e
Showing
16 changed files
with
98 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,89 @@ | ||
# EOA publication model | ||
|
||
This repository contains the document model for EOA publications. The model is maintained as a TEI ODD file which contains both the definition of the model as well as its documentation. | ||
|
||
This repository also contains an example file that contains all the phenomena that can occur in an EOA publication. | ||
|
||
# Initialising the Repository | ||
|
||
# Installation | ||
After cloning the repository, make shure to run this script first: | ||
|
||
$ ./scripts/init.sh | ||
|
||
This will | ||
|
||
- locally download dependencies | ||
- create autogenerated resources (e.g. ODD, schemata) | ||
|
||
# Validity checking | ||
# Cleaning up the Repository | ||
|
||
check your xml file against one of the schemas in the `schema` directory: | ||
In order to purge all local dependencies and resources, run | ||
|
||
- to check if your file is valid tei at all, use one of these schemas: | ||
$ ./scripts/exit.sh | ||
|
||
- `./schema/tei/tei_all.rnc` | ||
- `./schema/tei/tei_all.rng` | ||
# Example Publication | ||
|
||
- to check if your file is compatible with EOA, in other word only uses tei features supported by EOA, use this schema: | ||
For a short example of a valid EOA publication in TEI syntax, see | ||
|
||
- `./schema/legacy/eoa-tei-strict.rnc` (hand made file) | ||
- (see "EXPERIMENTAL") | ||
- `./examles/tei/` | ||
|
||
This example file serves the following purposes: | ||
|
||
## EXPERIMENTAL | ||
- give a first impression of the | ||
- exhaustively document all features available in EOA documents | ||
|
||
- `./schema/generated/rnc/eoa-tei.rnc` : this is the file generated from the `./schema/odd/eoa-tei.odd`. Since the `.odd` file is still experimental and possibly incorrect the autogenerated schema is too! | ||
There is also a version of the same publication in old EOATeX[^eoatex] format here: | ||
|
||
## TODO | ||
- `./examples/eoatex/` | ||
|
||
- TODO: replace the "experimental" odd file by a stricter and safer one | ||
The TEI version is the more recent format and is recommended for new EOA publications. | ||
|
||
Eventually the autogenerated schema is going to replace the hand made one. | ||
[^eoatex]: What is EOATeX? | ||
|
||
The TEI example file itself is modeled after the original EOA document model, | ||
which was designed in LaTeX, the set of macros eventually being called EOATeX. | ||
|
||
# How to recreate Schemata | ||
# Checking Validity of a Publication | ||
|
||
## Dependencies | ||
In order to proof that some XML document is a valid TEI publication consider the schemata in | ||
|
||
- pandoc(optional) : only needed if you want odd statistics as HTML. | ||
- `./schema/` | ||
|
||
## Scripts | ||
Because EOA has some more complex restrictions, both, a schema (typically in RelaxNG syntax) and a schematron stylesheet needs to be applied, to be completely shure. | ||
There are two helper scripts that automatise this task: | ||
|
||
If you changed the odd file, and want to recreate the schemas, html doc, etc: | ||
$ `./scripts/validate_xml.sh` | ||
$ `./scripts/validate_xml.sh` | ||
|
||
$ ./scripts/updateOutput.sh | ||
For usage details append the `--help` option. | ||
|
||
this (re-)creates files in `./schema/generated` and `./doc/generated` | ||
# HTML Documentation | ||
|
||
alternative ways to create schemata from odd: | ||
The documentation of the EOA format can be found in | ||
|
||
From the ODD file, documentation and schema files can be created. Several possibilities exist, the most straightforward being | ||
[Roma](http://www.tei-c.org/Roma), the TEI schema generator or oxygen, the XML editor. | ||
- `./doc/html/` | ||
|
||
# Verify Schemata | ||
Use your favourite webbrowser to read it. | ||
|
||
To check if all files in `./corpus` are valid in respect to the schemata in this repository, issue: | ||
# Abandoned | ||
A further component is a stylesheet for | ||
[ConTeXt](https://en.wikipedia.org/wiki/ConTeXt), which processes the | ||
XML file to a PDF. This is currently incomplete and not maintained. | ||
|
||
$ ./scripts/validate_xml.sh | ||
# Information for Developers | ||
|
||
# Example Document | ||
The final ODD is the result of a process that involves multiple steps and depends on the following input files: | ||
|
||
An example document can be found in | ||
- the TEI example publication | ||
- a schema in RelaxNG Compact syntax | ||
|
||
- `./examples/` | ||
After changing one of these resources, you'll have to update all files that depend on them: | ||
|
||
The document exists in two formats: TEI, and EOATeX. | ||
The TEI version is the more recent format and is recommended for new EOA publications. | ||
## Updating autogenerated Files | ||
|
||
# What is EOATeX? | ||
$ ./scripts/clean_output.sh | ||
$ ./scripts/updateOutput.sh | ||
|
||
The TEI file itself is modeled after the original EOA document model, | ||
which was designed in LaTeX, the set of macros eventually being called | ||
EOATeX. A sample project and can be also found in this repository. | ||
### Dependencies | ||
|
||
# Abandoned | ||
A further component is a stylesheet for | ||
[ConTeXt](https://en.wikipedia.org/wiki/ConTeXt), which processes the | ||
XML file to a PDF. This is currently incomplete and not maintained. | ||
- pandoc(optional) : only needed if you want ODD statistics as HTML. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../examples/exampleTEI.xml | ||
../examples/tei/exampleTEI.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../schema/intermediate/s2/generated/html/1_simple.html |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../tei/odd/p5subset.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../legacy/eoa-tei.odd | ||
../intermediate/s2/odd/1_simple.odd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../intermediate/s2/generated/rnc/1_simple.rnc |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../intermediate/s2/generated/schematron/1_simple.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../intermediate/s2/generated/schematron/1_simple.xsl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters