[osis-core] Long, ugly but it works!

Patrick Durusau osis-core@bibletechnologieswg.org
Mon, 03 Jun 2002 15:51:48 -0400


Troy,

Troy A. Griffitts wrote:

>> <?xml version="1.0" encoding="UTF-8"?>
>> <text xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
>> xsi:noNamespaceSchemaLocation="C:\downloads\osis-current\regex\regex2.xsd"> 
>>
>>   <body>
>>         <p>Matt.1.1-Matt.1.3</p>
>
>
> This states: the text starting at the opening tag of mat.1.1 or 
> mat.1.1a (or whatever is the answer to my last email), until the 
> closing tag of the last chain in mat.1.3.*, right?

Yes, that expression should address whatever has ID Matt.1.1 to 
Matt.1.3. Whether it returns that as a fragment, starts you at Matt.1.1 
and highlights to Matt.1.3, is application dependent. Really dumb 
software might just take you to the start and ignore the range.

>
>>         <p>Matt.1.1@char:124+130(logos)-@135+145(word)</p>
>
>
> What is the +130, again?  A range that is acceptable to deviate until 
> you find 'logos'? (same question on '+145').

These are all bogus values to just test the operation of the regex.

Syntax of char grain is: char: offset length? content?

>
>
>>         <p>Matt.1.2@char:123+134(logos)</p>
>
>
> This is a point?  Or the range of the word 'logos', or what?

Note this is a bogus example.

>
>
>>         <p>Matt.1.5@char:123+134(logos)-Matt.1.6</p>
>>         <p>Matt.1.5@char:123+134(logos)-Matt.1.6@char:234+236(Uriah)</p>
>
>
>
>>         <p>Matt.1.5-Matt.1.6@char:120+124(now)-@char:150+135(then)</p>
>
>
> ok, you're really lost me on this last one.


Just to show a range using grain syntax. Steve seemed to think people 
would want that sort of function. I can see it but not sure how often. 
(If we were talking about original lanuages, etc., then I would, perhaps 
this is building for the future texts we will encounter.)

>
>
>>         <p>Matt.1.5@x-xpath:\text\div\p\line(Asaph)</p>
>
>
> Are we changing xpath syntax to '\' instead of '/'?
> Does this state: any node of Matt.1.5, or chain node, look for a node 
> named 'text', then under that, a node named 'div', then 'p', then all 
> 'line' nodes and be sure they all start with Asaph?  I don't assume 
> you mean this, but that is what I would assume this xpath means.

Sorry, not good XPath syntax. The alternative grain makes you 
responsible for adhereing to whatever syntax is proper in the system you 
are using. Would find (if reworked into valid XPath syntax, the first 
occurrence of Asaph in a line, inside p, inside div, inside text.


Should have another full schema out tomorrow. Sorry about the lack of 
work over the weekend. Carol had the weekend off and both my daughter 
and mother-in-law were gone so we walked to the town square to the 
farmer's market, saw an old car exhibition, etc.

Patrick

>
>
>>         <p>Matt.1.5@x-xpath:\text\div\p\line(Asaph)-Matt.1.6</p>
>>         
>> <p>Matt.1.5@x-xpath:\text\div\p\line(Uriah)-Matt.1.6@x-xpath:\text\div\p\line(Asaph)</p> 
>>
>>   </body>
>> </text>
>>
>
> Thanks for all your hard work guys.  I know it's a time sacrifice and 
> you are greatly appreciated.
>
>     -Troy.
>
>

-- 
Patrick Durusau
Director of Research and Development
Society of Biblical Literature
pdurusau@emory.edu