It appears that the offending regex is on line 351 and reads
/^\\io(\d+)\b\s*(.*)/

If the \d+ were changed to \d* it should catch the case of \io without
the value. But it appears that would break the following logic where
the value of $1 is compared against the variable $ollevel. If $1 is an
empty string then comparison to $ollevel would presumably never
produce proper results.

Rather than putz with that logic following, is there any way you or
one of the other people could modify that for that case when $1 is an
empty string and should, by default, be equal to "1"?

--Greg

On Tue, Jul 10, 2012 at 9:12 AM, Greg Hellings <[email protected]> wrote:
> Is it simple enough to add handling for \io to be turned into \io1?
> Remember, Perl is to me a dark art!
>
> --Greg
>
> On Tue, Jul 10, 2012 at 2:41 AM, Peter von Kaehne <[email protected]> wrote:
>> Could be. Taqgs are getting added as they appear in texts we encounter. Both 
>> UBS and SIL teams have an odd habit of using \io2 as their first tag, never 
>> \io1 or \io.
>>
>> Peter
>>
>> -------- Original-Nachricht --------
>>> Datum: Mon, 9 Jul 2012 23:47:30 -0500
>>> Von: Greg Hellings <[email protected]>
>>> An: "SWORD Developers\' Collaboration Forum" <[email protected]>
>>> Betreff: [sword-devel] usfm2osis.pl - missing tag handling
>>
>>> According to the USFM reference "\io = \io1". In the module I'm
>>> working on right now the \io was not recognized at all and passed
>>> through with no love.
>>>
>>> --Greg
>>>
>>> _______________________________________________
>>> sword-devel mailing list: [email protected]
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>> Instructions to unsubscribe/change your settings at above page
>>
>> _______________________________________________
>> sword-devel mailing list: [email protected]
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page

_______________________________________________
sword-devel mailing list: [email protected]
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to