App-Greple-subst
view release on metacpan or search on metacpan
share/jtca-katakana-guide-3.pl view on Meta::CPAN
for my $cat (@{$_{categories}}) {
my $func = $functable{$cat} or next;
$func->() for $_{pattern};
}
$_{fixed} = $_{kana} eq $_{pattern};
$_{ignore} = 1 if $opt->{ignore}->{$_{kana}};
$_{regex} = qr/$_{pattern}/;
for (qw(category pattern kana)) {
$maxlen{$_} = max($maxlen{$_}, vwidth $_{$_});
}
# sanity check
if ($_{kana} !~ /^$_{regex}$/) {
warn sprintf "\"%s\" !~ /^%s\$/\n", $_{kana}, $_{pattern};
}
# push @data, \%_; # just in case.
push @data, { %_ };
}
if ($opt->{reorder}) {
use List::Util qw(first);
for my $i (1 .. $#data) {
my $match =
(first { $data[$i]->{kana} =~ $data[$_]->{regex} } 0 .. $i - 1)
// next;
splice @data, $match, 0 => splice @data, $i, 1;
}
}
for my $data (@data) {
if ($opt->{skipfixed} and $data->{fixed}) {
print "##";
}
elsif ($data->{ignore}) {
print "# ";
} else {
print " ";
}
if ($opt->{category}) {
vprintf "%-*s ", $maxlen{category}, $data->{category};
}
vprintf "%-*s %s\n",
$maxlen{pattern}, $data->{pattern},
$data->{kana},
;
}
__DATA__
#
# greple -Msubst ã¢ã¸ã¥ã¼ã«ç¨è¾æ¸ãã¡ã¤ã«
# https://github.com/kaz-utashiro/greple-subst
#
# 夿¥èªï¼ã«ã¿ã«ãï¼è¡¨è¨ã¬ã¤ãã©ã¤ã³ 第3ç
# å¶å®ï¼2015å¹´8æ
# çºè¡ï¼2015å¹´9æ
# ä¸è¬è²¡å£æ³äººãã¯ãã«ã«ã³ãã¥ãã±ã¼ã¿ã¼åä¼
# https://jtca.org/tcwp/wp-content/uploads/2023/06/katakana_guide_3_20171222.pdf
#
ã¢ã¤ã㢠idea ï¼ï¼ï¼
ã¢ã¤ãã³ãã£ãã£ã¼ identity ï¼ï¼ï¼ãï¼ï¼ï¼ä¾å¤ãï¼ï¼ï¼
ã¢ã¯ã·ã§ã³ action ï¼ï¼ï¼
ã¢ã¯ã»ãµãªã¼ accessory ï¼ï¼ï¼
ã¢ã¯ã»ã·ããªãã£ã¼ accessibility ï¼ï¼ï¼
ã¢ã³ã¼ãã£ãªã³ accordion ï¼ï¼ï¼ãï¼ï¼ï¼
ã¢ã¸ã£ã¹ã¿ã¼ adjuster ï¼ï¼ï¼
ã¢ã»ã³ãã©ã¼ assembler ï¼ï¼ï¼
ã¢ããã¿ã¼ adapter ï¼ï¼ï¼
ã¢ããã°ã¬ã¼ã upgrade ï¼ï¼ï¼ãï¼ï¼ï¼ä¾å¤
ã¢ãããã¼ã¿ã¼ updater ï¼ï¼ï¼
ã¢ãããã¼ã upload ï¼ï¼ï¼
ã¢ããã¤ã¶ã¼ adviser ï¼ï¼ï¼ãï¼
ã¢ããã¤ã¹ advice ï¼
ã¢ããã³ãã£ã¼ adventure ï¼ï¼ï¼ãï¼
ã¢ãã¡ã¼ã·ã§ã³ animation ï¼ï¼ï¼ãï¼ï¼ï¼
ã¢ãã¿ã¼ after ï¼ï¼ï¼
ã¢ãã½ã¼ãã¼ absorber ï¼ï¼ï¼ãï¼ï¼ï¼
ã¢ããªã±ã¼ã·ã§ã³ application ï¼ï¼ï¼ãï¼ï¼ï¼
ã¢ãã¬ã¼ã¸ average ï¼ï¼ï¼ãï¼
ã¢ã©ã¤ã¢ã³ã¹ alliance ï¼
ã¢ã©ã㢠Arabia ï¼
ã¢ã©ã¼ã alert ï¼ï¼ï¼
ã¢ã©ã¼ã alarm ï¼ï¼ï¼
ã¢ã«ã¸ã§ãªã¢ Algeria ï¼
ã¢ã«ã¼ã³ãã³ Argentina ï¼ï¼ï¼
ã¢ã«ãã¡ alpha ï¼ï¼ï¼
ã¢ã«ãã¡ããã alphabet ï¼ï¼ï¼
ã¢ã³ã«ã¼ anchor ï¼ï¼ï¼
ã¢ã³ãµã¼ answer ï¼ï¼ï¼
ã¢ã³ãã¼ãã¼ under barï¼å製è±èªï¼ ï¼ï¼ï¼ãï¼ï¼ï¼ä¾å¤
ã¢ã³ã anti ï¼ï¼ï¼
ã¢ã³ãã£ã¼ã¯ antique ï¼ï¼ï¼ä¾å¤
ã¢ã³ã㢠ampere ï¼ï¼ï¼ä¾å¤ãï¼ï¼ï¼
ã¢ã³ã¢ã㢠ammonia ï¼
ã¢ã¼ããã¯ãã£ã¼ architecture ï¼ï¼ï¼ãï¼ï¼ï¼
ã¢ã¼ããã¯ã architect ï¼ï¼ï¼
ã¢ã¼ã±ã¼ã arcade ï¼ï¼ï¼ãï¼ï¼ï¼ä¾å¤
ã¢ã¼ã art ï¼ï¼ï¼
ã¤ã¨ãã¼ yellow ï¼ï¼ï¼
ã¤ããªãã®ã¼ ideology /ideologie [ãã¤ãèª] ï¼ï¼ï¼
ã¤ãã·ã¢ãã initiative ï¼ãï¼ï¼ï¼ãï¼
ã¤ãã³ã event ï¼
ã¤ããã¼ã·ã§ã³ imitation ï¼ï¼ï¼ãï¼ï¼ï¼
ã¤ã¡ã¼ã¸ image ï¼ï¼ï¼ä¾å¤
ã¤ã¤ãã³ earphone ï¼ï¼ï¼ä¾å¤
ã¤ã©ã¹ã illustration ï¼ï¼ï¼ãï¼ï¼ï¼
ã¤ã©ã¹ãã¬ã¼ã·ã§ã³ illustration ï¼ï¼ï¼ãï¼ï¼ï¼
ã¤ã©ã¹ãã¬ã¼ã¿ã¼ illustrator ï¼ï¼ï¼ãï¼ï¼ï¼
ã¤ã¬ã¼ãµã¼ eraser ï¼ï¼ï¼
ã¤ã³ã¸ã±ã¼ã¿ã¼ indicator ï¼ï¼ï¼ãï¼ï¼ï¼ãï¼ï¼ï¼ãï¼ï¼ï¼ä¾å¤
ã¤ã³ã¹ãã©ã¯ã¿ã¼ instructor ï¼ï¼ï¼
ã¤ã³ã¹ãã¼ã©ã¼ installer ï¼ï¼ï¼ãï¼ï¼ï¼
ã¤ã³ã¹ãã¼ã« install ï¼ï¼ï¼
ã¤ã³ã¿ãã¥ã¼ interview ï¼
ã¤ã³ã¿ã©ã¯ã·ã§ã³ interaction ï¼ï¼ï¼
ã¤ã³ã¿ã©ã¯ãã£ã interactive ï¼ãï¼ï¼ï¼ä¾å¤
ã¤ã³ã¿ã¼ããã internet ï¼ï¼ï¼
ã¤ã³ã¿ã¼ãã§ã¤ã¹ interface ï¼ï¼ï¼ä¾å¤ãï¼ï¼ï¼ãï¼ï¼ï¼
ã¤ã³ã¿ã¼ãã³ interphone ï¼ï¼ï¼ãï¼ï¼ï¼ä¾å¤
ã¤ã³ããã¯ã¹ index ï¼ï¼ï¼
ã¤ã³ãã³ã indent ï¼ï¼ï¼
ã¤ã³ãã©ã¡ã¼ã·ã§ã³ information ï¼ï¼ï¼ãï¼ï¼ï¼ãï¼ï¼ï¼ãï¼ï¼ï¼
ã¤ã³ãã©ã¹ãã©ã¯ãã£ã¼ infrastructure ï¼ï¼ï¼
ã¦ã£ã¶ã¼ã wizard ï¼ï¼ï¼ãï¼ï¼ï¼ä¾å¤
ã¦ã¤ã¹ãã¼ whiskey ï¼ï¼ï¼ãï¼ï¼ï¼
ã¦ã¤ãã wit ï¼ï¼ï¼
ã¦ã¤ã³ã㦠window ï¼ï¼ï¼ãï¼ï¼ï¼
ã¦ã§ã¢ ware ï¼ï¼ï¼ãï¼ï¼ï¼
ã¦ã§ã¤ã weight ï¼ï¼ï¼ä¾å¤ãï¼ï¼ï¼ä¾å¤
ã¦ã§ã web ï¼ï¼ï¼ä¾å¤
ã¦ã§ã¼ã«ãº Wales ï¼ï¼ï¼ãï¼ï¼ï¼ãï¼ï¼ï¼ä¾å¤
( run in 0.782 second using v1.01-cache-2.11-cpan-b16cb0d3907 )