NAME

ISO::15924 - Language scripts

VERSION

Version 0.01

SYNOPSIS

use ISO::15924 qw/:all/;

SUBROUTINES

$val = contains_script( $script, $string [, $count] )

Returns 1 if the string in $string contains a valid Unicode character from script $script. If $count is set to 1 then it returns the number of matching characters.

$val = contains_simplified_chinese( $string [, $count] )

Returns 1 if the string in $string contains valid Han characters in its simplified form. If $count is set to 1 then it returns the number of matching characters.

$val = contains_traditional_chinese( $string [, $count] )

Returns 1 if the string in $string contains valid Han characters in its traditional form. If $count is set to 1 then it returns the number of matching characters.

detect_chinese_script( $string )

Returns the script of some Chinese text (Hans, Hant, ...)

simplified_or_traditional_chinese( $string )

Returns the script of some Chinese text (Hans or Hant)

script_of_string( $string [, $lang] )

Returns 1 if the string in $string contains a valid Unicode character from script $script. If $count is set to 1 then it returns the number of matching characters.

AUTHOR

Joerg Tiedemann, <tiedemann at cpan.org>

BUGS

Please report any bugs or feature requests to bug-iso-15924 at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=ISO-15924. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc ISO::15924

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

---------------------------------------------------------------------------
Copyright (c) 2020 Joerg Tiedemann

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---------------------------------------------------------------------------