[sword-devel] CzeCSP xref encoding error
DM Smith
dmsmith at crosswire.org
Thu Apr 10 08:39:12 MST 2014
On Apr 10, 2014, at 10:55 AM, Karl Kleinpaste <karl at kleinpaste.org> wrote:
> That said, other references seem still to be wrong, e.g. the good example previously mentioned has an xref target of "Gen 3,20" which is not quite proper either; getEntryAttributes() apparently decides this means Rom 7:20.
I'm currently looking at a similar problem in encoding a Spanish text. Trying to figure out how to get it to work.
In the following it is using Gn for Genesis. It also uses a ',' as a chapter verse separator.
<note n="o308" osisID="Rom.7.11!o308" osisRef="Rom.7.11" type="crossReference">Gn 3,20</note>
I'm not sure whether one of the other or both is the problem.
This is defined in the locale for cs, which is the proper locale ref for Czech. I'm finding GN in just a few of the locales.
Could that be part of the problem? Using the wrong locale or GN not being in the English/default?
Apparently that it comes up with Rom 7:20 because Rom 7:11 is the basis for the parsing of "Gn 3,20" and it is parsing the 20 as a verse belonging to the basis.
Here is an example of the problem I'm seeing:
I'm using the following to parse this:
LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("es");
string osisID = "Gen.1.1"; // The basis for the reference
VerseKey key = osisID.c_str();
string inRef = "Sal. 102:25; Isa. 40:21; Juan 1:1, 2; Heb. 1:10";
outRef = VerseKey::convertToOSIS(inRef.c_str(), &key);
The output is:
<note type='crossReference' osisID='Gen.1.1.xref.A' n='A'>
<reference osisRef="Isa.40.21">Sal. 102:25; Isa. 40:21</reference>;
<reference osisRef="Isa.40.2">Juan 1:1, 2</reference>;
<reference osisRef="Heb.1.10">Heb. 1:10</reference>
</note>
Seemingly it skips Sal. 102:25; and gets Isa. 40:20, which it then uses as the basis for the next reference, where it skips Juan 1:1 and takes 2 as part of Isa 40.
In both es.conf and es-utf8.conf we have the following:
SAL=Ps
JUAN=John
Don't know why it can't see Sal and Juan.
In Him,
DM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140410/5dd21ad1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140410/5dd21ad1/attachment-0001.p7s>
More information about the sword-devel
mailing list