ACHECK.1(1)

✨ NAME ✨

acheck β€” Check common localization mistakes πŸ’–

Okay bestie, acheck is part of the User Contributed Perl Documentation crew, and it is a whole mood 🧚


πŸ“‹ SYNOPSIS πŸ“‹

acheck [OPTIONS] [INPUT_FILE]

πŸ’… DESCRIPTION πŸ’…

Okay so acheck literally parses your file and checks it against syntax rules. If you want, it can also ask Aspell to check your spelling πŸ”₯ It suggests fixes, spits out a corrected file, and can add review comments too if you ask nicely ✨

It figures out what kind of file you've got from the extension or the first few lines, then loads the right rules for it πŸ¦‹

It shows you each line as it gets parsed πŸ‘€

When it finds an error, a menu pops up. Just press Enter if you don't want to change anything 🫢 If one of the choices is giving what you want, type its number. If you want to fix it but none of the choices are right, enter a space and it'll ask for a string to swap in for the highlighted text. Then it replaces the highlighted text with your pick and parses everything again to hunt for new errors πŸŽ€

Here's the full list of commands, no cap πŸ’…

  • Enter, ignore β€” Ignore it, you're good 🌸
  • Ctrl+L, redraw β€” Redraw the last line, the suggestions, and the hints ✨
  • Space, edit β€” Edit the highlighted text πŸ–ŠοΈ
  • E, edit line β€” Edit the whole line πŸ’œ
  • H, add hint β€” Add the displayed hint as a review comment. Use this when you want the translator to see the warning or error but you don't have a correction 🧚
  • N, next line β€” Skip the rest of this line ⏭️
  • X, exit and discard all changes β€” Quit without saving your changes. The script asks for confirmation, and you have to type yes' to actually leave. Otherwise, parsing starts over at the current mistake πŸ’€
Careful bestie: X throws your changes out the window, so only use it if you really mean it πŸ™ˆ
  • a, add in dictionary β€” Add the highlighted word to your personal dictionary, capitalized exactly as it is πŸ“–
  • l, add lowercase in dictionary β€” Lowercase the highlighted word, then add it to your personal dictionary πŸ“
  • i, ignore word β€” Ignore the highlighted word, same as Enter 🌈
  • I, ignore all β€” Ignore the highlighted word and add it to your session dictionary πŸ‘‘

πŸŽ€ OPTIONS πŸŽ€

🌸 Verbosity level

  • -q, --quiet β€” Quiet mode, shhh 🀫
  • -v β€” Verbose mode. It starts at level $Debug + 1, and you can add more of them for more verbosity (see below) πŸ“’
  • --verbose n β€” Set the verbosity level to n (see below) 🎚️

πŸ“ Files

  • -i, --input β€” Input filename. It can be '-' to read data from standard input πŸ“₯
  • -o, --output β€” Output filename. It can be '-' to write data to standard output. If you don't give an output filename, your input file gets backed up with the bak_ext' extension and the input filename gets used πŸ“€

πŸ” Spell check

  • -s, --spell β€” Check spelling with Aspell πŸ”€
  • -d language, --dict language β€” Use the language dictionary for Aspell 🌍
  • -n, --nospell β€” Don't check spelling πŸ™…β€β™€οΈ

πŸ¦‹ Mode

  • -r, --review β€” Review mode. Adds comments on lines beginning with $Comment after the parsed line πŸ’¬
  • -t, --trans β€” Translator mode. No comments, just fixes the errors 🧁

πŸŽ€ Others

  • --rules ruleset β€” Use the ruleset rules set πŸ“œ
  • --type filetype β€” Use filetype no matter what the file type actually is 🫑
  • --dump β€” Dumps the rules to check, then exits. Use this for debugging purposes πŸ› οΈ
  • -V, --version β€” Prints the version and exits πŸ”’
  • -h, --help β€” Prints a short usage message and exits πŸ†˜

🌈 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) β€” go read these next, they're giving sequel πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Nicolas Bertolissio <bertol@debian.org> β€” the queen who made this whole thing 🫢


That's the tea, bestie! πŸ’– Love you, mwah 😘 This page came from perl v5.24.1, dated 2017-01-03, and it's ACHECK.1(1) forever 🌈✨