|
127 | 127 | <xsl:call-template name="createFilters"/>
|
128 | 128 | <xsl:call-template name="createExcludes"/>
|
129 | 129 | <xsl:if test="$verboseReport = 'true'">
|
130 |
| - <xsl:call-template name="createNonDictionaryList"/> |
| 130 | +<!-- <xsl:call-template name="createNonDictionaryList"/>--> |
131 | 131 | <xsl:call-template name="createForeignWordList"/>
|
132 | 132 | </xsl:if>
|
133 | 133 | </div>
|
|
378 | 378 | </xsl:if>
|
379 | 379 | </xsl:template>
|
380 | 380 |
|
381 |
| - <xd:doc> |
| 381 | +<!-- <xd:doc> |
382 | 382 | <xd:desc>Template for creating the "Not in Dictionary" list. While a term's exclusion
|
383 | 383 | from the dictionary doesn't change the search results, this report is helpful for catching
|
384 | 384 | typos in your document collection. </xd:desc>
|
|
388 | 388 | <section>
|
389 | 389 | <h2>Words Not In Dictionary</h2>
|
390 | 390 |
|
391 |
| - <!--Only check stems that are words--> |
| 391 | + <!-\-Only check stems that are words-\-> |
392 | 392 | <xsl:variable name="stemsToCheck" select="$spans[not(matches(@ss-stem,'\d'))][not(hcmc:isForeign(.))]" as="element(span)*"/>
|
393 | 393 |
|
394 |
| - <!--Retrieve the outermost spans so we don't include the nested spans from hyphenated terms |
395 |
| - (we process those a bit differently) --> |
| 394 | + <!-\-Retrieve the outermost spans so we don't include the nested spans from hyphenated terms |
| 395 | + (we process those a bit differently) -\-> |
396 | 396 | <xsl:variable name="outermostStems" select="outermost($stemsToCheck)" as="element(span)*"/>
|
397 | 397 |
|
398 | 398 | <xsl:variable name="wordsNotInDictionaryMap" as="map(xs:string, element(span)*)">
|
399 | 399 | <xsl:map>
|
400 |
| - <!--Group by whether or not it has descendant spans--> |
| 400 | + <!-\-Group by whether or not it has descendant spans-\-> |
401 | 401 | <xsl:for-each-group select="$outermostStems" group-by="exists(child::span[@ss-stem])">
|
402 | 402 | <xsl:choose>
|
403 |
| - <!--If this thing has child stems, it's a hyphenated construct |
404 |
| - and so we check each child term individually--> |
| 403 | + <!-\-If this thing has child stems, it's a hyphenated construct |
| 404 | + and so we check each child term individually-\-> |
405 | 405 | <xsl:when test="current-grouping-key()">
|
406 |
| - <!--Now iterate through all of the hyphenated spans--> |
| 406 | + <!-\-Now iterate through all of the hyphenated spans-\-> |
407 | 407 | <xsl:for-each-group select="current-group()" group-by="string(.)">
|
408 |
| - <!--Stash the word--> |
| 408 | + <!-\-Stash the word-\-> |
409 | 409 | <xsl:variable name="term" select="current-grouping-key()"/>
|
410 |
| - <!--Stash the current context--> |
| 410 | + <!-\-Stash the current context-\-> |
411 | 411 | <xsl:variable name="hyphenatedSpan" select="current-group()[1]" as="element(span)"/>
|
412 | 412 |
|
413 |
| - <!--Not in dictionary spans--> |
| 413 | + <!-\-Not in dictionary spans-\-> |
414 | 414 | <xsl:variable name="words"
|
415 | 415 | select="for $s in $hyphenatedSpan/span[@ss-stem] return lower-case(string($s))"
|
416 | 416 | as="xs:string*"/>
|
|
428 | 428 | </xsl:for-each-group>
|
429 | 429 | </xsl:when>
|
430 | 430 | <xsl:otherwise>
|
431 |
| - <!--Group by string value (so basically just distinct values)--> |
| 431 | + <!-\-Group by string value (so basically just distinct values)-\-> |
432 | 432 | <xsl:for-each-group select="current-group()" group-by="hcmc:cleanWordForStemming(lower-case(string(.)))">
|
433 | 433 | <xsl:variable name="word" select="current-grouping-key()" as="xs:string"/>
|
434 | 434 | <xsl:if test="not(hcmc:isInDictionary($word))">
|
|
483 | 483 | </xsl:choose>
|
484 | 484 | </details>
|
485 | 485 | </section>
|
486 |
| - </xsl:template> |
| 486 | + </xsl:template>--> |
487 | 487 |
|
488 |
| - <xd:doc> |
| 488 | + <!-- <xd:doc> |
489 | 489 | <xd:desc><xd:ref name="hcmc:isInDictionary">hcmc:isInDictionary</xd:ref> checks
|
490 | 490 | whether or not a word is in the provided dictionary. This is basically just a wrapper
|
491 | 491 | around the key() function, but we take advantage of Saxon 10HE's memo-function capabilities
|
|
495 | 495 | <xsl:function name="hcmc:isInDictionary" new-each-time="no" as="xs:boolean">
|
496 | 496 | <xsl:param name="word" as="xs:string"/>
|
497 | 497 | <xsl:sequence select="exists(key('w', $word, $dictionaryFileXml))"/>
|
498 |
| - </xsl:function> |
| 498 | + </xsl:function>--> |
499 | 499 |
|
500 | 500 | <xd:doc>
|
501 | 501 | <xd:desc>Template to create a report of all "foreign" words in the collection:
|
|
0 commit comments