]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 16 Nov 2015 15:48:33 +0000 (12:48 -0300)
commit5e3882bcecede59f24a6b3c4aa9c4324390a29c3
treebdea299224ec80bcc5df10939c95956aacdb63f0
parentdfa757af927aaa5b80a4dd8c90210d12531cfcd7
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>
C4/Charset.pm