Bugzilla – Attachment 37943 Details for
Bug 13981
Transliterate rule for oe and ae
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[Signed-off] Bug 13981 - Transliterate rule for oe and ae
Signed-off-Bug-13981---Transliterate-rule-for-oe-a.patch (text/plain), 2.26 KB, created by
Marc Véron
on 2015-04-16 07:17:28 UTC
(
hide
)
Description:
[Signed-off] Bug 13981 - Transliterate rule for oe and ae
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-04-16 07:17:28 UTC
Size:
2.26 KB
patch
obsolete
>From 43887d0e027614da34c653dbb24f260a84bcaa89 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 13 Apr 2015 12:17:12 +0200 >Subject: [PATCH] [Signed-off] Bug 13981 - Transliterate rule for oe and ae >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >NOTE : I use HTML codes for special characters to avoir encoding issues in patch file. > >In ICU configuration, add a transliterate rule for >œ = oe >æ = ae > >Test plan : >- Without patch >- Create a record R1 with title containing for example "cœur" >- Create a record R2 with title containing for example "coeur" >- Index those records >- Search for "cœur" >=> You only find R1 >- Search for "coeur" >=> You only find R2 >- Apply patch >- Restart zebra >- Index R1 and R2 >- Search for "cœur" >=> You find R1 and R2 >- Search for "coeur" >=> You find R1 and R2 >(Same test plan for ae) > >------ >Tested with all variants of Ae ae Oe oe. Search worked as expected. >Note: The words with special characters were not highlighted, but I think this can be done in an other bug. >Signed-off-by: Marc Véron <veron@veron.ch> >--- > etc/zebradb/etc/phrases-icu.xml | 4 ++++ > etc/zebradb/etc/words-icu.xml | 4 ++++ > 2 files changed, 8 insertions(+) > >diff --git a/etc/zebradb/etc/phrases-icu.xml b/etc/zebradb/etc/phrases-icu.xml >index 076c5ac..69cc124 100644 >--- a/etc/zebradb/etc/phrases-icu.xml >+++ b/etc/zebradb/etc/phrases-icu.xml >@@ -1,4 +1,8 @@ > <icu_chain locale=""> >+ <transliterate rule="{ Å > oe "/> >+ <transliterate rule="{ Å > oe "/> >+ <transliterate rule="{ æ > ae "/> >+ <transliterate rule="{ à > ae "/> > <!-- Remove control characters except \t\n\r --> > <transform rule="[\x00-\x08\x0B\x0C\x0E-\x1F\x7F] Any-Remove"/> > <tokenize rule="l"/> >diff --git a/etc/zebradb/etc/words-icu.xml b/etc/zebradb/etc/words-icu.xml >index 57498cb..1015688 100644 >--- a/etc/zebradb/etc/words-icu.xml >+++ b/etc/zebradb/etc/words-icu.xml >@@ -1,4 +1,8 @@ > <icu_chain locale=""> >+ <transliterate rule="{ Å > oe "/> >+ <transliterate rule="{ Å > oe "/> >+ <transliterate rule="{ æ > ae "/> >+ <transliterate rule="{ à > ae "/> > <transliterate rule="\'>\ "/> > <transliterate rule="[:Number:] { '-' > '' "/> > <!-- Remove control characters except \t\n\r --> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13981
:
37718
|
37943
|
38031