]> git.koha-community.org Git - koha.git/commit
Bug 14078: converting from ISO5426 is not complete
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 29 Apr 2015 10:24:23 +0000 (12:24 +0200)
committerFrédéric Demians <f.demians@tamil.fr>
Sun, 29 Nov 2015 21:01:33 +0000 (22:01 +0100)
commit2ceab7145e2c337a8737d2f3a4b20ff9a6c20315
tree40604dc48b094863cae4a15796e94dc540c0b976
parentffa12f38437792b927e7189ec9fbe3f3429065a9
Bug 14078: converting from ISO5426 is not complete

Conversion of MARC from ISO5426 is defined in C4::Charset::char_decode5426().
Each character or combined characters conversion is defined in a map.

This patch changes some odd actual conversions.

In char_decode5426(), only characters between 0xC0 and 0xDF will be used for combining with following charater :
  ($char >= 0xC0 && $char <= 0xDF)
So conversion like "$chars{0x81d1}=0x00b0" will never be used.
Rules for "h with breve below" use combining with 0xf9 but looks like the correct caracter is 0xd5.

See http://www.gymel.com/charsets/MAB2.html

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5e3882bcecede59f24a6b3c4aa9c4324390a29c3)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
C4/Charset.pm