moved content to dedicated folder

This commit is contained in:
Lucien Cartier-Tilet 2020-05-05 19:15:51 +02:00
parent d29cab7a1e
commit 319955d58f
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
41 changed files with 68 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,66 @@
#include <algorithm>
#include <array>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
srand(time(nullptr));
vector<string> consonants{"", "m", "n", "ng", "p", "b", "t", "d",
"ŧ", "đ", "k", "g", "f", "v", "þ", "ð",
"s", "z", "sh", "zh", "ch", "jh", "qh", "rh",
"h", "ŕ", "r", "lh", "l"};
const vector<string> glides{"j", "w"};
vector<string> vowels{"i", "y", "u", "ì", "ĩ", "ů", "ù", "ũ", "e", "é", "ø",
"ö", "o", "õ", "è", "œ", "ô", "ò", "a", "å", "ã"};
const vector<string> tones{"2", "3", "4", "5", "6", "7"};
{
const auto tmp = consonants;
for_each(begin(tmp), end(tmp), [&](const auto &cons) {
for_each(begin(glides), end(glides),
[&](const auto &glide) { consonants.push_back(cons + glide); });
});
}
{
const auto tmp = vowels;
// create each possible diphthong
for_each(begin(tmp), end(tmp), [&](const auto &vow1) {
// add tones for this vowel
std::for_each(std::begin(tones), std::end(tones),
[&](const auto &tone) { vowels.push_back(vow1 + tone); });
for_each(begin(tmp), end(tmp), [&](const auto &vow2) {
if (vow1 != vow2) {
// if both vowels are the same, their association is ignored
const auto new_vow = vow1 + vow2;
vowels.push_back(new_vow);
// add tones to these vowels
for_each(begin(tones), end(tones),
[&](const auto &tone) { vowels.push_back(new_vow + tone); });
}
});
});
}
auto all_phonemes = vowels;
for_each(begin(consonants), end(consonants), [&](const auto &cons) {
for_each(begin(vowels), end(vowels),
[&](const auto &vow) { all_phonemes.push_back(cons + vow); });
});
all_phonemes.shrink_to_fit();
printf("%zu syllables\n", all_phonemes.size());
set<string> particules = {};
for (auto i = 0; i < 10000; ++i) {
int random = rand() % all_phonemes.size();
printf("%s\n", all_phonemes[random].c_str());
all_phonemes.erase(all_phonemes.begin() + random);
}
std::for_each(std::begin(particules), std::end(particules),
[](const auto &elem) { printf("%s\n", elem.c_str()); });
return 0;
}

View File

Before

Width:  |  Height:  |  Size: 203 KiB

After

Width:  |  Height:  |  Size: 203 KiB

View File

Before

Width:  |  Height:  |  Size: 578 KiB

After

Width:  |  Height:  |  Size: 578 KiB

View File

Before

Width:  |  Height:  |  Size: 630 KiB

After

Width:  |  Height:  |  Size: 630 KiB

View File

Before

Width:  |  Height:  |  Size: 579 KiB

After

Width:  |  Height:  |  Size: 579 KiB

View File

Before

Width:  |  Height:  |  Size: 274 KiB

After

Width:  |  Height:  |  Size: 274 KiB

View File

Before

Width:  |  Height:  |  Size: 633 KiB

After

Width:  |  Height:  |  Size: 633 KiB

View File

Before

Width:  |  Height:  |  Size: 913 KiB

After

Width:  |  Height:  |  Size: 913 KiB

View File

Before

Width:  |  Height:  |  Size: 564 KiB

After

Width:  |  Height:  |  Size: 564 KiB

View File

Before

Width:  |  Height:  |  Size: 682 KiB

After

Width:  |  Height:  |  Size: 682 KiB

View File

Before

Width:  |  Height:  |  Size: 389 KiB

After

Width:  |  Height:  |  Size: 389 KiB

View File

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 389 KiB

After

Width:  |  Height:  |  Size: 389 KiB

View File

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB

View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

Before

Width:  |  Height:  |  Size: 242 KiB

After

Width:  |  Height:  |  Size: 242 KiB

View File

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB

View File

@ -1,8 +1,8 @@
#+TITLE: Sitemap for project langue-phundrak-com-org
- [[file:index.org][Langues construites de Pundrak]]
- [[file:eittland.org][Eittlandais]]
- [[file:hjelp.org][Hjelp]]
- [[file:index.org][Langues construites de Pundrak]]
- [[file:matter.org][Mattér]]
- [[file:taso.org][Tãso]]
- [[file:nyqy.org][Ñyqy]]