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, Troy "scribe...@gmail.com" <scr...@crosswire.org> wrote: >Well, what did you think the 'convertToOSIS' method would do to a >VerseKey? :) > >Not sure the binding language you're using's syntax, but try something >like $scope->getRangeText(); > > > >Peter von Kaehne <ref...@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: >> >>Sword::LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("fa"); >>my $scope= new Sword::VerseKey; >>$scope->setText("Matt.1.1"); >> >>print Sword::VerseKey::convertToOSIS("Matt.1.1", $scope); >> >>What I get currently is: >> >><reference osisRef="Matt.1.1">Matt.1.1</reference> >> >>What am I doing wrong? >> >>Thanks! >> >>Peter >> >> >>_______________________________________________ >>sword-devel mailing list: sword-devel@crosswire.org >>http://www.crosswire.org/mailman/listinfo/sword-devel >>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@crosswire.org >http://www.crosswire.org/mailman/listinfo/sword-devel >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@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page