Skip to content

Commit

Permalink
release: removed fragile counter in HTML output
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and Didier Willis committed Sep 26, 2021
1 parent c5ff89d commit 7949681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions docs/dict-sd.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
<fieldset class="boxed"><legend>Edition</legend>
<p>Edition 2.0</p><p>Lexicon 1.0</p><p>3092 headwords
(277 deduced,
237 normalized).</p><p>24 main headwords
(3 deduced,
0 normalized).</p><p>4346 word forms
237 normalized).</p><p>4346 word forms
(2901 unique,
277 deduced,
232 normalized).</p>
Expand Down
5 changes: 3 additions & 2 deletions scripts/tei2html/tei-header.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@
(<xsl:value-of select="count(//entry[descendant::form[1]/@type = 'deduced' or descendant::form[1]/form[1]/@type = 'deduced'])"/> deduced,
<xsl:value-of select="count(//entry[descendant::form[1]/@type = 'normalized' or descendant::form[1]/form[1]/@type = 'normalized'])"/> normalized).</p>
<!-- Omikhleia fix: same but withount counting the cross references -->
<p><xsl:value-of select="count(//entry[@type != 'xref'])"/> main headwords
<!-- REMOVED, seems too fragile -->
<!-- <p><xsl:value-of select="count(//entry[@type != 'xref'])"/> main headwords
(<xsl:value-of select="count(//entry[@type != 'xref'][descendant::form[1]/@type = 'deduced' or descendant::form[1]/form[1]/@type = 'deduced'])"/> deduced,
<xsl:value-of select="count(//entry[@type != 'xref'][descendant::form[1]/@type = 'normalized' or descendant::form[1]/form[1]/@type = 'normalized'])"/> normalized).</p>
<xsl:value-of select="count(//entry[@type != 'xref'][descendant::form[1]/@type = 'normalized' or descendant::form[1]/form[1]/@type = 'normalized'])"/> normalized).</p> -->
<!-- Omikhleia fix: Earlier word form counters where somehow broken (not counting re tags, failing to properly count
alternatives at the top form level...)
Fixed by using a Muenchian method (http://www.jenitennison.com/xslt/grouping/muenchian.html)
Expand Down

0 comments on commit 7949681

Please sign in to comment.