Bugzilla – Attachment 41032 Details for
Bug 14542
Transliterate rule for all single quote forms
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14542 - Transliterate rule for all single quote forms
Bug-14542---Transliterate-rule-for-all-single-quot.patch (text/plain), 1.57 KB, created by
Fridolin Somers
on 2015-07-16 15:57:44 UTC
(
hide
)
Description:
Bug 14542 - Transliterate rule for all single quote forms
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2015-07-16 15:57:44 UTC
Size:
1.57 KB
patch
obsolete
>From 69a83ef869821f0533a55ab5db10960e9fb2aa7e Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 16 Jul 2015 17:48:14 +0200 >Subject: [PATCH] Bug 14542 - Transliterate rule for all single quote forms > >Single quotes in common language (not in programming) are usually ', but there is also the form known as ’ in HTML. >See https://fr.wikipedia.org/wiki/Apostrophe_%28typographie%29 > >This bug proposes to transliterate all forms into a space. > >Test plan : >(I'll use the code ’ instead of the unicode character) >- Without the patch >- Create a record with title : L’avion d’argile >- Index this record >- Search for "L’avion d’argile" => You find the record >- Search for "L'avion d'argile" => You do not find the record >- Apply patch >- Search for "L’avion d’argile" => You find the record >- Search for "L'avion d'argile" => You find the record >- Search for "L avion d argile" => You find the record >--- > etc/zebradb/etc/words-icu.xml | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/etc/zebradb/etc/words-icu.xml b/etc/zebradb/etc/words-icu.xml >index 1015688..2eb3e7b 100644 >--- a/etc/zebradb/etc/words-icu.xml >+++ b/etc/zebradb/etc/words-icu.xml >@@ -4,6 +4,8 @@ > <transliterate rule="{ æ > ae "/> > <transliterate rule="{ à > ae "/> > <transliterate rule="\'>\ "/> >+ <transliterate rule="\u2019>\ "/> >+ <transliterate rule="\u02BC>\ "/> > <transliterate rule="[:Number:] { '-' > '' "/> > <!-- Remove control characters except \t\n\r --> > <transform rule="[\x00-\x08\x0B\x0C\x0E-\x1F\x7F] Any-Remove"/> >-- >2.1.0
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 14542
:
41032
|
44753
|
44757