Skip to content

Commit

Permalink
Modified tests to include normalized whitespace for gloss
Browse files Browse the repository at this point in the history
  • Loading branch information
GusRiva committed Dec 12, 2024
1 parent ad8fecd commit 6a1d899
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 34 deletions.
6 changes: 2 additions & 4 deletions Test/expected-results/test.rng
Original file line number Diff line number Diff line change
Expand Up @@ -4413,8 +4413,7 @@ Suggested values include: 1] spoken (spoken); 2] thought (thought); 3] written (
Suggested values include: 1] deprecationInfo (deprecation information)</a:documentation>
<choice>
<value>deprecationInfo</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(deprecation
information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.</a:documentation>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.</a:documentation>
<data type="token">
<param name="pattern">[^\p{C}\p{Z}]+</param>
</data>
Expand Down Expand Up @@ -8650,8 +8649,7 @@ Suggested values include: 1] initial; 2] final</a:documentation>
</define>
<define name="triangle">
<element name="triangle">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(underspecified embedding tree, so called because of its
characteristic shape when drawn) provides for an underspecified <code xmlns="http://www.w3.org/1999/xhtml" xmlns:rng="http://relaxng.org/ns/structure/1.0">&lt;eTree&gt;</code>, that is, an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:rng="http://relaxng.org/ns/structure/1.0">&lt;eTree&gt;</code> with information left out. [20.3. Another Tree Notation]</a:documentation>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(underspecified embedding tree, so called because of its characteristic shape when drawn) provides for an underspecified <code xmlns="http://www.w3.org/1999/xhtml" xmlns:rng="http://relaxng.org/ns/structure/1.0">&lt;eTree&gt;</code>, that is, an <code xmlns="http://www.w3.org/1999/xhtml" xmlns:rng="http://relaxng.org/ns/structure/1.0">&lt;eTree&gt;</code> with information left out. [20.3. Another Tree Notation]</a:documentation>
<group>
<optional>
<ref name="label"/>
Expand Down
3 changes: 1 addition & 2 deletions Test/expected-results/test15.odd.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2473,8 +2473,7 @@ desc =
## Suggested values include: 1] deprecationInfo (deprecation information)
attribute type {

## (deprecation
## information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
## (deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
"deprecationInfo"
| xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?,
Expand Down
12 changes: 4 additions & 8 deletions Test/expected-results/test21.odd.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2839,8 +2839,7 @@ desc =
## Suggested values include: 1] deprecationInfo (deprecation information)
attribute type {

## (deprecation
## information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
## (deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
"deprecationInfo"
| xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?,
Expand Down Expand Up @@ -6336,8 +6335,7 @@ geoDecl =
## (Système Géodésique Mondial) couple de nombres destinés à être interprétés comme la latitude suivie de la longitude selon le Système Géodésique Mondial.
"WGS84"
|
## (Système de Référence du Réseau Militaire,
## (MGRS).) les valeurs fournies sont des codes objet d'entités geospatiales, fondées sur les coordonnées de la grille de projection transversale universelle de Mercator, (UTM).
## (Système de Référence du Réseau Militaire, (MGRS).) les valeurs fournies sont des codes objet d'entités geospatiales, fondées sur les coordonnées de la grille de projection transversale universelle de Mercator, (UTM).
"MGRS"
|
## (Système de coordonnées de Grande-Bretagne (OSGB) ) la valeur fournie est à interpréter selon le système "British national grid reference".
Expand Down Expand Up @@ -9427,15 +9425,13 @@ titlePart =
## (sous-titre de l’ouvrage.) sous-titre de l'oeuvre.
"sub"
|
## (titre alternatif de
## l’ouvrage.) autre titre de l'oeuvre.
## (titre alternatif de l’ouvrage.) autre titre de l'oeuvre.
"alt"
|
## (short) forme abrégée du titre.
"short"
|
## (description paraphrastique de
## l’ouvrage.) texte qui paraphrase l'oeuvre.
## (description paraphrastique de l’ouvrage.) texte qui paraphrase l'oeuvre.
"desc"
| xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?,
Expand Down
3 changes: 1 addition & 2 deletions Test/expected-results/test30.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2731,8 +2731,7 @@ Tdesc =
## Suggested values include: 1] deprecationInfo (deprecation information)
attribute type {

## (deprecation
## information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
## (deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
"deprecationInfo"
| xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?,
Expand Down
3 changes: 1 addition & 2 deletions Test/expected-results/test33.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2456,8 +2456,7 @@ tei_desc =
## Suggested values include: 1] deprecationInfo (deprecation information)
attribute type {

## (deprecation
## information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
## (deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
"deprecationInfo"
| xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?,
Expand Down
4 changes: 2 additions & 2 deletions Test/expected-results/test34.combined.json
Original file line number Diff line number Diff line change
Expand Up @@ -3231,9 +3231,9 @@
{ "ident" : "deprecationInfo",
"desc" :
[ "<desc xmlns=\"http:\/\/www.tei-c.org\/ns\/1.0\" versionDate=\"2018-09-14\" xml:lang=\"en\">This element\n describes why or how its parent element is being deprecated,\n typically including recommendations for alternate\n encoding.<\/desc>" ],
"shortDesc" : "(deprecation\n information) This element\n describes why or how its parent element is being deprecated,\n typically including recommendations for alternate\n encoding.",
"shortDesc" : "(deprecation information) This element\n describes why or how its parent element is being deprecated,\n typically including recommendations for alternate\n encoding.",
"gloss" :
[ "<gloss xmlns=\"http:\/\/www.tei-c.org\/ns\/1.0\" versionDate=\"2018-09-14\" xml:lang=\"en\">deprecation\n information<\/gloss>" ],
[ "<gloss xmlns=\"http:\/\/www.tei-c.org\/ns\/1.0\" versionDate=\"2018-09-14\" xml:lang=\"en\">deprecation information<\/gloss>" ],
"altIdent" :
[ ] } ] } } ],
"content" :
Expand Down
3 changes: 1 addition & 2 deletions Test/expected-results/test34.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2461,8 +2461,7 @@ tei_desc =
## Suggested values include: 1] deprecationInfo (deprecation information)
attribute type {

## (deprecation
## information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
## (deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
"deprecationInfo"
| xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?,
Expand Down
3 changes: 1 addition & 2 deletions Test/expected-results/test35.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2456,8 +2456,7 @@ tei_desc =
## Suggested values include: 1] deprecationInfo (deprecation information)
attribute type {

## (deprecation
## information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
## (deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.
"deprecationInfo"
| xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?,
Expand Down
3 changes: 1 addition & 2 deletions Test/expected-results/testdrama.compiled.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8748,8 +8748,7 @@ Ce ne seroyt que bon que nous rendissiez noz cloches...</egXML>
<attDef ident="type" mode="change">
<valList type="semi">
<valItem ident="deprecationInfo">
<gloss versionDate="2018-09-14" xml:lang="en">deprecation
information</gloss>
<gloss versionDate="2018-09-14" xml:lang="en">deprecation information</gloss>
<desc versionDate="2018-09-14" xml:lang="en">This element
describes why or how its parent element is being deprecated,
typically including recommendations for alternate
Expand Down
3 changes: 1 addition & 2 deletions Test2/expected-results/testAttValQuant.rng
Original file line number Diff line number Diff line change
Expand Up @@ -3834,8 +3834,7 @@ Suggested values include: 1] spoken (spoken); 2] thought (thought); 3] written (
Suggested values include: 1] deprecationInfo (deprecation information)</a:documentation>
<choice>
<value>deprecationInfo</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(deprecation
information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.</a:documentation>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.</a:documentation>
<data type="token">
<param name="pattern">[^\p{C}\p{Z}]+</param>
</data>
Expand Down
3 changes: 1 addition & 2 deletions Test2/expected-results/testPure1.rng
Original file line number Diff line number Diff line change
Expand Up @@ -4579,8 +4579,7 @@ Suggested values include: 1] spoken (spoken); 2] thought (thought); 3] written (
Suggested values include: 1] deprecationInfo (deprecation information)</a:documentation>
<choice>
<value>deprecationInfo</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(deprecation
information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.</a:documentation>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(deprecation information) This element describes why or how its parent element is being deprecated, typically including recommendations for alternate encoding.</a:documentation>
<data type="token">
<param name="pattern">[^\p{C}\p{Z}]+</param>
</data>
Expand Down
3 changes: 1 addition & 2 deletions Test2/expected-results/testSpecificationDescription1.rng
Original file line number Diff line number Diff line change
Expand Up @@ -7754,8 +7754,7 @@ Suggested values include: 1] initial; 2] final</a:documentation>
</define>
<define name="triangle">
<element name="triangle">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(underspecified embedding tree, so called because of its
characteristic shape when drawn) provides for an underspecified eTree, that is, an eTree with information left out. [19.3. Another Tree Notation]</a:documentation>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(underspecified embedding tree, so called because of its characteristic shape when drawn) provides for an underspecified eTree, that is, an eTree with information left out. [19.3. Another Tree Notation]</a:documentation>
<group>

<optional>
Expand Down
3 changes: 1 addition & 2 deletions source/p5subset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16810,8 +16810,7 @@ Ce ne seroyt que bon que nous rendissiez noz cloches...</egXML>
<attDef ident="type" mode="change">
<valList type="semi">
<valItem ident="deprecationInfo">
<gloss versionDate="2018-09-14" xml:lang="en">deprecation
information</gloss>
<gloss versionDate="2018-09-14" xml:lang="en">deprecation information</gloss>
<desc versionDate="2018-09-14" xml:lang="en">This element
describes why or how its parent element is being deprecated,
typically including recommendations for alternate
Expand Down

0 comments on commit 6a1d899

Please sign in to comment.