[sword-devel] stripText -vs- ESV's quotation marks
Peter von Kaehne
refdoc at gmx.net
Wed Oct 12 14:54:39 MST 2016
Karl, can you put this onto the bug tracker? It sounds like the kind of thing I can fix, but the tracker is my reminder for that.
Thanks
Peter
Sent from my phone. Apologies for brevity and typos.On 12 Oct 2016 8:51 pm, Karl Kleinpaste <karl at kleinpaste.org> wrote:
>
> Got a bug report on Xiphos, that export out of ESV is losing quotations marks.
>
> Export as HTML does not lose them; export as plain text does. The difference is use of mod->stripText().
>
> ESV uses <q> around quotations. My test verse is Matt.7.1...
>>
>> <title subType="x-preverse" type="section">Judging Others</title><q marker="" who="Jesus"><note n="r" osisID="Matt.7.1!crossReference.r" osisRef="Matt.7.1" type="crossReference">For <reference osisRef="Matt.7.1-Matt.7.5">ver. 1-5</reference>, see <reference osisRef="Luke.6.37-Luke.6.38">Luke 6:37, 38</reference>, <reference osisRef="Luke.6.41-Luke.6.42">41, 42</reference>; [<reference osisRef="Rom.14.13">Rom. 14:13</reference>; <reference osisRef="1Cor.4.5">1 Cor. 4:5</reference>; <reference osisRef="Jas.5.9">James 5:9</reference>]</note><milestone marker="“" type="cQuote"/>Judge not, that you be not judged.</q>
>
> As typically rendered, this is...
>
> “Judge not, that you be not judged. But as extracted with stripText, it's just...
>>
>> Judge not, that you be not judged.
>
> ...which loses the opening quotation.
>
> It's not clear there's a resolution to this any less complicated than "handle <q> quotation marks first, then strip everything out."
More information about the sword-devel
mailing list