<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hypothetical: What about mixed language texts such as a Greek/French lexicon?<div class=""><br class=""></div><div class="">DM</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 21, 2017, at 4:56 PM, Troy A. Griffitts <<a href="mailto:scribe@crosswire.org" class="">scribe@crosswire.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">
Simply don't use the UTF-8 Greek Accent filter on non-Greek texts. As you have discovered there are accents used in Greek which are also used in other languages and adverse effects will be seen for these languages. The bottom line is simple. Only use the UTF-8 Greek Accents filter on UTF-8 Greek texts.<br class="">
<br class="">
Hope this helps.<br class=""><br class=""><div class="gmail_quote">On February 21, 2017 2:45:24 PM MST, David Haslam <<a href="mailto:dfhmch@googlemail.com" class="">dfhmch@googlemail.com</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">These are the principal diacritics found in Biblical Greek that have to be<br class="">removed with a UTF8GreekAccents filter.<br class=""><br class="">The first five are general accents, not particular to Greek.<br class="">It's on account of these that the filter should not be applied to non-Greek<br class="">text.<br class=""><br class="">U+0300 ̀ COMBINING GRAVE ACCENT<br class="">U+0301 ́ COMBINING ACUTE ACCENT<br class="">U+0308 ̈ COMBINING DIAERESIS<br class="">U+0313 ̓ COMBINING COMMA ABOVE<br class="">U+0314 ̔ COMBINING REVERSED COMMA ABOVE<br class="">U+0342 ͂ COMBINING GREEK PERISPOMENI<br class="">U+0343 ̓ COMBINING GREEK KORONIS<br class="">U+0344 ̈́ COMBINING GREEK DIALYTIKA TONOS<br class="">U+0345 ͅ COMBINING GREEK YPOGEGRAMMENI<br class=""><br class="">No other diacritics or characters should be removed. <br class="">Though there are a few more combining accents in this block, they aren't<br class="">really used in Biblical Greek.<br class="">I am open to correction on this point.<br class=""><br class="">e.g. The right single quotation mark (U+2019) is NOT a diacritic. It should<br class="">not be removed.<br class=""><br class="">Before any of these accents can be removed, they must first be separated<br class="">from the Greek letters they are combined with. <br class=""><br class="">Although normalization to the decomposed form can produce this effect, as we<br class="">have seen already, this can have undesirable side effects on any non-Greek<br class="">text in the module that may happen to include combined or unusual<br class="">characters.<br class=""><br class="">It would therefore be more sensible to simply use a comprehensive mapping<br class="">table that replaces each possible accented character by the corresponding<br class="">letter in the Greek alphabet. In this way the filter can completely avoid<br class="">the need to apply any Unicode normalization. <br class=""><br class="">The complete mapping table would have at least 130 rows. It will need to<br class="">take into account that there are at least 75 possible combinations of a<br class="">letter with two accents. There are none with three.<br class=""><br class="">Any residual combining characters should also be removed, to cover the<br class="">possibility that a module may have been intentionally made without<br class="">normalizing the Greek source text by default to NFC.<br class=""><br class="">That's my proposal. I can easily create such a mapping table that<br class="">programmers can use.<br class="">I can also readily test it with a bespoke TextPipe filter.<br class=""><br class=""><br class="">Best regards,<br class=""><br class="">David<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">--<br class="">View this message in context: <a href="http://sword-dev.350566.n4.nabble.com/GlobalOptionFilter-UTF8GreekAccents-and-non-Greek-modules-tp4656719p4656765.html" class="">http://sword-dev.350566.n4.nabble.com/GlobalOptionFilter-UTF8GreekAccents-and-non-Greek-modules-tp4656719p4656765.html</a><br class="">Sent from the SWORD Dev mailing list archive at <a href="http://nabble.com/" class="">Nabble.com</a>.<br class=""><br class=""><hr class=""><br class="">sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class=""><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">Instructions to unsubscribe/change your settings at above page</pre></blockquote></div><br class="">
-- <br class="">
Sent from my Android device with K-9 Mail. Please excuse my brevity.</div>_______________________________________________<br class="">sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class=""><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">Instructions to unsubscribe/change your settings at above page</div></blockquote></div><br class=""></div></body></html>