Cut short word lists to 1626 words, added attribution to Electrum, some bug fixes

This commit is contained in:
Oran Juice 2014-10-02 21:14:29 +05:30
parent 4517bac7f3
commit fa723d8af8
No known key found for this signature in database
GPG key ID: 71C5AF46CCB28124
8 changed files with 8511 additions and 9604 deletions

View file

@ -111,7 +111,7 @@ namespace
// Iterate through all the words and see if they're all present // Iterate through all the words and see if they're all present
for (it2 = seed.begin(), it3 = trimmed_seed.begin(); for (it2 = seed.begin(), it3 = trimmed_seed.begin();
it2 != seed.end() && it3 != trimmed_seed.end(); it2++, it3++) it2 != seed.end(); it2++, it3++)
{ {
if (has_checksum) if (has_checksum)
{ {
@ -235,10 +235,11 @@ namespace crypto
// Checksum fail // Checksum fail
return false; return false;
} }
seed.pop_back();
} }
std::vector<uint32_t> matched_indices; std::vector<uint32_t> matched_indices;
uint32_t word_list_length; uint32_t word_list_length = 0;
if (!find_seed_language(seed, has_checksum, matched_indices, word_list_length, language_name)) if (!find_seed_language(seed, has_checksum, matched_indices, word_list_length, language_name))
{ {
return false; return false;

View file

@ -1,3 +1,32 @@
// Word list originally created as part of the Electrum project, Copyright (C) 2014 Thomas Voegtlin
// Copyright (c) 2014, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ENGLISH_H #ifndef ENGLISH_H
#define ENGLISH_H #define ENGLISH_H
@ -1639,429 +1668,7 @@ namespace Language
"skull", "skull",
"slab", "slab",
"slam", "slam",
"sleep", "sleep"
"slender",
"slice",
"slide",
"slight",
"slim",
"slogan",
"slot",
"slow",
"slush",
"small",
"smart",
"smile",
"smoke",
"smooth",
"snack",
"snake",
"snap",
"sniff",
"snow",
"soap",
"soccer",
"social",
"sock",
"soda",
"soft",
"solar",
"soldier",
"solid",
"solution",
"solve",
"someone",
"song",
"soon",
"sorry",
"sort",
"soul",
"sound",
"soup",
"source",
"south",
"space",
"spare",
"spatial",
"spawn",
"speak",
"special",
"speed",
"spell",
"spend",
"sphere",
"spice",
"spider",
"spike",
"spin",
"spirit",
"split",
"spoil",
"sponsor",
"spoon",
"sport",
"spot",
"spray",
"spread",
"spring",
"spy",
"square",
"squeeze",
"squirrel",
"stable",
"stadium",
"staff",
"stage",
"stairs",
"stamp",
"stand",
"start",
"state",
"stay",
"steak",
"steel",
"stem",
"step",
"stereo",
"stick",
"still",
"sting",
"stock",
"stomach",
"stone",
"stool",
"story",
"stove",
"strategy",
"street",
"strike",
"strong",
"struggle",
"student",
"stuff",
"stumble",
"style",
"subject",
"submit",
"subway",
"success",
"such",
"sudden",
"suffer",
"sugar",
"suggest",
"suit",
"summer",
"sun",
"sunny",
"sunset",
"super",
"supply",
"supreme",
"sure",
"surface",
"surge",
"surprise",
"surround",
"survey",
"suspect",
"sustain",
"swallow",
"swamp",
"swap",
"swarm",
"swear",
"sweet",
"swift",
"swim",
"swing",
"switch",
"sword",
"symbol",
"symptom",
"syrup",
"system",
"table",
"tackle",
"tag",
"tail",
"talent",
"talk",
"tank",
"tape",
"target",
"task",
"taste",
"tattoo",
"taxi",
"teach",
"team",
"tell",
"ten",
"tenant",
"tennis",
"tent",
"term",
"test",
"text",
"thank",
"that",
"theme",
"then",
"theory",
"there",
"they",
"thing",
"this",
"thought",
"three",
"thrive",
"throw",
"thumb",
"thunder",
"ticket",
"tide",
"tiger",
"tilt",
"timber",
"time",
"tiny",
"tip",
"tired",
"tissue",
"title",
"toast",
"tobacco",
"today",
"toddler",
"toe",
"together",
"toilet",
"token",
"tomato",
"tomorrow",
"tone",
"tongue",
"tonight",
"tool",
"tooth",
"top",
"topic",
"topple",
"torch",
"tornado",
"tortoise",
"toss",
"total",
"tourist",
"toward",
"tower",
"town",
"toy",
"track",
"trade",
"traffic",
"tragic",
"train",
"transfer",
"trap",
"trash",
"travel",
"tray",
"treat",
"tree",
"trend",
"trial",
"tribe",
"trick",
"trigger",
"trim",
"trip",
"trophy",
"trouble",
"truck",
"true",
"truly",
"trumpet",
"trust",
"truth",
"try",
"tube",
"tuition",
"tumble",
"tuna",
"tunnel",
"turkey",
"turn",
"turtle",
"twelve",
"twenty",
"twice",
"twin",
"twist",
"two",
"type",
"typical",
"ugly",
"umbrella",
"unable",
"unaware",
"uncle",
"uncover",
"under",
"undo",
"unfair",
"unfold",
"unhappy",
"uniform",
"unique",
"unit",
"universe",
"unknown",
"unlock",
"until",
"unusual",
"unveil",
"update",
"upgrade",
"uphold",
"upon",
"upper",
"upset",
"urban",
"urge",
"usage",
"use",
"used",
"useful",
"useless",
"usual",
"utility",
"vacant",
"vacuum",
"vague",
"valid",
"valley",
"valve",
"van",
"vanish",
"vapor",
"various",
"vast",
"vault",
"vehicle",
"velvet",
"vendor",
"venture",
"venue",
"verb",
"verify",
"version",
"very",
"vessel",
"veteran",
"viable",
"vibrant",
"vicious",
"victory",
"video",
"view",
"village",
"vintage",
"violin",
"virtual",
"virus",
"visa",
"visit",
"visual",
"vital",
"vivid",
"vocal",
"voice",
"void",
"volcano",
"volume",
"vote",
"voyage",
"wage",
"wagon",
"wait",
"walk",
"wall",
"walnut",
"want",
"warfare",
"warm",
"warrior",
"wash",
"wasp",
"waste",
"water",
"wave",
"way",
"wealth",
"weapon",
"wear",
"weasel",
"weather",
"web",
"wedding",
"weekend",
"weird",
"welcome",
"west",
"wet",
"whale",
"what",
"wheat",
"wheel",
"when",
"where",
"whip",
"whisper",
"wide",
"width",
"wife",
"wild",
"will",
"win",
"window",
"wine",
"wing",
"wink",
"winner",
"winter",
"wire",
"wisdom",
"wise",
"wish",
"witness",
"wolf",
"woman",
"wonder",
"wood",
"wool",
"word",
"work",
"world",
"worry",
"worth",
"wrap",
"wreck",
"wrestle",
"wrist",
"write",
"wrong",
"yard",
"year",
"yellow",
"you",
"young",
"youth",
"zebra",
"zero",
"zone",
"zoo"
}); });
word_map = new std::unordered_map<std::string, uint32_t>; word_map = new std::unordered_map<std::string, uint32_t>;
trimmed_word_map = new std::unordered_map<std::string, uint32_t>; trimmed_word_map = new std::unordered_map<std::string, uint32_t>;

