mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
mnemonics: new Lojban word list
Word list authored by: sorpaas Sources: lo gimste jo'u lo ma'oste (http://guskant.github.io/lojbo/gismu-cmavo.html) N-grams of Lojban corpus (https://mw.lojban.org/papri/N-grams_of_Lojban_corpus)
This commit is contained in:
parent
21c2c08041
commit
551a8ea60e
4 changed files with 1706 additions and 3 deletions
|
@ -46,7 +46,8 @@ set(mnemonics_private_headers
|
||||||
russian.h
|
russian.h
|
||||||
singleton.h
|
singleton.h
|
||||||
spanish.h
|
spanish.h
|
||||||
esperanto.h)
|
esperanto.h
|
||||||
|
lojban.h)
|
||||||
|
|
||||||
monero_private_headers(mnemonics
|
monero_private_headers(mnemonics
|
||||||
${mnemonics_private_headers})
|
${mnemonics_private_headers})
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
#include "japanese.h"
|
#include "japanese.h"
|
||||||
#include "russian.h"
|
#include "russian.h"
|
||||||
#include "esperanto.h"
|
#include "esperanto.h"
|
||||||
|
#include "lojban.h"
|
||||||
#include "english_old.h"
|
#include "english_old.h"
|
||||||
#include "language_base.h"
|
#include "language_base.h"
|
||||||
#include "singleton.h"
|
#include "singleton.h"
|
||||||
|
@ -97,6 +98,7 @@ namespace
|
||||||
Language::Singleton<Language::Japanese>::instance(),
|
Language::Singleton<Language::Japanese>::instance(),
|
||||||
Language::Singleton<Language::Russian>::instance(),
|
Language::Singleton<Language::Russian>::instance(),
|
||||||
Language::Singleton<Language::Esperanto>::instance(),
|
Language::Singleton<Language::Esperanto>::instance(),
|
||||||
|
Language::Singleton<Language::Lojban>::instance(),
|
||||||
Language::Singleton<Language::EnglishOld>::instance()
|
Language::Singleton<Language::EnglishOld>::instance()
|
||||||
});
|
});
|
||||||
Language::Base *fallback = NULL;
|
Language::Base *fallback = NULL;
|
||||||
|
@ -360,6 +362,10 @@ namespace crypto
|
||||||
{
|
{
|
||||||
language = Language::Singleton<Language::Esperanto>::instance();
|
language = Language::Singleton<Language::Esperanto>::instance();
|
||||||
}
|
}
|
||||||
|
else if (language_name == "Lojban")
|
||||||
|
{
|
||||||
|
language = Language::Singleton<Language::Lojban>::instance();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -415,7 +421,8 @@ namespace crypto
|
||||||
Language::Singleton<Language::Russian>::instance(),
|
Language::Singleton<Language::Russian>::instance(),
|
||||||
Language::Singleton<Language::Japanese>::instance(),
|
Language::Singleton<Language::Japanese>::instance(),
|
||||||
Language::Singleton<Language::Chinese_Simplified>::instance(),
|
Language::Singleton<Language::Chinese_Simplified>::instance(),
|
||||||
Language::Singleton<Language::Esperanto>::instance()
|
Language::Singleton<Language::Esperanto>::instance(),
|
||||||
|
Language::Singleton<Language::Lojban>::instance()
|
||||||
});
|
});
|
||||||
for (std::vector<Language::Base*>::iterator it = language_instances.begin();
|
for (std::vector<Language::Base*>::iterator it = language_instances.begin();
|
||||||
it != language_instances.end(); it++)
|
it != language_instances.end(); it++)
|
||||||
|
|
1693
src/mnemonics/lojban.h
Normal file
1693
src/mnemonics/lojban.h
Normal file
File diff suppressed because it is too large
Load diff
|
@ -45,6 +45,7 @@
|
||||||
#include "mnemonics/french.h"
|
#include "mnemonics/french.h"
|
||||||
#include "mnemonics/dutch.h"
|
#include "mnemonics/dutch.h"
|
||||||
#include "mnemonics/esperanto.h"
|
#include "mnemonics/esperanto.h"
|
||||||
|
#include "mnemonics/lojban.h"
|
||||||
#include "mnemonics/english_old.h"
|
#include "mnemonics/english_old.h"
|
||||||
#include "mnemonics/language_base.h"
|
#include "mnemonics/language_base.h"
|
||||||
#include "mnemonics/singleton.h"
|
#include "mnemonics/singleton.h"
|
||||||
|
@ -167,7 +168,8 @@ TEST(mnemonics, all_languages)
|
||||||
Language::Singleton<Language::Russian>::instance(),
|
Language::Singleton<Language::Russian>::instance(),
|
||||||
Language::Singleton<Language::French>::instance(),
|
Language::Singleton<Language::French>::instance(),
|
||||||
Language::Singleton<Language::Dutch>::instance(),
|
Language::Singleton<Language::Dutch>::instance(),
|
||||||
Language::Singleton<Language::Esperanto>::instance()
|
Language::Singleton<Language::Esperanto>::instance(),
|
||||||
|
Language::Singleton<Language::Lojban>::instance()
|
||||||
});
|
});
|
||||||
|
|
||||||
for (std::vector<Language::Base*>::iterator it = languages.begin(); it != languages.end(); it++)
|
for (std::vector<Language::Base*>::iterator it = languages.begin(); it != languages.end(); it++)
|
||||||
|
|
Loading…
Reference in a new issue