[sword-devel] OSIS links
DM Smith
dmsmith at crosswire.org
Wed Jan 19 05:06:18 MST 2011
On 01/19/2011 05:39 AM, Karl Kleinpaste wrote:
> Matthew Talbert<ransom1982 at gmail.com> writes:
>> Am I understanding this correctly that you have keys with spaces, and
>> you put in NBSP and that all works in Xiphos? I thought that neither
>> normal spaces nor NBSP would actually work.
> I don't know how he edited it, but the import file has plain spaces, and
> they work fine, e.g.:
>
> <item><reference osisRef="Shaw:Shaw/The Reformed Faith/Preface">Preface</item>
> <item><reference osisRef="Shaw:Shaw/The Reformed Faith/Essay">Introductory Essay</item>
>
> Interestingly, most of the closing</reference> tags were missing, but
> it still worked. I've just updated the import content to include the
> missing tags and re-generated the module; it is now version 1.1.
The problem with spaces in an osisRef is that a space is defined as the
separator between one reference and another.
E.g. osisRef="Rom.1.1 Rom.2.1-Rom.3.1"
A reference does not need to be singular. It can be a single reference,
a range or a list of these.
JSword splits on space as indicated in the OSIS spec. I don't know why
SWORD works. It shouldn't.
In Him,
DM
More information about the sword-devel
mailing list