moved content to dedicated folder

This commit is contained in:
phundrak committed 2020-05-05 19:15:51 +02:00
1 parent d29cab7a1e
commit 319955d58f
41 files changed
+67 -1

No files matched your search

View File
File renamed without changes.
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
+66
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;
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 203 KiB

After

Width:  |  Height:  |  Size: 203 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 578 KiB

After

Width:  |  Height:  |  Size: 578 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 630 KiB

After

Width:  |  Height:  |  Size: 630 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 579 KiB

After

Width:  |  Height:  |  Size: 579 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 274 KiB

After

Width:  |  Height:  |  Size: 274 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 633 KiB

After

Width:  |  Height:  |  Size: 633 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 913 KiB

After

Width:  |  Height:  |  Size: 913 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 564 KiB

After

Width:  |  Height:  |  Size: 564 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 682 KiB

After

Width:  |  Height:  |  Size: 682 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 389 KiB

After

Width:  |  Height:  |  Size: 389 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 389 KiB

After

Width:  |  Height:  |  Size: 389 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 242 KiB

After

Width:  |  Height:  |  Size: 242 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB

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