The problem was noticed when searching for this author: https://en.wikipedia.org/wiki/Bohuslav_Martin%C5%AF It seems we map this: https://software.hixie.ch/utilities/cgi/unicode-decoder/character-identifier?characters=u%CC%8A But not: https://software.hixie.ch/utilities/cgi/unicode-decoder/character-identifier?characters=%C5%AF
(In reply to Nick Clemens from comment #0) > The problem was noticed when searching for this author: > https://en.wikipedia.org/wiki/Bohuslav_Martin%C5%AF > > It seems we map this: > https://software.hixie.ch/utilities/cgi/unicode-decoder/character- > identifier?characters=u%CC%8A > > But not: > https://software.hixie.ch/utilities/cgi/unicode-decoder/character- > identifier?characters=%C5%AF Good catch Nick, I'll add a patch soon
Created attachment 89010 [details] [review] Bug 22787: Add mapping of letters "ů" and "Ů" to zebra definitions Test plan: 0) Do not apply the patch 1) Add some word with character "ů" into metadata, for example author "Martinů, Bohuslav" 2) Try to search it with "Martinu" and you'll see you can't find it 3) Apply the patch 4) Copy file etc/zebradb/etc/word-phrase-utf.chr to your /etc/koha directory sudo cp etc/zebradb/etc/word-phrase-utf.chr /etc/koha/zebradb/etc/ 5) koha-zebra --restart kohadev 6) koha-rebuild-zebra -f kohadev 6) try to search "Martinu" again - you should be able to find your record Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Created attachment 89257 [details] [review] Bug 22787: Add mapping of letters "ů" and "Ů" to zebra definitions Test plan: 0) Do not apply the patch 1) Add some word with character "ů" into metadata, for example author "Martinů, Bohuslav" 2) Try to search it with "Martinu" and you'll see you can't find it 3) Apply the patch 4) Copy file etc/zebradb/etc/word-phrase-utf.chr to your /etc/koha directory sudo cp etc/zebradb/etc/word-phrase-utf.chr /etc/koha/zebradb/etc/ 5) koha-zebra --restart kohadev 6) koha-rebuild-zebra -f kohadev 6) try to search "Martinu" again - you should be able to find your record Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com>
Trying to apply it: Traceback (most recent call last): File "/usr/local/bin/git-bz", line 2671, in <module> do_apply(*args) File "/usr/local/bin/git-bz", line 1747, in do_apply print "Bug %d - %s" % (bug.id, bug.short_desc) UnicodeEncodeError: 'ascii' codec can't encode character u'\u016f' in position 32: ordinal not in range(128)
(In reply to Marcel de Rooy from comment #4) > Trying to apply it: > > Traceback (most recent call last): > File "/usr/local/bin/git-bz", line 2671, in <module> > do_apply(*args) > File "/usr/local/bin/git-bz", line 1747, in do_apply > print "Bug %d - %s" % (bug.id, bug.short_desc) > UnicodeEncodeError: 'ascii' codec can't encode character u'\u016f' in > position 32: ordinal not in range(128) Git bz error, just wget and manually apply
Created attachment 89350 [details] [review] Bug 22787: Add mapping of letters "ů" and "Ů" to zebra definitions Test plan: 0) Do not apply the patch 1) Add some word with character "ů" into metadata, for example author "Martinů, Bohuslav" 2) Try to search it with "Martinu" and you'll see you can't find it 3) Apply the patch 4) Copy file etc/zebradb/etc/word-phrase-utf.chr to your /etc/koha directory sudo cp etc/zebradb/etc/word-phrase-utf.chr /etc/koha/zebradb/etc/ 5) koha-zebra --restart kohadev 6) koha-rebuild-zebra -f kohadev 6) try to search "Martinu" again - you should be able to find your record Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Awesome work all! Pushed to master for 19.05
Pushed to 18.11.x for 18.11.06
backported to 18.05.x for 18.05.13