Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Text-Undiacritic CPAN distribution.

Report information
The Basics
Id: 60306
Status: new
Priority: 0/
Queue: Text-Undiacritic

People
Owner: Nobody in particular
Requestors: falsedan [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



Subject: LATIN SMALL LETTER DOTLESS I
Text::Undiacritic doesn't convert \N{LATIN SMALL LETTER DOTLESS I} to \N{LATIN SMALL LETTER I} Test to confirm bug attached, as well as patch.
Subject: dotless_i.patch
diff -ur Text-Undiacritic-0.02/lib/Text/Undiacritic.pm Text-Undiacritic/lib/Text/Undiacritic.pm --- Text-Undiacritic-0.02/lib/Text/Undiacritic.pm 2007-12-09 15:02:50.000000000 +0000 +++ Text-Undiacritic/lib/Text/Undiacritic.pm 2010-08-13 12:49:42.097479499 +0100 @@ -25,6 +25,7 @@ my $name = charnames::viacode( ord $character ); $name =~ s/\s WITH \s .+ \z//xms; + $name =~ s/\s DOTLESS \s/ /xms; $undiacritics .= chr charnames::vianame( $name ); }
Subject: dotless_i.t
#!/usr/bin/perl use strict; use warnings; use Text::Undiacritic v0.02 qw( undiacritic ); use charnames qw( :full ); use Test::More; my %undiacritic = ( 'LATIN SMALL LETTER DOTLESS I' => 'LATIN SMALL LETTER I', ); plan tests => scalar keys %undiacritic; while ( my ( $before, $after ) = each %undiacritic ) { is( undiacritic( chr charnames::vianame($before) ), chr charnames::vianame($after), qq{"$before" => "$after"} ); }