View file

@ -1,3 +1,32 @@
// Word list originally created as part of the Electrum project, Copyright (C) 2014 Thomas Voegtlin
// Copyright (c) 2014, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef JAPANESE_H #ifndef JAPANESE_H
#define JAPANESE_H #define JAPANESE_H
@ -1639,429 +1668,7 @@ namespace Language
"はんきょう", "はんきょう",
"はんこ", "はんこ",
"はんこう", "はんこう",
"はんしゃ", "はんしゃ"
"はんしん",
"はんすう",
"はんたい",
"はんだん",
"ぱんち",
"ぱんつ",
"はんてい",
"はんてん",
"はんとし",
"はんのう",
"はんぱ",
"はんぶん",
"はんぺん",
"はんぼうき",
"はんめい",
"はんめん",
"はんらん",
"はんろん",
"ひいき",
"ひうん",
"ひえる",
"ひかく",
"ひかり",
"ひかん",
"ひく",
"ひくい",
"ひけつ",
"ひこうき",
"ひこく",
"ひざ",
"ぴざ",
"ひさい",
"ひさしぶり",
"ひさん",
"ひし",
"ひじ",
"ひしょ",
"ひじょう",
"ひそか",
"ひそむ",
"ひたむき",
"ひたる",
"ひつぎ",
"ひっこし",
"ひっし",
"ひっす",
"ひつぜん",
"ひつよう",
"ひてい",
"ひと",
"ひとごみ",
"ひな",
"ひなん",
"ひねる",
"ひはん",
"ひびく",
"ひひょう",
"ひふ",
"ひほう",
"ひま",
"ひまん",
"ひみつ",
"ひめ",
"ひめい",
"ひめじし",
"ひも",
"ひやけ",
"ひやす",
"ひゆ",
"ひよう",
"びょうき",
"ひらく",
"ひりつ",
"ひりょう",
"ひる",
"ひれい",
"ひろい",
"ひろう",
"ひわ",
"ひんかく",
"ひんけつ",
"ひんこん",
"ひんし",
"ひんしつ",
"ひんしゅ",
"ひんそう",
"ぴんち",
"ひんぱん",
"びんぼう",
"ふあん",
"ふいうち",
"ふうけい",
"ふうせん",
"ふうとう",
"ふうふ",
"ふえ",
"ふえる",
"ふおん",
"ふか",
"ふかい",
"ふきん",
"ふく",
"ふくざつ",
"ふこう",
"ふさい",
"ふざい",
"ふしぎ",
"ふじみ",
"ふすま",
"ふせい",
"ふせぐ",
"ふそく",
"ふた",
"ふたん",
"ふち",
"ふちょう",
"ふつう",
"ふっかつ",
"ふっき",
"ふっきん",
"ふっこく",
"ふとる",
"ふとん",
"ふね",
"ふのう",
"ふはい",
"ふひょう",
"ふへん",
"ふまん",
"ふみん",
"ふむ",
"ふめつ",
"ふめん",
"ふゆ",
"ふよう",
"ふりこ",
"ふりる",
"ふる",
"ふるい",
"ふろ",
"ふんいき",
"ふんか",
"ぶんか",
"ぶんぐ",
"ふんしつ",
"ぶんせき",
"ふんそう",
"へい",
"へいき",
"へいさ",
"へいわ",
"へきが",
"へこむ",
"へそ",
"へた",
"べつ",
"べっど",
"ぺっと",
"へび",
"へや",
"へる",
"へんか",
"へんかん",
"へんきゃく",
"へんきん",
"へんさい",
"へんたい",
"ほあん",
"ほいく",
"ほうほう",
"ほえる",
"ほおん",
"ほかん",
"ほきょう",
"ぼきん",
"ほくろ",
"ほけつ",
"ほけん",
"ほこう",
"ほこる",
"ほさ",
"ほし",
"ほしつ",
"ほしゅ",
"ほしょう",
"ほす",
"ほせい",
"ぼせい",
"ほそい",
"ほそく",
"ほたて",
"ほたる",
"ぼち",
"ほっきょく",
"ほっさ",
"ほったん",
"ほとんど",
"ほめる",
"ほる",
"ほんい",
"ほんき",
"ほんけ",
"ほんしつ",
"まいにち",
"まう",
"まかい",
"まかせる",
"まく",
"まける",
"まこと",
"まさつ",
"ますく",
"まぜる",
"まち",
"まつ",
"まつり",
"まとめ",
"まなぶ",
"まぬけ",
"まね",
"まねく",
"まひ",
"まほう",
"まめ",
"まもる",
"まゆげ",
"まよう",
"まる",
"まろやか",
"まわす",
"まわり",
"まんが",
"まんかい",
"まんきつ",
"まんぞく",
"みいら",
"みうち",
"みかた",
"みかん",
"みぎ",
"みけん",
"みこん",
"みすい",
"みすえる",
"みせ",
"みそ",
"みち",
"みてい",
"みとめる",
"みなみかさい",
"みねらる",
"みのう",
"みほん",
"みみ",
"みもと",
"みやげ",
"みらい",
"みりょく",
"みる",
"みわく",
"むえき",
"むえん",
"むかし",
"むく",
"むこ",
"むさぼる",
"むし",
"むすこ",
"むすめ",
"むせる",
"むせん",
"むだ",
"むち",
"むなしい",
"むね",
"むのう",
"むやみ",
"むよう",
"むら",
"むり",
"むりょう",
"むれ",
"むろん",
"もうどうけん",
"もえる",
"もぎ",
"もくし",
"もくてき",
"もし",
"もんく",
"もんだい",
"やすい",
"やすみ",
"やそう",
"やたい",
"やちん",
"やね",
"やぶる",
"やま",
"やみ",
"やめる",
"ややこしい",
"やよい",
"やり",
"やわらかい",
"ゆけつ",
"ゆしゅつ",
"ゆせん",
"ゆそう",
"ゆたか",
"ゆちゃく",
"ゆでる",
"ゆび",
"ゆびわ",
"ゆめ",
"ゆれる",
"よう",
"よかぜ",
"よかん",
"よきん",
"よくせい",
"よくぼう",
"よけい",
"よさん",
"よそう",
"よそく",
"よち",
"よてい",
"よどがわく",
"よねつ",
"よむ",
"よめ",
"よやく",
"よゆう",
"よる",
"よろこぶ",
"らいう",
"らくがき",
"らくご",
"らくさつ",
"らくだ",
"らくたん",
"らしんばん",
"らせん",
"らぞく",
"らたい",
"らち",
"らっか",
"らっかせい",
"られつ",
"りえき",
"りか",
"りかい",
"りきさく",
"りきせつ",
"りく",
"りくぐん",
"りくつ",
"りけん",
"りこう",
"りし",
"りす",
"りせい",
"りそう",
"りそく",
"りてん",
"りねん",
"りゅう",
"りゆう",
"りゅうがく",
"りゅうこう",
"りゅうし",
"りゅうねん",
"りよう",
"りょうかい",
"りょうきん",
"りょうしん",
"りょうて",
"りょうど",
"りょうほう",
"りょうり",
"りりく",
"りれき",
"りろん",
"りんご",
"るいじ",
"るす",
"れいかん",
"れいぎ",
"れいせい",
"れいぞうこ",
"れいとう",
"れきし",
"れきだい",
"れんあい",
"れんけい",
"れんけつ",
"れんこう",
"れんこん",
"れんさ",
"れんさい",
"れんさく",
"れんしゃ",
"れんしゅう",
"れんぞく",
"ろうか",
"ろうご",
"ろうじん",
"ろうそく",
"ろか",
"ろくが",
"ろこつ",
"ろしゅつ",
"ろせん",
"ろてん",
"ろめん",
"ろれつ",
"ろんぎ",
"ろんぱ",
"ろんぶん",
"ろんり",
"わじまし"
}); });
word_map = new std::unordered_map<std::string, uint32_t>; word_map = new std::unordered_map<std::string, uint32_t>;
trimmed_word_map = new std::unordered_map<std::string, uint32_t>; trimmed_word_map = new std::unordered_map<std::string, uint32_t>;

