<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Both are bad. See below.<div><br><div><div>On Apr 10, 2014, at 10:09 AM, Karl Kleinpaste <<a href="mailto:karl@kleinpaste.org">karl@kleinpaste.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<div bgcolor="#FFFFFF" text="#000000">
<font face="FreeSerif">I got a Xiphos crash report this morning from
someone using CzeCSP. The error is that there are xref encoding
glitches that Sword fails to parse, which cause Xiphos to crash
when trying to process them. Oops.<br>
<br>
The immediate glitch is fixed in Xiphos so as to avoid the crash.
The underlying module problem is that there are many xrefs which
have what I believe is an improper target.<br>
<br>
Good example:<br>
<note n="o308" osisID="Rom.7.11!o308" osisRef="Rom.7.11"
type="crossReference">Gn 3,20</note><br></font></div></blockquote>This should be: </div><div><note n="o308" osisID="Rom.7.11!o308" osisRef="Rom.7.11" type="crossReference"><reference osisRef="Gen.3.20">Gn 3,20</reference></note></div><div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><font face="FreeSerif">
<br>
Bad example:<br>
<note n="o305" osisID="Rom.7.8!o305" osisRef="Rom.7.8"
type="crossReference">v. 11</note><br></font></div></blockquote><div><br></div>I think this should parse if given the basis of the current verse Romans 7.8. (Not that it does.) IIRC, the parser had special code to recognize v as a prefix for a verse number, but it may have been for 'v11' or 'v 11'.</div><div><br></div><div>But it should be:</div><div><note n="o305" osisID="Rom.7.8!o305" osisRef="Rom.7.8" type="crossReference"><reference osisRef="Rom.7.11">v. 11</reference></note></div><div><br></div><div>On a different note, the n="o305" is not appropriate. OSIS defines n as the value that should be shown for the footnote marker. Some front ends do this. It will look ugly.</div><div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><font face="FreeSerif">
<br>
The xref target is not in BCV format. getEntryAttributes()
returns nothingness for "v. 11", and in Xiphos' older code that
eventually crawls down into a plain C interface to GTK, this
propagates as NULL.<br>
<br>
So as I said, the crash is fixed. But I believe the example above
is bad due to this target error. Am I correct?<br></font></div></blockquote><div><br></div>IMHO: Yes it is bad.</div><div><br></div><div>-- DM</div><div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><font face="FreeSerif">
<br>
$ mod2imp CzeCSP | grep '>v\.' | wc<br>
2434 117012 1539356<br>
<br>
</font>
</div>
_______________________________________________<br>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page</blockquote></div><br></div></body></html>