Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaRebecca committed Nov 6, 2023
2 parents 6522608 + 24e96b0 commit 3f73d02
Show file tree
Hide file tree
Showing 93 changed files with 22,922 additions and 42,999 deletions.
616 changes: 180 additions & 436 deletions 080_scripts_generic/080_01_ELAN2TEI/ELAN2TEI.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions 080_scripts_generic/080_01_ELAN2TEI/tokenizer/params.xsl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema"
<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0"
xml:id="params">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xtoks="http://acdh.oeaw.ac.at/xtoks"
<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xtoks="http://acdh.oeaw.ac.at/xtoks"
exclude-result-prefixes="#all"
version="2.0"
xml:base="postTokenization.xsl">
Expand Down
6 changes: 6 additions & 0 deletions 080_scripts_generic/080_01_ELAN2TEI/tokenizer/profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
<doc-attribute name="topic">
<expression>//tei:textClass/tei:catRef/@target</expression>
</doc-attribute>
<doc-attribute name="researcher">
<expression>//tei:recording//tei:persName/@ref</expression>
</doc-attribute>
<doc-attribute name="campaign">
<expression>//tei:recording/tei:p/tei:ref</expression>
</doc-attribute>
<doc-attribute name="geo">
<expression>//tei:settingDesc/tei:place</expression>
</doc-attribute>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema"
<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0"
exclude-result-prefixes="#all">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema"
<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0"
exclude-result-prefixes="#all">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema"
<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"
xmlns:xtoks="http://acdh.oeaw.ac.at/xtoks"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xtoks="http://acdh.oeaw.ac.at/xtoks"
version="2.0"
exclude-result-prefixes="#all">
<xsl:output method="text"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema"
<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"
xmlns:xtoks="http://acdh.oeaw.ac.at/xtoks"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xtoks="http://acdh.oeaw.ac.at/xtoks"
version="2.0"
exclude-result-prefixes="#all">
<xsl:include href="params.xsl"/>
Expand Down Expand Up @@ -79,6 +79,16 @@
name="topic"
select="string-join(//tei:textClass/tei:catRef/@target/normalize-space(), ' ')"/>
</xsl:template>
<xsl:template match="//tei:recording//tei:persName/@ref" mode="doc-attributes">
<xsl:attribute namespace="http://acdh.oeaw.ac.at/xtoks"
name="researcher"
select="string-join(//tei:recording//tei:persName/@ref/normalize-space(), ' ')"/>
</xsl:template>
<xsl:template match="//tei:recording/tei:p/tei:ref" mode="doc-attributes">
<xsl:attribute namespace="http://acdh.oeaw.ac.at/xtoks"
name="campaign"
select="string-join(//tei:recording/tei:p/tei:ref/normalize-space(), ' ')"/>
</xsl:template>
<xsl:template match="//tei:settingDesc/tei:place" mode="doc-attributes">
<xsl:attribute namespace="http://acdh.oeaw.ac.at/xtoks"
name="geo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@

<!-- Create the tokenizer wrapper stylesheet -->
<xsl:result-document href="{$output-path}/wrapper_toks.xsl" indent="yes">
<xsl:message select="$output-path"></xsl:message>
<xsl:element name="xsl:stylesheet" namespace="http://www.w3.org/1999/XSL/Transform">
<xsl:namespace name="xs">http://www.w3.org/2001/XMLSchema</xsl:namespace>
<xsl:namespace name="xd">http://www.oxygenxml.com/ns/doc/xsl</xsl:namespace>
Expand Down
7 changes: 5 additions & 2 deletions 082_scripts_xsl/postprocessTEICorpoOutput.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
</xsl:copy>
</xsl:template>
<xsl:template match="tei:spanGrp"/>
<xsl:template match="@who">
<xsl:template match="@xml:id[matches(.,'^\d')]">
<xsl:attribute name="{name(.)}" select="concat(substring(parent::*/local-name(.),1,1),.)"/>
</xsl:template>
<!-- <xsl:template match="@who">
<xsl:attribute name="who">WER-BIN-ICH</xsl:attribute>
</xsl:template>
</xsl:template> -->

</xsl:stylesheet>
Loading

0 comments on commit 3f73d02

Please sign in to comment.