| 1 |
NAME |
| 2 |
Text::Undiacritic - remove diacritics from a string |
| 3 |
|
| 4 |
VERSION |
| 5 |
This document describes Text::Undiacritic 0.01 |
| 6 |
|
| 7 |
SYNOPSIS |
| 8 |
use Text::Undiacritic qw(undiacritic); |
| 9 |
$ascii_string = undiacritic( $czech_string ); |
| 10 |
|
| 11 |
DESCRIPTION |
| 12 |
Changes characters with diacritics into their base characters. |
| 13 |
|
| 14 |
Also changes into base character in cases where UNICODE does not provide |
| 15 |
a decomposition. |
| 16 |
|
| 17 |
E.g. all characters '... WITH STROKE' like 'LATIN SMALL LETTER L WITH |
| 18 |
STROKE' do not have a decomposition. In the latter case the result will |
| 19 |
be 'LATIN SMALL LETTER L'. |
| 20 |
|
| 21 |
Removing diacritics is useful for matching text independent of spelling |
| 22 |
variants. |
| 23 |
|
| 24 |
SUBROUTINES/METHODS |
| 25 |
undiacritic |
| 26 |
$ascii_string = undiacritic( $characters ); |
| 27 |
|
| 28 |
Removes diacritics from $characters and returns a simplified character |
| 29 |
string. |
| 30 |
|
| 31 |
The input string must be in character modus, i.e. UNICODE code points. |
| 32 |
|
| 33 |
DIAGNOSTICS |
| 34 |
CONFIGURATION AND ENVIRONMENT |
| 35 |
DEPENDENCIES |
| 36 |
* version |
| 37 |
|
| 38 |
* charnames |
| 39 |
|
| 40 |
* Unicode::Normalize |
| 41 |
|
| 42 |
INCOMPATIBILITIES |
| 43 |
BUGS AND LIMITATIONS |
| 44 |
There is no experience if this module gives useful results for scripts |
| 45 |
other than Latin. |
| 46 |
|
| 47 |
AUTHOR |
| 48 |
Helmut Wollmersdorfer "<[email protected]>" |
| 49 |
|
| 50 |
LICENSE AND COPYRIGHT |
| 51 |
Copyright (c) 2007, Helmut Wollmersdorfer "<[email protected]>". All |
| 52 |
rights reserved. |
| 53 |
|
| 54 |
This module is free software; you can redistribute it and/or modify it |
| 55 |
under the same terms as Perl itself. |
| 56 |
|