App-Greple-subst
view release on metacpan or search on metacpan
docs/subst.pod view on Meta::CPAN
=item B<--stat-item> I<item>=[0,1]
Specify which item is shown up in stat information. Default values
are:
match=1
expect=1
number=1
ng=1
ok=1
dict=0
If you don't need to see pattern field, use like this:
--stat-item match=0
Multiple parameters can be set at once:
--stat-item match=number=0,ng=1,ok=1
=item B<--subst>
Substitute unexpected matched pattern to expected string. Newline
character in the matched string is ignored. Pattern without
replacement string is not changed.
=item B<--[no-]warn-overlap>
Warn overlapped pattern.
Default on.
=item B<--[no-]warn-include>
Warn included pattern.
Default off.
=back
=head2 FILE UPDATE OPTIONS
=over 7
=item B<--diff>
=item B<--diffcmd>=I<command>
Option B<--diff> produce diff output of original and converted text.
Specify diff command name used by B<--diff> option. Default is "diff
-u".
=item B<--create>
Create new file and write the result. Suffix ".new" is appended to
original filename.
=item B<--replace>
Replace the target file by converted result. Original file is renamed
to backup name with ".bak" suffix.
=item B<--overwrite>
Overwrite the target file by converted result with no backup.
=back
=head1 DICTIONARY
This module includes example dictionaries. They are installed share
directory and accessed by B<--exdict> option.
greple -Msubst --exdict jtca-katakana-guide-3.dict
=over 7
=item B<--exdict> I<dictionary>
Use I<dictionary> flie in the distribution as a dictionary file.
=item B<--exdictdir>
Show dictionary directory.
=item B<--exdict> jtca-katakana-guide-3.dict
=item B<--jtca-katakana-guide>
Created from following guideline document.
夿¥èªï¼ã«ã¿ã«ãï¼è¡¨è¨ã¬ã¤ãã©ã¤ã³ 第3ç
å¶å®ï¼2015å¹´8æ
çºè¡ï¼2015å¹´9æ
ä¸è¬è²¡å£æ³äººãã¯ãã«ã«ã³ãã¥ãã±ã¼ã¿ã¼åä¼
Japan Technical Communicators Association
https://jtca.org/tcwp/wp-content/uploads/2023/06/katakana_guide_3_20171222.pdf
=item B<--jtca>
Customized B<--jtca-katakana-guide>. Original dictionary is
automatically generated from published data. This dictionary is
customized for practical use.
=item B<--exdict> jtf-style-guide-3.dict
=item B<--jtf-style-guide>
Created from following guideline document.
JTFæ¥æ¬èªæ¨æºã¹ã¿ã¤ã«ã¬ã¤ãï¼ç¿»è¨³ç¨ï¼
第3.0ç
2019å¹´8æ20æ¥
ä¸è¬ç¤¾å£æ³äºº æ¥æ¬ç¿»è¨³é£çï¼JTFï¼
翻訳å質å§å¡ä¼
https://www.jtf.jp/jp/style_guide/pdf/jtf_style_guide.pdf
=item B<--jtf>
Customized B<--jtf-style-guide>. Original dictionary is automatically
generated from published data. This dictionary is customized for
practical use.
=item B<--exdict> sccc2.dict
( run in 0.973 second using v1.01-cache-2.11-cpan-3fabe0161c3 )