Skip to content

Commit

Permalink
Merged release branch for TEI P5 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi committed Feb 13, 2020
2 parents e7dc361 + 2ed7c48 commit ccd19b0
Show file tree
Hide file tree
Showing 182 changed files with 6,558 additions and 2,808 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ before_install:

script:
- docker run --rm -w /var/tei/P5 -it -v `pwd`:/var/tei -v $TRAVIS_BUILD_DIR/stylesheets/xml/tei/stylesheet:/usr/share/xml/tei/stylesheet -u $UID --entrypoint "make" teic/jenkins:dev clean validate test

notifications:
slack: tei-c:3IFCBSmTvNx3j1GUMDWS9Dom
853 changes: 853 additions & 0 deletions Documents/ODDintro/2020-version.xml

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion P5/Exemplars/tei_its.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<TEI n="Minimal with Internationalization" xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its"
<TEI n="TEI with W3C ITS for internationalization" xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its"
xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
<teiHeader>
<fileDesc>
Expand Down
40 changes: 32 additions & 8 deletions P5/Exemplars/tei_jtei.odd
Original file line number Diff line number Diff line change
Expand Up @@ -2165,10 +2165,14 @@
</constraintSpec>
<constraintSpec ident="jtei.sch-bibl-endpunctuation" scheme="schematron">
<constraint>
<sch:rule context="tei:back/tei:div[@type eq 'bibliography']//tei:bibl">
<sch:assert role="warning" test="ends-with(normalize-space(), '.')">
A bibliographic entry should end with a period.
</sch:assert>
<sch:rule context="tei:back/tei:div[@type eq 'bibliography']//tei:bibl" role="warning">
<sch:report test="descendant::node()[last()][
not(matches(normalize-space(), '(^|[^.?!:;,])\.$')) or
preceding-sibling::node()[1]/descendant-or-self::*[last()]
[matches(normalize-space(), '[.?!:;,]$')]
]">
A bibliographic entry should end with a single period.
</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
Expand Down Expand Up @@ -2540,10 +2544,14 @@
Otherwise, move it after the closing parenthesis.
</sch:report>
</sch:rule>
<sch:rule context="tei:note">
<sch:assert role="warning" test="matches(normalize-space(), '[.?!]$')">
A footnote should end with closing punctuation.
</sch:assert>
<sch:rule context="tei:note" role="warning">
<sch:report test="descendant::node()[last()][
not(matches(normalize-space(), '(^|[^.?!:;,])[.?!]$')) or
preceding-sibling::node()[1]/descendant-or-self::*[last()]
[matches(normalize-space(), '[.?!:;,]$')]
]">
A footnote should end a with a single closing punctuation character.
</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
Expand Down Expand Up @@ -3175,6 +3183,22 @@
</sch:rule>
</constraint>
</constraintSpec>
<constraintSpec ident="jtei.sch-nonbreakingspace" scheme="schematron">
<constraint>
<sch:rule role="warning" context="text()[not(ancestor::tei:eg|ancestor::eg:egXML|ancestor::tei:code|ancestor::tei:tag)]">
<sch:report test="matches(., '&#160;')" sqf:fix="nonbreakingspace.remove">
This text contains a non-breaking space character. Please consider changing this to a normal space character.
</sch:report>
<sqf:fix id="nonbreakingspace.remove">
<sqf:description>
<sqf:title>Normalize non-breaking space to normal space character.</sqf:title>
</sqf:description>
<!-- using XPath replace(), as sqf:stringReplace has problems matching literal character entities -->
<sqf:replace match="." select="replace(., '&#160;', '&#32;')"/>
</sqf:fix>
</sch:rule>
</constraint>
</constraintSpec>
<constraintSpec ident="jtei.sch-localLinkTarget" scheme="schematron">
<constraint>
<sch:rule context="@*[self::attribute(corresp)|self::attribute(target)|self::attribute(from)|self::attribute(to)|self::attribute(ref)|self::attribute(rendition)|self::attribute(resp)|self::attribute(source)][not(ancestor::eg:egXML)][some $i in tokenize(., '\s+') satisfies starts-with($i, '#')]">
Expand Down
2 changes: 1 addition & 1 deletion P5/Exemplars/tei_math.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<TEI n="Minimal with Math" xmlns="http://www.tei-c.org/ns/1.0"
<TEI n="TEI with MathML" xmlns="http://www.tei-c.org/ns/1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML">
<teiHeader>
<fileDesc>
Expand Down
2 changes: 1 addition & 1 deletion P5/Exemplars/tei_svg.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<TEI n="Minimal with SVG"
<TEI n="TEI with SVG"
xmlns="http://www.tei-c.org/ns/1.0"
xmlns:svg="http://www.w3.org/2000/svg">
<teiHeader>
Expand Down
2 changes: 1 addition & 1 deletion P5/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ html-web.stamp: check.stamp p5.xml Utilities/guidelines.xsl.model
"s+http://www.tei-c.org/release/xml/tei/stylesheet+${XSL}+; \
s+/usr/share/xml/tei/stylesheet+${XSL}+;" \
Utilities/guidelines.xsl.model > Utilities/guidelines.xsl
-if [ -n ${GOOGLEANALYTICS} ] ; then curl -sL http://www.tei-c.org/ | sed 's/content="text\/html"/content="text\/html; charset=utf-8"/' | xmllint --html --noent --dropdtd --xmlout - > Utilities/teic-index.xml 2>/dev/null;fi
-if [ -n ${GOOGLEANALYTICS} ] ; then curl -sL https://tei-c.org/ | sed 's/content="text\/html"/content="text\/html; charset=utf-8"/' | xmllint --html --noent --dropdtd --xmlout - > Utilities/teic-index.xml 2>/dev/null;fi
@# for each language, create a subdirectory and pre-populate it with CSS, source, and web navigation stuff
for i in $(ALLLANGUAGES) ;do \
mkdir -p Guidelines-web/$$i/html; \
Expand Down
2 changes: 1 addition & 1 deletion P5/ReleaseNotes/readme-3.2.0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the file COPYING.txt for details
</titleStmt>
<editionStmt>
<edition>
<date when="2016-12-15">Monday, 10 July 2017</date>
<date when="2017-07-10">Monday, 10 July 2017</date>
</edition>
</editionStmt>
<publicationStmt>
Expand Down
Loading

0 comments on commit ccd19b0

Please sign in to comment.