RefTagger misses everything after a hyphen

I have only just installed RefTagger on my site, but am finding that a large number of my references only have the first verse in the pop-up box when I have used a hyphen. E.g. Gen. 1:1-3; or Gen. 1:18-2:2. I understand RefTagger is supposed to take account of hyphens, but I can't find anywhere telling me how to diagnose and correct it when it fails to do so. Your help would be much appreciated.
Comments
-
Les Sherlock said:
but I can't find anywhere telling me how to diagnose and correct it when it fails to do so
The most frequent cause is the use of an m-dash rather than a hyphen; if that's not it, I'd next try removing any unnecessary spaces.
Orthodox Bishop Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."; Orthodox proverb: "We know where the Church is, we do not know where it is not."
0 -
Hi Les,
RefTagger should correctly account for hyphens (and en dash and em dash). The most common cause of this problem is separating the reference into 2 separate HTML elements, for example:
<span>Gen 1:1</span><span>-3</span>
In order for RefTagger to correctly pick it up you need to have the whole reference in the same element.
If this doesn't solve your problem, please post a link to your site so I can take a look & try to figure out what the problem is.
Thanks,
Bryan
0 -
Hello Bryan,
Thanks for your reply (also thanks to MJ Smith for your reply too). One page on my site with several examples of the problem can be found at http://www.inthebeginning.org.uk/Healing.html (although it can be found on most of the pages using Bible references that can be accessed from the 'Christianity' section http://www.inthebeginning.org.uk/Link%20to%20Christianity%20section.html )
You will see if you scroll down the page on healing that I have some yellow boxes with explanatory notes. One example of the problem is in the first box you come to, and a different version is in the third box. As far as I can tell the references are in the same element and using the standard hyphen. I'm sure it's something silly I'm doing, but my 'silliness' is preventing me from seeing what it is!
Many thanks,
Les
0 -
Les,
There is a wbr element inserted between the two references that breaks the text into separate elements in the page.
<span class="Note-C">* see also Hebrews 8:7-<wbr></wbr>10:25</span>
The wbr element tells the browser that it is OK to break the word at that point if it needs to wrap to a new line. It is often inserted by content editors (it looks like you're using Serif WebPlus X4). Unfortunately I'm not familiar with that program, so I can't tell you how to remove it, but you will need to ensure that the wbr element does not appear at this point in the HTML that's output by your editor.
Thanks,
Bryan
0 -
or there's always the route (like i do) of tagging all of your scriptures with bibleref markup
<cite class="bibleref" title="my verse">my verse</cite>
<cite class="bibleref" title="Gen 1:1">Genesis 1:1</cite>Urban Scholar - http://urban-scholar.com
Christ-centered Hip-Hop - http://www.sphereofhiphop.com0 -
Thanks Bryan. As you realised, I created the site with Serif's WebPlus X4: I am not computer-literate enough to do it any other way. So I'll have to look into it and try to work out how to solve the problem.
Your help is much appreciated,
Les
0 -
Just to let you know that I've now solved the problem of RefTagger missing references when a hyphens is used, by replacing the normal hyphens with n-dashes. It appears that while Serif WebPlus X4 insists on inserting the offending charactor before normal hyphens, it does not do so with either n or m dashes.
Many thanks for all the help. I am highly delighted with RefTagger, and now I have it working properly it has made a big difference to my site.
0 -
Great! glad to hear you're finding it useful
0 -
Bryan, I have now run into another problem. After succeeding in getting RefTagger working on all my references, I decided to add the control panel. However, although it loads onto the site, whatever Bible version I choose is ignored and it goes straight back to the default version. I then tried the control panel on the demo page on the RefTagger web site and the same thing happens there. Is this a problem with my computer, or is it the programming for the panel?
If you want to check up on my site, the page the panel is on is http://www.inthebeginning.org.uk/wine.html although at the moment it is just placed randomly at the top of the page rather than where it will actually end up (I'll tidy it up once it is working properly)..
I did have another problem with some references not being recognised by RefTagger, which was where they were within headings. I presume WebPlus X4 is inserting something there as well. In the end I gave in and created a separate line below the headings for those references, which solved the problem.
Sorry to bother you again, but hopefully your answers will be of help to others who may run into the same problem.
Many thanks for your help.
Les
0 -
A bit more - on further investigation, I find that the control panel is changing the Bible version, but going through the references on the page of my web site I mentioned, it varies randomly through three or four different versions rather than remaining on the chosen one.
Also the reference to 1 Corinthians 11:25-28 does not load: this is just below the heading 'In the New Testament' fairly close to the top of the page.
Or is it just me on the road to insanity? Sorry - any suggestions would be appreciated.
0 -
Hi Les,
I'm not sure why the control panel is not working for you-- it seems to be working fine for me on your site. Which web browser are you using?
It is probably not tagging references in your headers because you have instructed refTagger not to search h1, h2, and h3 tags.
Logos.ReferenceTagging.lbsNoSearchTagNames = [ "h1", "h2", "h3" ];
You can remove any tags from that list that should not be excluded, or just remove the whole line to have reftagger search everything.
Bryan
0 -
Regarding the problem with 1 Cor 11:25-28, it looks like there is a line break in the middle of the reference that reftagger is not properly stripping when it tries to load the tooltip. I'll look into fixing that, as it's something that reftagger should probably be able to handle. In the meantime, it should start working for you if you remove that line break from the source.
Thanks,
Bryan
0 -
Hello Bryan,
Once again, many thanks for the reply. I'm sure the problems I am having are caused by Serif Software - I don't know anything about programming in HTML. I have removed the line you mention, but that doesn't seem to have made any difference. I've put a reference in the second heading on the page I mentioned, to try it out, and will leave it there to give you chance to look at it, if you have the time.
Very best wishes,
Les
0 -
Hello Bryan,
Sorry, I should have added this too. I am using Windows Vista and Windows Internet Explorer. The control panel now seems to be partly working, but when I select AMP, LEB, MESSAGE and NCV the versions that appear in the pop-up boxes are not those versions.
I see that whatever version is selected, the control box immediately goes back to ESV, and I see that version has different HTML code. Would making it the same as the others mean that the version selected would remain on display in the control box until it is changed?
I am now finding that 1 Cor 11:25-28 is working properly. I have no idea why one day it should be ok and another not! That's computers, I guess!
I do appreciate you taking the time to look into this for me. Very many thanks.
Best wishes,
Les
0 -
Perhaps the reference does not exist in the version you have set. For example, the LEB only contains the new testament, so if you hover over an OT reference, reftagger will fall back to a translation that contains it.
0 -
Thanks Bryan. Yes, I see that New Testament references do appear in LEB. However, AMP, MESSAGE and NCV do not appear at all, either in Old or New Testament references.
Best wishes,
Les
0 -
It also fails to work when the abbreviation used underscores as the TSK module in E-sword does: e.g. Act_10:42-43; Mat_1:21.
I just do a search and replace when i am done with a document, but as i just posted, it also does not tag certain abbreviations: http://peacebyjesus.witnesstoday.org/Abbrv.html
0