[sword-devel] GlobalOptionFilter=UTF8GreekAccents

Karl Kleinpaste karl at kleinpaste.org
Mon Mar 17 16:01:00 EDT 2025


On 3/17/25 14:46, David Haslam wrote:
> Search results were no different with the Greek Accents on or off.

That's because Xiphos' search explicitly disables Greek Accents and 
Hebrew Vowel Points before all searches. This was consequent to a bug 
report, and the solution concluded at the time was to eliminate accents 
and points entirely from searches as a useful generalization, to keep 
from getting caught by "<this module> has accents but <that one> 
doesn't, but why don't searches work the same for them?" That is, if 
search success depends on the specificity of whether accents or points 
are enabled, you're probably doing something wrong.

"fix #2803614 Search in unpointed Hebrew not working, by ensuring
  that all vowel points & accents are turned off in modules and
  search strings." --comment dated August 2009 ... 16½ years ago
(back whenname changeGnomeSword → Xiphos was new, Windows port was new, 
and we were still at SourceForge instead of GitHub.)

The code squishes search terms to no accents or points, turns off 
options for accents & points, then carries out the search.

Not sure what's up with the terrible Preview display; it looks like 
UTF8-ness was lost. However, that misbehavior seems limited to 
TischMorph. For example, if I use 2TGreek, which (like TischMorph) is a 
ThML module, and in fact was built using TischMorph for NT, search 
previews show up perfectly fine in both Linux and Windows environments. 
I'll look into it but I have no guesses at the moment as to why it looks 
bad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20250317/af642625/attachment.htm>


More information about the sword-devel mailing list