This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import module namespace functx = "http://www.functx.com"; | |
| (: NOTE -- functx uses 1 to 7 to represent MON-SUN, whereas eXist-db's datetime module used 1 to 7 to represent SUN-SAT :) | |
| declare variable $local:MON := 1; | |
| declare variable $local:TUES := 2; | |
| declare variable $local:WEDS := 3; | |
| declare variable $local:THURS := 4; | |
| declare variable $local:FRI := 5; | |
| declare variable $local:SAT := 6; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xquery version "3.1"; | |
| (:~ | |
| : Find possible OCR errors in a text by checking for patterns that an OCR | |
| : process is known to misread, e.g., "day" misread as "clay", or "France" | |
| : misread as "Prance." If the OCR engine just misread some instances of these | |
| : words but got other instances correct, then this query will highlight | |
| : candidates for correction. | |
| : | |
| : The query lets you configure a source text and define pattern sets to be used. |
OlderNewer