Text::Undiacritic(3pm)

Text::Undiacritic3pm

Remove diacritics from a string

Usage

    use Text::Undiacritic qw(undiacritic);
    $ascii_string = undiacritic( $czech_string );

Version

This document describes Text::Undiacritic 0.01

Overview

Changes characters with diacritics into their base characters.

Also changes into base character in cases where UNICODE does not provide a decomposition.

E.g. all characters '... WITH STROKE' like 'LATIN SMALL LETTER L WITH STROKE' do not have a decomposition. In the latter case the result will be 'LATIN SMALL LETTER L'.

Removing diacritics is useful for matching text independent of spelling variants.

Subroutines/methods

undiacritic

    $ascii_string = undiacritic( $characters );

Removes diacritics from $characters and returns a simplified character string.

The input string must be in character modus, i.e. UNICODE code points.

Diagnostics

Configuration and environment

Dependencies

•

version

•

charnames

•

Unicode::Normalize

Incompatibilities

Bugs and limitations

There is no experience if this module gives useful results for scripts other than Latin.

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

Author

Helmut Wollmersdorfer "<[email protected]>"

From libtext-undiacritic-perl 0.07-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.