[Bug 22787] New: Mapping missing for ů to u in word-phrafe-utf-chr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Bug ID: 22787 Summary: Mapping missing for ů to u in word-phrafe-utf-chr Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Searching Assignee: koha-bugs@lists.koha-community.org Reporter: nick@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- 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... But not: https://software.hixie.ch/utilities/cgi/unicode-decoder/character-identifier... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de Summary|Mapping missing for ů to u |Mapping missing for ů to u |in word-phrafe-utf-chr |in word-phrase-utf-chr -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |josef.moravec@gmail.com Status|NEW |ASSIGNED Assignee|koha-bugs@lists.koha-commun |josef.moravec@gmail.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 --- Comment #1 from Josef Moravec <josef.moravec@gmail.com> --- (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 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 --- Comment #2 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 89010 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89010&action=edit 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> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |black23@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 --- Comment #3 from Michal Denar <black23@gmail.com> --- Created attachment 89257 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89257&action=edit 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> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Michal Denar <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #4 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- 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) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 --- Comment #5 from Nick Clemens <nick@bywatersolutions.com> --- (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 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 --- Comment #6 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 89350 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89350&action=edit 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> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz Attachment #89010|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #89257|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #7 from Nick Clemens <nick@bywatersolutions.com> --- Awesome work all! Pushed to master for 19.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |Pushed to Stable CC| |martin.renvoize@ptfs-europe | |.com Version(s)| |19.05.00, 18.11.06 released in| | --- Comment #8 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Pushed to 18.11.x for 18.11.06 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22787 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #9 from Lucas Gass <lucas@bywatersolutions.com> --- backported to 18.05.x for 18.05.13 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org