ebeshero / Amadis-in-Translation

a project to apply TEI markup to investigate early modern Spanish editions of Amadis de Gaula and their translations into English and French from the 1500s to the early nineteenth century.
http://amadis.newtfire.org
GNU Affero General Public License v3.0
4 stars 6 forks source link

coding folia numbers #42

Closed HelenaSabel closed 8 years ago

HelenaSabel commented 8 years ago

I've noticed that in one of the chapters we had coded the page number differently (with a dot before the recto/verso specification instead of a hyphen) so I fixed that one and added a Schematron rule so as to be consistent with those.

ebeshero commented 8 years ago

@HelenaSabel I noticed two small problems with the new schematron rule for recto / verso specification: The | was part of a character set (inside square brackets with r and v), so you could actually type a | instead of r or v in the @from and @to attribute on <locus>. Also, you could continue on to add characters, like rqqqqq. So I just added a little tweak and changed the Schematron test thus:

`

The number of folia must be coded as a Roman numeral (lower case), followed by a hyphen and either the letter 'r' or 'v'

`

The change is just from this: [r|v] to this: (r|v)$ I discover that you can use the end-of-line $ to indicate where you want an attribute value to end, to prevent additional characters from being added.