Transliteration of search text
with the help of drupal transliteration module (https://www.drupal.org/project/transliteration) please set: $config ['cops_normalized_search'] = "1"; Issue 49 (https://github.com/seblucas/cops/issues/49) fixed Goal : search for Honore should return books written by Honoré de Balzac achieved
This commit is contained in:
parent
eb006c064d
commit
d0f0507c99
182 changed files with 3902 additions and 5 deletions
44
resources/transliteration-data/x00.php
Normal file
44
resources/transliteration-data/x00.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
$base = array(
|
||||
// Note: to save memory plain ASCII mappings have been left out.
|
||||
0x80 => '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
|
||||
0x90 => '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
|
||||
0xA0 => ' ', '!', 'C/', 'PS', '$?', 'Y=', '|', 'SS', '"', '(c)', 'a', '<<', '!', '', '(r)', '-',
|
||||
0xB0 => 'deg', '+-', '2', '3', '\'', 'u', 'P', '*', ',', '1', 'o', '>>', '1/4', '1/2', '3/4', '?',
|
||||
0xC0 => 'A', 'A', 'A', 'A', 'A', 'A', 'AE', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I',
|
||||
0xD0 => 'D', 'N', 'O', 'O', 'O', 'O', 'O', 'x', 'O', 'U', 'U', 'U', 'U', 'Y', 'Th', 'ss',
|
||||
0xE0 => 'a', 'a', 'a', 'a', 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i',
|
||||
0xF0 => 'd', 'n', 'o', 'o', 'o', 'o', 'o', '/', 'o', 'u', 'u', 'u', 'u', 'y', 'th', 'y',
|
||||
);
|
||||
|
||||
// Overrides for Danish input.
|
||||
$variant['da'] = array(
|
||||
0xC5 => 'Aa',
|
||||
0xC6 => 'Ae',
|
||||
0xD8 => 'Oe',
|
||||
0xE5 => 'aa',
|
||||
0xE6 => 'ae',
|
||||
0xF8 => 'oe',
|
||||
);
|
||||
|
||||
// Overrides for German input.
|
||||
$variant['de'] = array(
|
||||
0xC4 => 'Ae',
|
||||
0xD6 => 'Oe',
|
||||
0xDC => 'Ue',
|
||||
0xE4 => 'ae',
|
||||
0xF6 => 'oe',
|
||||
0xFC => 'ue',
|
||||
0xDF => 'ss',
|
||||
);
|
||||
|
||||
// Overrides for Spanish input.
|
||||
$variant['es'] = array(
|
||||
0xE1 => 'a',
|
||||
0xE9 => 'e',
|
||||
0xED => 'i',
|
||||
0xF3 => 'o',
|
||||
0xFA => 'u',
|
||||
0xF1 => 'n',
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue