Skip to content

Commit

Permalink
update XPath to DWDS phonetic transcriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nolda committed Nov 22, 2024
1 parent afa7716 commit 5a51104
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions share/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-11-22:

* update XPath to DWDS phonetic transcriptions

2024-10-30:

* properly segment adjective lemmas with final schwa
Expand Down
6 changes: 3 additions & 3 deletions share/dwds2dwdsmor.xsl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- dwds2dwdsmor.xsl -->
<!-- Version 15.1 -->
<!-- Andreas Nolda 2024-10-14 -->
<!-- Version 16.0 -->
<!-- Andreas Nolda 2024-11-22 -->

<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Expand Down Expand Up @@ -189,7 +189,7 @@
</xsl:variable>
<!-- sequence of phonetic transcriptions (if any) -->
<xsl:variable name="pronunciations"
select="distinct-values(dwds:Aussprache[not(@class='invisible')]/@IPA)"/>
select="distinct-values(dwds:Aussprache[not(@class='invisible')]/dwds:IPA[string-length(normalize-space(.))&gt;0]/normalize-space(.))"/>
<!-- ignore idioms and non-standard spellings -->
<xsl:for-each select="dwds:Schreibung[count(tokenize(normalize-space(.),'&#x20;'))=1]
[not(@Typ)]">
Expand Down

0 comments on commit 5a51104

Please sign in to comment.