App-Greple-charcode
view release on metacpan or search on metacpan
[](https://github.com/kaz-utashiro/greple-charcode/actions) [](https://metacpa...
# NAME
App::Greple::charcode - greple module to annotate unicode character data
<div>
<p>
<img width="566" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/homoglyph.png">
</p>
</div>
# SYNOPSIS
greple -Mcharcode [ module option -- ] [ command option ] ...
COMMAND OPTION
--no-annotate do not print annotation
--[no-]align align annotations
â â ââââââ 4 \x{30af}Â \N{KATAKANA LETTER KU}
â â ââââââ 4 \x{309a}Â \N{COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK}
â â â ââââ 6 \x{30b1}Â \N{KATAKANA LETTER KE}
â â â ââââ 6 \x{309a}Â \N{COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK}
â â â â ââ 8 \x{30b3}Â \N{KATAKANA LETTER KO}
â â â â ââ 8 \x{309a}Â \N{COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK}
ã«ãããã¯ãã±ãã³ã
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/ka-ko.png">
</p>
</div>
# COMMAND OPTIONS
- **--annotate**, **--no-annotate**
Print annotation or not. Enabled by default, so use `--no-annotate`
to disable it.
(?x)
# see ECMA-48 5.4 Control sequences
(?: \e\[ | \x9b ) # csi
[\x30-\x3f]* # parameter bytes
[\x20-\x2f]* # intermediate bytes
[\x40-\x7e] # final byte
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/ansicode.png">
</p>
</div>
# MODULE OPTIONS and PARAMS
Module-specific options are specified between `-Mcharcode` and `--`.
greple -Mcharcode --config width,name=0 -- ...
Parameters can be set in two ways, one using the `--config` option
greple -Mcharcode --charcode::config alignto=80 ...
# EXAMPLES
## HOMOGLYPH
greple -Mcc -P ASCII --align-side --cm=S t/homoglyph
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/homoglyph.png">
</p>
</div>
## BOX DRAWINGS
perldoc -m App::ansicolumn::Border | greple -Mcc --code -- --outstand --mc=10,
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/box-drawing.png">
</p>
</div>
## AYNU ITAK
greple -Mcc --outstand --split t/ainu.txt
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/aynu.png">
</p>
</div>
# INSTALL
cpanm -n App::Greple::charcode
# SEE ALSO
[App::Greple](https://metacpan.org/pod/App%3A%3AGreple)
lib/App/Greple/annotate.pm view on Meta::CPAN
to display annotation for each matched text in the following style.
$ greple -Mcharcode '\P{ASCII}' charcode.pm
ââââ 12 \x{fe0e}Â \N{VARIATION SELECTOR-15}
â ââ 14 \x{a9}Â \N{COPYRIGHT SIGN}
â ââ 14 \x{fe0e}Â \N{VARIATION SELECTOR-15}
Copyrightï¸ Â©ï¸ 2025 Kazumasa Utashiro.
=for html <p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/ka-ko.png">
</p>
=head1 COMMAND OPTIONS
=over 7
=item B<--annotate>, B<--no-annotate>
Print annotation or not. Enabled by default, so use C<--no-annotate>
to disable it.
lib/App/Greple/charcode.pm view on Meta::CPAN
our $VERSION = "0.9909";
=encoding utf-8
=head1 NAME
App::Greple::charcode - greple module to annotate unicode character data
=for html <p>
<img width="566" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/homoglyph.png">
</p>
=head1 SYNOPSIS
greple -Mcharcode [ module option -- ] [ command option ] ...
COMMAND OPTION
--no-annotate do not print annotation
--[no-]align align annotations
--align-all align to the same column for all lines
lib/App/Greple/charcode.pm view on Meta::CPAN
â ââââââââ 2 \x{309a}Â \N{COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK}
â â ââââââ 4 \x{30af}Â \N{KATAKANA LETTER KU}
â â ââââââ 4 \x{309a}Â \N{COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK}
â â â ââââ 6 \x{30b1}Â \N{KATAKANA LETTER KE}
â â â ââââ 6 \x{309a}Â \N{COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK}
â â â â ââ 8 \x{30b3}Â \N{KATAKANA LETTER KO}
â â â â ââ 8 \x{309a}Â \N{COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK}
ã«ãããã¯ãã±ãã³ã
=for html <p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/ka-ko.png">
</p>
=head1 COMMAND OPTIONS
=over 7
=item B<--annotate>, B<--no-annotate>
Print annotation or not. Enabled by default, so use C<--no-annotate>
to disable it.
lib/App/Greple/charcode.pm view on Meta::CPAN
ECMA-48. Pattern is defined as this.
(?x)
# see ECMA-48 5.4 Control sequences
(?: \e\[ | \x9b ) # csi
[\x30-\x3f]* # parameter bytes
[\x20-\x2f]* # intermediate bytes
[\x40-\x7e] # final byte
=for html <p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/ansicode.png">
</p>
=back
=head1 MODULE OPTIONS and PARAMS
Module-specific options are specified between C<-Mcharcode> and C<-->.
greple -Mcharcode --config width,name=0 -- ...
lib/App/Greple/charcode.pm view on Meta::CPAN
greple -Mcharcode --charcode::config alignto=80 ...
=head1 EXAMPLES
=head2 HOMOGLYPH
greple -Mcc -P ASCII --align-side --cm=S t/homoglyph
=for html <p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/homoglyph.png">
</p>
=head2 BOX DRAWINGS
perldoc -m App::ansicolumn::Border | greple -Mcc --code -- --outstand --mc=10,
=for html <p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/box-drawing.png">
</p>
=head2 AYNU ITAK
greple -Mcc --outstand --split t/ainu.txt
=for html <p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-charcode/refs/heads/main/images/aynu.png">
</p>
=head1 INSTALL
cpanm -n App::Greple::charcode
=head1 SEE ALSO
L<App::Greple>
( run in 1.311 second using v1.01-cache-2.11-cpan-df04353d9ac )