Δημοσιεύτηκε: 19 Δεκ 2011, 17:51
Από το man hunspell
Δεν νομίζω να μπορεί να κάνει ακριβώς αυτό που θέλεις, αλλά αν το χρησιμοποιήσεις με το δίγλωσσο λεξικό, θα πάρεις τα λάθη (αγγλικά και ελληνικά) και τις εντολές σαν αποτέλεσμα, με το & ή το # μπροστά. Από αυτό το σημείο, είναι μάλλον εύκολο να διορθώσεις όλα τα ορθογραφικά λάθη του αρχείου...
- Κώδικας: Επιλογή όλων
Hunspell is fashioned after the Ispell program. The most common usage
is "hunspell" or "hunspell filename". Without filename parameter,
hunspell checks the standard input. Typing "cat" and "exsample" in
two input lines, we got an asterisk (it means "cat" is a correct word)
and a line with corrections:
$ hunspell -d en_US
Hunspell 1.2.3
*
& exsample 4 0: example, examples, ex sample, ex-sample
Correct words signed with an '*', '+' or '-', unrecognized words
signed with '#' or '&' in output lines (see later). (Close the stan‐
dard input with Ctrl-d on Unix/Linux and Ctrl-Z Enter or Ctrl-C on
Windows.)
With filename parameters, hunspell will display each word of the files
which does not appear in the dictionary at the top of the screen and
allow you to change it. If there are "near misses" in the dictionary,
then they are also displayed on following lines. Finally, the line
containing the word and the previous line are printed at the bottom of
the screen. If your terminal can display in reverse video, the word
itself is highlighted. You have the option of replacing the word com‐
pletely, or choosing one of the suggested words.
Δεν νομίζω να μπορεί να κάνει ακριβώς αυτό που θέλεις, αλλά αν το χρησιμοποιήσεις με το δίγλωσσο λεξικό, θα πάρεις τα λάθη (αγγλικά και ελληνικά) και τις εντολές σαν αποτέλεσμα, με το & ή το # μπροστά. Από αυτό το σημείο, είναι μάλλον εύκολο να διορθώσεις όλα τα ορθογραφικά λάθη του αρχείου...