ligate / and-bible

Automatically exported from code.google.com/p/and-bible
0 stars 0 forks source link

False hits when searching in John #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Select language "nn: Norsk nynorsk" (does not happen with english language 
selection, or other languages I have tried).
2. Search for "john" in any English NT, you will get some correct hits in the 
gospels, except in John where you will get false hits for every single verse in 
that book. 

This happens in many different Bible modules both with locally generated search 
indexes and downloaded ones, but as far as I know only with language "nn: Norsk 
nynorsk".

Some few other examples that fails the same way:
- Search for "johannes" in NT of the Norwegian module "Norsk" (language code 
"Bokmål")
- Search for "beginning" in NT of BBE and KJV
- Search for "juan" in NT of module SpaRV (Spanish Reina Valera Gomez 2004)

What is the expected output? What do you see instead?
Expects correct hits, I get hit on every single verse in John even if the word 
search for is not present. If you search for a word that doesn't exist, you get 
none hits.

What version of the product are you using? On what operating system?
Tried both version 1.1.1 and 20120120, but I know it has happened in many 
earlier versions as well.
Operting system: rooted HTC Desire running the mod "CyanogenMod-7.1.0-Desire" 
(Android version 2.3.7).

Please provide any additional information below.

Original issue reported on code.google.com by paal...@gmail.com on 25 Jan 2012 at 11:35

GoogleCodeExporter commented 8 years ago
This sounds weird.

I can reproduce this and raised it on the JSword forum but I think I will need 
to spend time creating a junit in order to make progress.

How urgent is this for you?  Do normal searches like 'God love world' work okay 
for you?

Original comment by mjden...@gmail.com on 28 Jan 2012 at 6:54

GoogleCodeExporter commented 8 years ago
This is not urgent for me, so if you make this low/medium priority, that is 
fine. 
For people that have this bug: Change application language, and you should be 
OK.

Original comment by paal...@gmail.com on 1 Feb 2012 at 2:35

GoogleCodeExporter commented 8 years ago
I raised this issue on the JSword list but did not get a response.  I think I 
will need to create some junit tests that demonstrate the problem clearly 
before I get any further.  I am just a bit busy at the moment.

I have noticed that simple searches like 'God love world' work the same 
whatever locale is used.  It must just be a weird combination of 'John' and the 
nn locale.

Original comment by mjden...@gmail.com on 1 Feb 2012 at 3:52

GoogleCodeExporter commented 8 years ago
It sounds strange, but yes, it seems to be an issue with application language 
"nn: Norsk nynorsk", because this error does not occur in any other language. 

Here are some new words that fail in KJV: "month", "behold", "am". In fact, 
there are lots of words that fail in all bible modules. I had some incidents in 
my bible group yesterday as well. When I switch language, the search works fine.

Original comment by paal...@gmail.com on 2 Feb 2012 at 9:05

GoogleCodeExporter commented 8 years ago
An apostrophe in the Nynorsk translation of Revelation which caused the problem.

There is also a coding issue that will require a change in JSword but removing 
the apostrophe fixes the problem.

Check out tonight's build to see if it works.

Regards
Martin

Original comment by mjden...@gmail.com on 8 Feb 2012 at 11:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Problem fixed! :)
How can I beware of that bug when translating in the future? I guess it was my 
translation, since it is nynorsk.

Original comment by paal...@gmail.com on 15 Feb 2012 at 8:38

GoogleCodeExporter commented 8 years ago
First I thought it was just the quote in the translation and removing the 
apostrophe fixed it but there were similar problems in Thai that required a 
code fix.  I suspect the code change would also fix the Nynorsk problem, but 
apostrophes in book names should be avoided (as should dashes) because they 
confuse the passage de-referencing code.

Apostrophes in normal strings are okay, but not in book names.

Original comment by mjden...@gmail.com on 15 Feb 2012 at 8:46