Giter VIP home page Giter VIP logo

teic / tei-simple Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 12.0 36.14 MB

Legacy Repository: TEI SimplePrint now merged into TEI Repository. Originally TEI Simple aimed to define a new highly-constrained and prescriptive subset of the Text Encoding Initiative (TEI) Guidelines suited to the representation of early modern and modern books, a formally-defined set of processing model rules that enable web applications to easily present and analyze the encoded texts, mapping to other ontologies, and processes to describe the encoding status and richness of a TEI digital text.

Makefile 0.01% Shell 0.18% XSLT 2.28% HTML 97.49% CSS 0.01% JavaScript 0.03%
legacy

tei-simple's People

Contributors

bzillig1 avatar jamescummings avatar joewiz avatar lb42 avatar martindholmes avatar martinmueller39 avatar sebastianrahtz avatar tuurma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tei-simple's Issues

Why `<gi>` and `<att>` but not `<val>`?

I could understand Simple not having any of these three elements, but to have two and not the third seems strange; is there a reason for it? I typically use all three when documenting encoding practices.

No simple: `@rendition` value for indent?

Indented first lines in paras and other blocks are common in all early modern texts. The current simplePrint spec doesn't provide anything for this. I propose simple:indentFirst, or failing that, from CSS, simple:textIndent.

simple:letterspace: what does it mean?

Unless this is a technical term from typography that I don't know, simple:letterspace is a bit confusing; it doesn't say what the size of the letter spacing is (wider than normal, narrower than normal?). Isn't it a bit like saying "font-size" without providing a size? If it's analogous to CSS letter-spacing, it needs a value of some kind, surely?

Handling for tei:code

An implementation question:

As I was reviewing @wolfgangmm's tei-simple-pm app, I noticed the documentation.xml file used the <code> element, which the TEI-Simple docs say is...:

not allowed in TEI SImple, but should be transformed to another element

... namely, <hi>. I found an appropriate @rendition value: simple:typewriter, and could wrap blocks in <ab> (possibly with a CSS @rend override of white-space: pre to ensure preservation of line breaks? or is @rend not allowed?). We'd lose the possibility of language- or vocabulary-specific syntax highlighting that we had with the old <code lang="xquery">, etc., but at least we'd have standard TEI-Simple. Then I noticed that the TEI-Simple-PM docs do use <code>, so I started to wonder if <code> really isn't intended to be allowed in TEI-Simple?

While project documentation may not be the primary case for TEI-simple, it occurred to me that the question might be worth raising, because it gets at a question I had: what's the best route for a project that wants to extend or customize TEI Simple?

What should functions do with xpath expressions that return multiple nodes.

Functions often take an xpath expression and in the examples it's
often the current node, but what should happen if the xpath expression
returns multiple nodes?

<model behaviour="block(.//)"/>

Here we're returning all nodes below the current node as asking them to be formatted as block(wrapped with a <div>)

should note behaviour have default labels?

currently behaviour="note" needs a label param explicitly specified in the <model>, otherwise invalid output xslt is produced, should there be a default and, if so, what the default should be?

Strange value/gloss for @place

This in teisimple.odd is a bit puzzling:

valItem ident="display"
desc: formatted like a quotation

What does "formatted like a quotation" mean, and why would a value of "display" map to this?

reintroduce model/@class

to specify persistent and human/designer-friendly class names to be passed through to the output

Is there a dtd?

Sorry if this is a silly question, but is there a TEI Simple DTD file somewhere? I notice it's referenced in tests/testsimple.xml, but I don't see it in the parent directory.

Values for att.placement

Your expanded list of values in att.placement is very helpful: this was one of the things I found particularly unclear when I was starting out with TEI.

One thing I don’t see there is an equivalent to EpiDoc’s ‘overstrike’, indicating that something has been written or carved over whatever was there before (which may or may not be decipherable). I assume that ‘inline’ is not referring to this, which I would take as indicating, for example, that a character had been squeezed between two others. I'm not sure what this should be called; 'superimposed' is one example in the Guidelines that isn't specific to a particular medium.

It could also be helpful to have a 'centre' or 'textblock' value (though there might be a better solution that I am missing here). For instance, if one is using this list to roughly record the position of an annotation on a page, what would one do if it was placed somewhere in the middle of the page (e.g. on a page with relatively little text, such as a title page or verso)?

I also wonder about the definition of 'margin' as 'in the outer margin', whereas the Guidelines give it as 'in the margin (left, right, or both)'. The TEI Simple additions pinpoint the ambiguity precisely, but on the other hand I can see them leading to inconsistency, with some people using 'margin-left' and 'margin-right' and others 'margin' – and then what if you wanted to say that something was in the inner margin?

name type="organization" is out of line with existing TEI practice

For a long time, we have had the notion that e.g. <orgName> is syntactic sugar for <name type="org"> and we even have an example of @type="org" in the Guidelines:

http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-name.html

Why does Simple adopt the unconventional <name type="organization">?

<name type="placeGeog"> is even weirder, alongside <name type="place">. Aren't all geographical names places? Why not <name type="geog">?

constraintSpec seems to be in the wrong place

The constraintSpec below is located in the classSpec which modifies att.global.rendition:

<constraintSpec ident="corresppointer" scheme="isoschematron">
            <constraint>
              <rule xmlns="http://purl.oclc.org/dsdl/schematron" context="tei:*[@corresp]">
                <let name="results"
                  value="for $t in        tokenize(normalize-space(@corresp),'\s+') return starts-with($t,'#') and not(id(substring($t,2)))"/>
                <report test="some $x in $results  satisfies $x"> Error: Every local pointer in "<value-of
                  select="@corresp"/>" must point to an ID in this document (<value-of select="$results"
                  />)</report>
              </rule>
            </constraint>

However, @corresp is defined in att.global.linking, not att.global.rendition. Unless I'm misunderstanding something, it should be moved.

This is in the file teisimple.odd.

relaxng validation of testfiles with xmllint seems faulty

xmllint --valid teisimple.dtd tests/testsimple2.xml # works fine
xmllint --valid --relaxng teisimple.rng tests/testsimple2.xml # sits there like a pudding
jing teisimple.rng tests/testsimple2.xml # works fine
rnv teisimple.rnc tests/testsimple2.xml # works fine

name of parameter for glyph function

@behaviour="glyph":

"glyph (content) show a character by looking up reference"

Wouldn't this function need a URI for looking up the reference? Or if the content is the URI, I think the param name is a bit misleading.

(from Martin Holmes)

Spelling of "visualisations"

In the regular Guidelines, we've settled on -ize, but the word "visualisations" appears in the Simple ODD. If the same standards are intended to apply, this should be "visualizations".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.