[sword-devel] What am I doing wrong - Sword API, Perl?
scribe at crosswire.org
Sat Jul 9 01:21:08 MST 2011
Ah, I think I understand better what you're trying to obtain.
Something to note is that OSIS doesn't restrict the text child of <reference> to a parsable representation of the osisRef attr. For example, this is perfectly valid and acceptable:
Matthew begins his gospel <reference osisRef="Matt.1.1">here<reference>.
So you won't find any SWORD code which enforces this; i.e., SWORD won't try to i12ize this text. You'll have to piece it together using the call I gave in the previous email as the text node.
Hope this helps,
"scribe777 at gmail.com" <scribe at crosswire.org> wrote:
>Well, what did you think the 'convertToOSIS' method would do to a
>Not sure the binding language you're using's syntax, but try something
>Peter von Kaehne <refdoc at gmx.net> wrote:
>>What I want is to take an OSIS ref - say Matt.1.1 - and create a long
>>reference in a target language other than English - say
>><reference osisRef="Matt.1.1">متا 1:1</reference>
>>What I am doing is:
>>my $scope= new Sword::VerseKey;
>>print Sword::VerseKey::convertToOSIS("Matt.1.1", $scope);
>>What I get currently is:
>>What am I doing wrong?
>>sword-devel mailing list: sword-devel at crosswire.org
>>Instructions to unsubscribe/change your settings at above page
>Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>sword-devel mailing list: sword-devel at crosswire.org
>Instructions to unsubscribe/change your settings at above page
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
More information about the sword-devel