update seedrecover wordlist support & add new unit tests
* support seeds w/just the first four letters of each word (for #114)
* add new BIP39 languages Italian and Korean
* remove Electrum2 French language (was planned but never finished)
* restrict Electrum2 seeds to those languages supported by Electrum2
* update wordlists/README.md to reflect all of the above
* add new seedrecover unit tests for each type of seed typo
*seedrecover.py* attempts to guess the correct language of the mnemonic it is trying to recover, however it may not always guess correctly (in particular when it comes to Chinese). You can instruct *seedrecover.py* to use a specific language via the `--language LANG-CODE` option.
14
14
15
-
The available `LANG-CODE`s are taken from the filenames in the same directory as this file; they follow the first `-` in their filenames. Specifically, in alphabetical order they are:
15
+
The available `LANG-CODE`s (basedonISO639-1)are taken from the filenames in the same directory as this file; they follow the first `-` in their filenames. Specifically, in alphabetical order they are:
16
16
17
-
* Chinese (simplified)(BIP-39only) - `zh-hans`
18
-
* Chinese (traditional) (BIP-39 only) - `zh-hant`
17
+
* Chinese, simplified - `zh-hans`
18
+
* Chinese, traditional (BIP-39 only) - `zh-hant`
19
19
* English - `en`
20
-
* French (Electrum2.x only) - `fr`
20
+
* French (BIP-39 only) - `fr`
21
+
* Italian (BIP-39 only) - `it`
21
22
* Japanese - `ja`
23
+
* Korean (BIP-39 only) - `ko`
22
24
* Portuguese (Electrum 2.x only) - `pt`
23
25
* Spanish - `es`
24
26
27
+
There are also four "firstfour" language codes based on the ones above: `en-firstfour`, `es-firstfour`, `fr-firstfour`, and `it-firstfour`. Wallet software that uses mnemonics which include just the first four letters of each word can use one of these language codes.