[sword-devel] OSIS Glosses?
DM Smith
dmsmith at crosswire.org
Fri Dec 12 06:43:55 MST 2014
> On Dec 12, 2014, at 8:26 AM, Peter Von Kaehne <refdoc at gmx.net> wrote:
>
> Gesendet: Freitag, 12. Dezember 2014 um 13:16 Uhr
> Von: "Troy A. Griffitts" <scribe at crosswire.org>
>
>> Not sure, but I thought we used optional prefixes to specify the kind of gloss if there are multiple, e.g., > gloss="en_US:18 wheeler en_UK:articulated lorry"
>
> Should there be an option to escape colons?
IMHO:
Yes.
The definition of gloss in the schema is xs:string, not osisGenRegex.
The former places no semantic on the content an allows for an empty string.
If gloss should have a semantic, then it should be changed in the OSIS spec.
The latter is used by lemma and morph and is specified as:
((((\p{L}|\p{N}|_)+)(\.(\p{L}|\p{N}|_))*:)?([^:\s])+)
which basically is work:value.
If I read this right it does not allow for : to be escaped. I know we allow lemma=“x:a y:b” but I don’t see that this allows for the pattern to be repeated, separated by spaces.
The pattern would need to change ([^:\s])+ to (\\:|[^:\s])+ [ not tested ]
In His Service,
DM
More information about the sword-devel
mailing list