1ACHECK.1(8) User Contributed Perl Documentation ACHECK.1(8)
2
3
4
6 acheck - Check common localization mistakes
7
9 acheck [OPTIONS] [INPUT_FILE]
10
12 This program parses a file checking for syntax rules and optionally
13 asking Aspell for checking word spelling. It makes fix suggestions and
14 outputs a corrected file accordingly adding review comments if
15 requested.
16
17 It tries to find the file type according to the extension or the first
18 lines and loads rules accordingly.
19
20 It displays lines when they are parse.
21
22 When an error is found, a menu is displayed. Just press Enter if you
23 don't want to change anything. If a choice suits you, enter the
24 corresponding number. If you want to fix it but no choice is correct,
25 enter a space, then you will be asked for a string to replace the
26 highlighted text. The script will replace the highlighted text with
27 your choice and parse it again for new errors.
28
29 Here are all the available commands:
30
31 Enter, ignore.
32 Ignore.
33
34 Ctrl+L, redraw.
35 Rewrite the last line, suggestions and hints.
36
37 Space, edit.
38 Edit the highlighted text.
39
40 E, edit line.
41 Edit the whole line.
42
43 H, add hint.
44 Add the displayed hint as review comment. Use this if you want the
45 translator to see the corresponding warning or error but you have
46 no correction.
47
48 N, next line.
49 Skip the rest of this line.
50
51 X, exit and discard all changes.
52 Quit without saving modifications, the script ask you for
53 confirmation, you have to enter `yes' to exit otherwise parsing
54 starts again at the current mistake.
55
56 a, add in dictionary.
57 Add the highlighted word to you personal dictionary, capitalized as
58 it is.
59
60 l, add lowercase in dictionary.
61 Lowercase the highlighted word to add it to your personal
62 dictionary.
63
64 i, ignore word.
65 Ignore the highlighted word, same as Enter.
66
67 I, ignore all.
68 Ignore the highlighted word and add it to your session dictionary.
69
71 Verbosity level:
72
73 -q, --quiet
74 quiet mode.
75
76 -v verbose, start at level $Debug + 1, add more for more verbosity
77 (see below).
78
79 --verbose n
80 set verbosity level to n (see below).
81
82 Files:
83
84 -i, --input
85 input filename, can be '-' to read data from standard input.
86
87 -o, --output
88 output filename, can be '-' to write data to standard ouput. If no
89 output filename is provided, input file is backed up with `bak_ext'
90 extension and input filename is used.
91
92 Spell check:
93
94 -s, --spell
95 check spelling with Aspell.
96
97 -d language, --dict language
98 use language dictionary for Aspell.
99
100 -n, --nospell
101 don't check spelling.
102
103 Mode:
104
105 -r, --review
106 review mode, add comments on lines beginning with $Comment after
107 parsed line.
108
109 -t, --trans
110 translator mode, don't add comments, just fix errors.
111
112 others:
113
114 --rules ruleset
115 use ruleset rules set.
116
117 --type filetype
118 use filetype whatever the file type is.
119
120 --dump
121 Dump the rules to check and exit, use this for debugging purposes.
122
123 -V, --version
124 print version and exit.
125
126 -h, --help
127 print a short usage message and exit.
128
129 Verbosity Level
130
131 0 quiet, normal
132 only warnings and errors
133
134 1 debug
135 names of subroutines
136
137 2 debug verbose
138 names and arguments of subroutines
139
140 3 .. 5 debug very verbose
141 output parsing and checking details
142
144 acheck(5), acheck-rules(5)
145
147 Nicolas Bertolissio <bertol@debian.org>
148
150 Hey! The above document had some coding errors, which are explained
151 below:
152
153 Around line 196:
154 You forgot a '=back' before '=head1'
155
156
157
158perl v5.10.0 2003-10-05 ACHECK.1(8)