View file

@ -1,3 +1,32 @@
// Word list originally created as part of the Electrum project, Copyright (C) 2014 Thomas Voegtlin
// Copyright (c) 2014, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef OLD_ENGLISH_H #ifndef OLD_ENGLISH_H
#define OLD_ENGLISH_H #define OLD_ENGLISH_H

View file

@ -1,3 +1,31 @@
// Copyright (c) 2014, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef PORTUGUESE_H #ifndef PORTUGUESE_H
#define PORTUGUESE_H #define PORTUGUESE_H

View file

@ -1,3 +1,31 @@
// Copyright (c) 2014, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace Language namespace Language
{ {
template <class T> template <class T>

View file

@ -1,3 +1,32 @@
// Word list originally created as part of the Electrum project, Copyright (C) 2014 Thomas Voegtlin
// Copyright (c) 2014, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef SPANISH_H #ifndef SPANISH_H
#define SPANISH_H #define SPANISH_H
@ -1639,429 +1668,7 @@ namespace Language
"riqueza", "riqueza",
"risa", "risa",
"ritmo", "ritmo",
"rito", "rito"
"rizo",
"roble",
"roce",
"rociar",
"rodar",
"rodeo",
"rodilla",
"roer",
"rojizo",
"rojo",
"romero",
"romper",
"ron",
"ronco",
"ronda",
"ropa",
"ropero",
"rosa",
"rosca",
"rostro",
"rotar",
"rubí",
"rubor",
"rudo",
"rueda",
"rugir",
"ruido",
"ruina",
"ruleta",
"rulo",
"rumbo",
"rumor",
"ruptura",
"ruta",
"rutina",
"sábado",
"saber",
"sabio",
"sable",
"sacar",
"sagaz",
"sagrado",
"sala",
"saldo",
"salero",
"salir",
"salmón",
"salón",
"salsa",
"salto",
"salud",
"salvar",
"samba",
"sanción",
"sandía",
"sanear",
"sangre",
"sanidad",
"sano",
"santo",
"sapo",
"saque",
"sardina",
"sartén",
"sastre",
"satán",
"sauna",
"saxofón",
"sección",
"seco",
"secreto",
"secta",
"sed",
"seguir",
"seis",
"sello",
"selva",
"semana",
"semilla",
"senda",
"sensor",
"señal",
"señor",
"separar",
"sepia",
"sequía",
"ser",
"serie",
"sermón",
"servir",
"sesenta",
"sesión",
"seta",
"setenta",
"severo",
"sexo",
"sexto",
"sidra",
"siesta",
"siete",
"siglo",
"signo",
"sílaba",
"silbar",
"silencio",
"silla",
"símbolo",
"simio",
"sirena",
"sistema",
"sitio",
"situar",
"sobre",
"socio",
"sodio",
"sol",
"solapa",
"soldado",
"soledad",
"sólido",
"soltar",
"solución",
"sombra",
"sondeo",
"sonido",
"sonoro",
"sonrisa",
"sopa",
"soplar",
"soporte",
"sordo",
"sorpresa",
"sorteo",
"sostén",
"sótano",
"suave",
"subir",
"suceso",
"sudor",
"suegra",
"suelo",
"sueño",
"suerte",
"sufrir",
"sujeto",
"sultán",
"sumar",
"superar",
"suplir",
"suponer",
"supremo",
"sur",
"surco",
"sureño",
"surgir",
"susto",
"sutil",
"tabaco",
"tabique",
"tabla",
"tabú",
"taco",
"tacto",
"tajo",
"talar",
"talco",
"talento",
"talla",
"talón",
"tamaño",
"tambor",
"tango",
"tanque",
"tapa",
"tapete",
"tapia",
"tapón",
"taquilla",
"tarde",
"tarea",
"tarifa",
"tarjeta",
"tarot",
"tarro",
"tarta",
"tatuaje",
"tauro",
"taza",
"tazón",
"teatro",
"techo",
"tecla",
"técnica",
"tejado",
"tejer",
"tejido",
"tela",
"teléfono",
"tema",
"temor",
"templo",
"tenaz",
"tender",
"tener",
"tenis",
"tenso",
"teoría",
"terapia",
"terco",
"término",
"ternura",
"terror",
"tesis",
"tesoro",
"testigo",
"tetera",
"texto",
"tez",
"tibio",
"tiburón",
"tiempo",
"tienda",
"tierra",
"tieso",
"tigre",
"tijera",
"tilde",
"timbre",
"tímido",
"timo",
"tinta",
"tío",
"típico",
"tipo",
"tira",
"tirón",
"titán",
"títere",
"título",
"tiza",
"toalla",
"tobillo",
"tocar",
"tocino",
"todo",
"toga",
"toldo",
"tomar",
"tono",
"tonto",
"topar",
"tope",
"toque",
"tórax",
"torero",
"tormenta",
"torneo",
"toro",
"torpedo",
"torre",
"torso",
"tortuga",
"tos",
"tosco",
"toser",
"tóxico",
"trabajo",
"tractor",
"traer",
"tráfico",
"trago",
"traje",
"tramo",
"trance",
"trato",
"trauma",
"trazar",
"trébol",
"tregua",
"treinta",
"tren",
"trepar",
"tres",
"tribu",
"trigo",
"tripa",
"triste",
"triunfo",
"trofeo",
"trompa",
"tronco",
"tropa",
"trote",
"trozo",
"truco",
"trueno",
"trufa",
"tubería",
"tubo",
"tuerto",
"tumba",
"tumor",
"túnel",
"túnica",
"turbina",
"turismo",
"turno",
"tutor",
"ubicar",
"úlcera",
"umbral",
"unidad",
"unir",
"universo",
"uno",
"untar",
"uña",
"urbano",
"urbe",
"urgente",
"urna",
"usar",
"usuario",
"útil",
"utopía",
"uva",
"vaca",
"vacío",
"vacuna",
"vagar",
"vago",
"vaina",
"vajilla",
"vale",
"válido",
"valle",
"valor",
"válvula",
"vampiro",
"vara",
"variar",
"varón",
"vaso",
"vecino",
"vector",
"vehículo",
"veinte",
"vejez",
"vela",
"velero",
"veloz",
"vena",
"vencer",
"venda",
"veneno",
"vengar",
"venir",
"venta",
"venus",
"ver",
"verano",
"verbo",
"verde",
"vereda",
"verja",
"verso",
"verter",
"vía",
"viaje",
"vibrar",
"vicio",
"víctima",
"vida",
"vídeo",
"vidrio",
"viejo",
"viernes",
"vigor",
"vil",
"villa",
"vinagre",
"vino",
"viñedo",
"violín",
"viral",
"virgo",
"virtud",
"visor",
"víspera",
"vista",
"vitamina",
"viudo",
"vivaz",
"vivero",
"vivir",
"vivo",
"volcán",
"volumen",
"volver",
"voraz",
"votar",
"voto",
"voz",
"vuelo",
"vulgar",
"yacer",
"yate",
"yegua",
"yema",
"yerno",
"yeso",
"yodo",
"yoga",
"yogur",
"zafiro",
"zanja",
"zapato",
"zarza",
"zona",
"zorro",
"zumo",
"zurdo"
}); });
word_map = new std::unordered_map<std::string, uint32_t>; word_map = new std::unordered_map<std::string, uint32_t>;
trimmed_word_map = new std::unordered_map<std::string, uint32_t>; trimmed_word_map = new std::unordered_map<std::string, uint32_t>;