[osis-core] morph regex error

Chris Little osis-core@bibletechnologieswg.org
Wed, 03 Dec 2003 13:05:18 -0600


Troy A. Griffitts wrote:
> Hey guys.  It seems we may have messed up the regex on the morph 
> attribute of <w>.
> 
> Here my line:
> 
> <w xml:lang="grc" lemma="strongs:15" morph="robinsons:V-PAM-2P" 
> xlit="la:agaqopoieite">GREEK UTF8 TEXT HERE</w>
> 
> 
> 
> Here's the MSV error output:
> 
> Error at line:279, column:117 of file:///space/home/scribe/msv/./lexcounts
>   attribute "morph" has a bad value: the value does not match the 
> regular expression 
> "((((\p{L}|\p{N}|_)+)(\.(\p{L}|\p{N}|_))*:)((((\p{L})|(\p{N})|_)+)(((\.(\p{L}|\p{N}|_)+)*))?))". 

The value you give has never been valid.  Hyphens have never been 
allowed in morph or lemma attributes (nor have spaces and various other 
characters).  I think the decision we made before releasing 2.0 was to 
force folks to transcode these as '_'.

Does that work for you?

--Chris