[Koha-devel] Extending MARC::Charset::Table ?
Philippe Blouin
philippe.blouin at inlibro.com
Wed Jun 4 20:56:57 CEST 2014
Hello to all,
We're using the MARC library for some migration, as usual, but we
encountered some new issue with some arabic title: the key code 703
0x02BF 703 MODIFIER LETTER LEFT HALF RING ?
is not part of the Table db, which cause the whole subfield to
disappear and causing us headaches.
I tried to ignore the unrecognized code using
MARC::Charset->ignore_errors(1); as specified in the comments, but it
crashes immediately after:
my $code = $table->lookup_by_utf8($slice); returns undef
if (! $code)
{
warn("no mapping found at position $i in $utf8");
reset_charsets() and return unless $ignore_errors; do not
return
}
# if it's a combining character move it around
if ($code->is_combining()) crashes on undef
{
My questions:
- Any way to generate the Table with all the 700s characters?
- Or any way to just avoid the error?
Thanks,
Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20140604/d47c4bdb/attachment.html>
More information about the Koha-devel
mailing list