<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Agreed. Canonical text should not be dropped. What does the OSIS manual say the default value for the canonical attribute on the reference element when it is not specified? The manual states that attribute is not inheritable.<div class=""><br class=""></div><div class="">I’ll be looking into it to make it work regardless of what the manual says. I’ll report back what I needed to do to make it work.<br class=""><div class=""><br class=""></div><div class="">DM</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 30, 2015, at 2:15 AM, John Austin <<a href="mailto:gpl.programs.info@gmail.com" class="">gpl.programs.info@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Martin is right that the real problem is canonical text is inadvertently being dropped. This should not be allowed. The various filters should pass all text nodes unless the text node is part of a non-canonical ancestor targeted by the filter (such as a footnote, a secondary reading, etc).</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">It sounds like in JSword the issue is an unhandled exception, and if so, the needed solution is of course an exception handler that passes text nodes rather than dropping if an unknown or unhandled tag or attribute is encountered. Text nodes are canonical unless they reside in an ancestor element which is specifically not canonical.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">The secondary solution is to handle particular tags (in this case <reference>) but this is optional according to the front end. In the case of these <reference> tags, they are canonical text nodes which are referenced by translators to one or more accompanying localized glossary or dictionary modules. Most of the time, there is only one reference, but sometimes there are more than one (if there are separate OT and NT glossaries, or the Bible was originally published in separate parts such as Gospels and Pentateuch, each having their own glossary/dictionary/concordance etc). So if a front-end can only handle one target reference, then handling the first one is a good solution. But if a front end can handle multiple targets, then each can be presented, as the designer wishes.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">-John</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On 11/28/2015 11:08 PM, Martin Denham wrote:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">The main issue is not related to the osisRef attribute but to the<br class="">content of the reference tag - 'muqaddas' - being excluded by<br class="">getCanonicalText() and AB code. The problem here is quite significant<br class="">because it would appear to users as though some words had been removed<br class="">from the Bible. I wanted to check that by including reference tag<br class="">content I should not be breaking anything else. In the normal AB Bible<br class="">view the ref tag content is properly displayed but in certain secondary<br class="">views where simple text is required e.g. when messaging, references are<br class="">currently ignored.<br class=""><br class="">There may be another issue with the above example, because of the<br class="">complexity of the osisRef attribute but that is not John's primary<br class="">concern. Although I believe John has raised an issue regarding multiple<br class="">refs in an osisRef before. iirc AB just uses the first ref, which also<br class="">isn't perfect.<br class=""><br class="">Martin<br class=""><br class="">On 27 November 2015 at 23:40, DM Smith <<a href="mailto:dmsmith@crosswire.org" class="">dmsmith@crosswire.org</a><br class=""><<a href="mailto:dmsmith@crosswire.org" class="">mailto:dmsmith@crosswire.org</a>>> wrote:<br class=""><br class=""> I’d have to look into this carefully to see why it is being dropped.<br class=""> I think the xslt expects references to be in a note. From memory, a<br class=""> reference that is not within a note is treated as inline text.<br class=""><br class=""> Also there is no support for non-biblical references at this time.<br class=""> It should recognize the work part of the reference, what’s before<br class=""> the colon, as the module name. We’ve never supported types of x-<br class=""> that were not generated by JSword. If the type of the work needs to<br class=""> be communicated, it probably should be something like<br class=""> osisRef=“Dictionary.UZDOTL:….” In the absence of that we should look<br class=""> to see if there is a book with those Initials and determine the type<br class=""> from the MetaData.<br class=""><br class=""> In this example the osisRef is to 2 different works. Not sure how<br class=""> that should work. Two lookups?<br class=""><br class=""> The other thing is that we have a toggle for references that merely<br class=""> toggles whether the reference is a link. Not sure how a reference<br class=""> can be to two different things.<br class=""><br class=""> My guess as to what is happening: It tries to parse the reference as<br class=""> a Bible reference, gets an exception and doesn’t show anything.<br class=""><br class=""> DM<br class=""><br class=""><blockquote type="cite" class=""> On Nov 27, 2015, at 4:31 PM, Martin Denham <<a href="mailto:mjdenham@gmail.com" class="">mjdenham@gmail.com</a><br class=""> <<a href="mailto:mjdenham@gmail.com" class="">mailto:mjdenham@gmail.com</a>>> wrote:<br class=""><br class=""> John has raised this issue<br class=""> <<a href="https://github.com/mjdenham/and-bible/issues/46" class="">https://github.com/mjdenham/and-bible/issues/46</a>> regarding the<br class=""> content of reference tags being removed in And Bible under certain<br class=""> circumstances and this has highlighted a possible flaw both in<br class=""> JSword and And Bible code.<br class=""><br class=""> The full details are in this issue<br class=""> <<a href="https://github.com/mjdenham/and-bible/issues/46" class="">https://github.com/mjdenham/and-bible/issues/46</a>> but are<br class=""> summarised below. I am not an OSIS expert so really would just<br class=""> like confirmation of my understanding.<br class=""><br class=""> In the following extract from UZVL the reference content<br class=""> 'muqaddas' is being excluded both by JSword's<br class=""> OSISUtil.getCanonicalText and by certain And Bible code and I wish<br class=""> to confirm this is a bug:<br class=""><br class=""> <verse sID="Gen.2.3" osisID="Gen.2.3"/>Xudo yettinchi kuni barcha<br class=""> yaratish ishlaridan dam olgani uchun, bu kunni muborak qilib,<br class=""> <reference<br class=""> type="x-glossary" osisRef="UZDOTL:MUQADDAS<br class=""> UZDNTL:MUQADDAS">muqaddas</reference>, deb boshqa kunlardan<br class=""> ajratdi.</p><verse eID="Gen.2.3"/><br class=""><br class=""><br class=""> My current understanding is that a reference may or may not<br class=""> contain canonical text. If a reference is a child of a note<br class=""> element then it will not be canonical, but if it has no specific<br class=""> parent then it will be canonical. Is that correct?<br class=""><br class=""> Martin<br class=""> _______________________________________________<br class=""> jsword-devel mailing list<br class=""> <a href="mailto:jsword-devel@crosswire.org" class="">jsword-devel@crosswire.org</a><span class="Apple-converted-space"> </span><<a href="mailto:jsword-devel@crosswire.org" class="">mailto:jsword-devel@crosswire.org</a>><br class=""> <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" class="">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br class=""></blockquote><br class=""><br class=""> _______________________________________________<br class=""> jsword-devel mailing list<br class=""> <a href="mailto:jsword-devel@crosswire.org" class="">jsword-devel@crosswire.org</a><span class="Apple-converted-space"> </span><<a href="mailto:jsword-devel@crosswire.org" class="">mailto:jsword-devel@crosswire.org</a>><br class=""> <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" class="">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br class=""><br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">jsword-devel mailing list<br class=""><a href="mailto:jsword-devel@crosswire.org" class="">jsword-devel@crosswire.org</a><br class="">http://www.crosswire.org/mailman/listinfo/jsword-devel<br class=""><br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">jsword-devel mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="mailto:jsword-devel@crosswire.org" class="">jsword-devel@crosswire.org</a></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" class="">http://www.crosswire.org/mailman/listinfo/jsword-devel</a></span></div></blockquote></div><br class=""></div></div></body></html>