| 1 | package App::resistorcc ; | ||
| 2 | our $VERSION = '0.054' ; | ||
| 3 | our $DATE = '2023-06-09T09:42+09:00' ; | ||
| 4 | |||
| 5 | =encoding utf8 | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | App::resistorcc -- Put colors on numerical digits (0 to 9) according to the electric resistance color codes. 1 for brown, 2 for red, 3 for orange and so on with some small change. | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | This module provides a Unix-like command `F<resistorcc>'. | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | resistorcc | ||
| 18 | |||
| 19 | `perldoc App::resistorcc' shows English help. | ||
| 20 | `perldoc resistorcc' and `resistorcc --help' shows Japanese help. | ||
| 21 | |||
| 22 | This command read the given file or STDIN, then | ||
| 23 | using ANSI Escape Code it puts colors as follows on numerical characters. | ||
| 24 | The color is based on the electronic color code which is internationally | ||
| 25 | used. As a result, the text containing many numerical digits may be able | ||
| 26 | to be read easily by human eyes. | ||
| 27 | |||
| 28 | 0 black -> actually the darker gray which is darker than "8". | ||
| 29 | 1 brown | ||
| 30 | 2 red | ||
| 31 | 3 orange | ||
| 32 | 4 yellow | ||
| 33 | 5 green | ||
| 34 | 6 blue | ||
| 35 | 7 purple | ||
| 36 | 8 gray | ||
| 37 | 9 white -> actually brighter than standard white. | ||
| 38 | |||
| 39 | Options : Not yet implemented. | ||
| 40 | |||
| 41 | Reference: https://en.wikipedia.org/w/index.php?title=Electronic_color_code | ||
| 42 | |||
| 43 | =head1 OPTION | ||
| 44 | |||
| 45 | -= N ; skip coloring on the first N lines. | ||
| 46 | |||
| 47 | =head1 TRY | ||
| 48 | |||
| 49 | resistorcc --help | resistorcc | ||
| 50 | |||
| 51 | =head1 SEE ALSO | ||
| 52 | |||
| 53 | App::colorplus -- `colorplus -0' deletes the colros given by ANSI escape code. | ||
| 54 | |||
| 55 | =head1 AUTHOR | ||
| 56 | |||
| 57 | 下野寿之 Toshiyuki SHIMONO <bin4tsv@gmail.com> The Institute of Statistical Mathematics, a visiting researcher. | ||
| 58 | |||
| 59 | =head1 COPYRIGHT AND LICENSE | ||
| 60 | |||
| 61 | Copyright (c) 2020-2023 Toshiyuki SHIMONO. All rights reserved. | ||
| 62 | This program is free software; you can redistribute it and/or | ||
| 63 | modify it under the same terms as Perl itself. | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | 1 ; |