Scroll to navigation

ACHECK.1(1) User Contributed Perl Documentation ACHECK.1(1)

NAME

acheck - Check common localization mistakes

SYNOPSIS

acheck [OPTIONS] [INPUT_FILE]

DESCRIPTION

This program parses a file checking for syntax rules and optionally asking Aspell for checking word spelling. It makes fix suggestions and outputs a corrected file accordingly adding review comments if requested.

It tries to find the file type according to the extension or the first lines and loads rules accordingly.

It displays lines when they are parse.

When an error is found, a menu is displayed. Just press Enter if you don't want to change anything. If a choice suits you, enter the corresponding number. If you want to fix it but no choice is correct, enter a space, then you will be asked for a string to replace the highlighted text. The script will replace the highlighted text with your choice and parse it again for new errors.

Here are all the available commands:

Ignore.
Rewrite the last line, suggestions and hints.
Edit the highlighted text.
Edit the whole line.
Add the displayed hint as review comment. Use this if you want the translator to see the corresponding warning or error but you have no correction.
Skip the rest of this line.
Quit without saving modifications, the script ask you for confirmation, you have to enter `yes' to exit otherwise parsing starts again at the current mistake.
Add the highlighted word to you personal dictionary, capitalized as it is.
Lowercase the highlighted word to add it to your personal dictionary.
Ignore the highlighted word, same as Enter.
Ignore the highlighted word and add it to your session dictionary.

OPTIONS

Verbosity level:

quiet mode.
verbose, start at level $Debug + 1, add more for more verbosity (see below).
set verbosity level to n (see below).

Files:

input filename, can be '-' to read data from standard input.
output filename, can be '-' to write data to standard output. If no output filename is provided, input file is backed up with `bak_ext' extension and input filename is used.

Spell check:

check spelling with Aspell.
use language dictionary for Aspell.
don't check spelling.

Mode:

review mode, add comments on lines beginning with $Comment after parsed line.
translator mode, don't add comments, just fix errors.

others:

use ruleset rules set.
use filetype whatever the file type is.
Dump the rules to check and exit, use this for debugging purposes.
print version and exit.
print a short usage message and exit.

Verbosity Level

0 quiet, normal
only warnings and errors
1 debug
names of subroutines
2 debug verbose
names and arguments of subroutines
3 .. 5 debug very verbose
output parsing and checking details

SEE ALSO

acheck(5), acheck-rules(5)

AUTHOR

Nicolas Bertolissio <bertol@debian.org>

2017-01-03 perl v5.24.1