Reorganized repo
Now the source files only will be on the main branch, whereas the html and pdf files will be on the gh-pages branch.develop
parent
ed1f6cd030
commit
271d5df2ce
Binary file not shown.
@ -1,44 +0,0 @@
|
||||
content {
|
||||
display: grid;
|
||||
grid-auto-rows: min-content;
|
||||
grid-template-areas:
|
||||
'word fromlang'
|
||||
'wclass gender'
|
||||
'translations translations'
|
||||
'details details'
|
||||
'etymology etymology';
|
||||
padding: 40px;
|
||||
}
|
||||
|
||||
word {
|
||||
grid-area: word;
|
||||
font-size: 3em;
|
||||
}
|
||||
|
||||
fromlang {
|
||||
grid-area: fromlang;
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
wordclass {
|
||||
grid-area: wclass;
|
||||
}
|
||||
|
||||
listtrans {
|
||||
grid-area: translations;
|
||||
}
|
||||
|
||||
transdetails {
|
||||
grid-area: details;
|
||||
}
|
||||
|
||||
etymology {
|
||||
grid-area: etymology;
|
||||
}
|
||||
etymology::before {
|
||||
content: "Etymology: ";
|
||||
}
|
||||
|
||||
gender {
|
||||
grid-area: gender;
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
content {
|
||||
display: grid;
|
||||
grid-template-columns: auto;
|
||||
grid-template-rows: 100px auto;
|
||||
grid-template-areas: 'message' 'form';
|
||||
}
|
||||
|
||||
form {
|
||||
grid-area: form;
|
||||
display: inline-grid;
|
||||
grid-template-rows: 64px 100px;
|
||||
grid-template-areas:
|
||||
'source dest'
|
||||
'submition submition';
|
||||
}
|
||||
|
||||
sourcelang {
|
||||
grid-area: source;
|
||||
}
|
||||
|
||||
destlang {
|
||||
grid-area: dest;
|
||||
}
|
||||
|
||||
sourcelang, destlang {
|
||||
display: grid;
|
||||
grid-template-rows: 24px 40px;;
|
||||
grid-template-areas: 'label' 'select';
|
||||
}
|
||||
|
||||
label {
|
||||
grid-area: label;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* inspired from https://coderwall.com/p/w7npmq/fully-custom-select-box-simple-css-only */
|
||||
.form-style {
|
||||
border: 1px solid #ddd;
|
||||
width: 120px;
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
/* background: #edf0f2; */
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.form-style select, .form-style input {
|
||||
padding: 5px 8px;
|
||||
width: 100%;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
text-align: center;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.form-style select:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
submit {
|
||||
margin: auto;
|
||||
width: 50%;
|
||||
grid-area: submition;
|
||||
}
|
||||
|
||||
message {
|
||||
grid-area: message;
|
||||
margin: 0 20px;
|
||||
}
|
||||
|
||||
sidebar {
|
||||
display: block;
|
||||
}
|
||||
|
||||
sidebar > ul {
|
||||
padding-inline-start: 0;
|
||||
margin: 40px;
|
||||
display: block;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
sidebar > ul >li {
|
||||
font-size: 1.1em;
|
||||
margin: 20px;
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
content {
|
||||
}
|
||||
|
||||
.wordblock {
|
||||
text-decoration: none;
|
||||
margin: 40px;
|
||||
padding: 20px;
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
'word word'
|
||||
'wclass gender'
|
||||
'translation translation';
|
||||
background: #343131;
|
||||
color: #fcfcfc;
|
||||
box-shadow: 5px 5px 10px #000;
|
||||
}
|
||||
|
||||
word {
|
||||
margin: 10px;
|
||||
grid-area: word;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
wclass {
|
||||
grid-area: wclass;
|
||||
}
|
||||
|
||||
gender {
|
||||
grid-area: gender;
|
||||
}
|
||||
|
||||
.translations {
|
||||
grid-area: translation;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.translations::before {
|
||||
content: "Translations:";
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 10px;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 34 KiB |
@ -1,73 +0,0 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700);
|
||||
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css);
|
||||
@font-face {
|
||||
font-family: "DoulosSIL";
|
||||
font-display: swap;
|
||||
src:url("DoulosSIL-R.woff");
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
background: #edf0f2;
|
||||
display: grid;
|
||||
overflow: auto;
|
||||
height: 100vh;
|
||||
grid-template-columns: 300px auto;
|
||||
grid-template-areas:
|
||||
'sidebar content';
|
||||
color: #404040;
|
||||
}
|
||||
|
||||
.h1 {
|
||||
margin-bottom: .2em;
|
||||
font-size: 175%;
|
||||
font-family: "Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.p {
|
||||
font-size: inherit;
|
||||
line-height: 24px;
|
||||
margin: 0 0 24px 0;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
font-family: "DoulosSIL","Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
|
||||
}
|
||||
|
||||
sidebar {
|
||||
grid-area: sidebar;
|
||||
width: 300px;
|
||||
background-color: #343131;
|
||||
}
|
||||
|
||||
content {
|
||||
margin: 10px;
|
||||
grid-area: content;
|
||||
}
|
||||
|
||||
content {
|
||||
max-width: 900px;
|
||||
background-color: #fcfcfc;
|
||||
}
|
||||
|
||||
errormessage {
|
||||
color: red;
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
font-family: "DoulosSIL","Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
|
||||
}
|
||||
|
||||
sidebar {
|
||||
color: #fcfcfc;
|
||||
}
|
||||
|
||||
sidebar > h1 {
|
||||
background: #2980b9;
|
||||
padding: 15px;
|
||||
margin-block-start: 0;
|
||||
margin-block-end: 0;
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,33 +0,0 @@
|
||||
#+CREATOR: Lucien Cartier-Tilet
|
||||
#+LANGUAGE: fr
|
||||
#+SETUPFILE: theme-readtheorg.setup
|
||||
#+LATEX_CLASS: article
|
||||
#+LaTeX_CLASS_OPTIONS: [a4paper,twoside]
|
||||
#+LATEX_HEADER: \usepackage{xltxtra,fontspec,xunicode}\usepackage[total={6.5in,10.0in}]{geometry}\setromanfont[Numbers=Lowercase]{Charis SIL}
|
||||
#+LATEX_HEADER: \usepackage{xcolor} \usepackage{hyperref}
|
||||
#+LATEX_HEADER: \hypersetup{colorlinks=true,linkbordercolor=red,linkcolor=blue,pdfborderstyle={/S/U/W 1}}
|
||||
#+LATEX_HEADER: \usepackage{multicol}
|
||||
#+LaTeX_HEADER: \usepackage{indentfirst}\usepackage{allrunes}
|
||||
#+HTML_DOCTYPE: html5
|
||||
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/mahakala-128x128.png" type="img/png" media="screen" />
|
||||
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/favicon.ico" type="image/x-icon" media="screen" />
|
||||
#+HTML_HEAD: <meta property="og:image" content="https://cdn.phundrak.fr/img/rich_preview.png" />
|
||||
#+HTML_HEAD: <meta name="twitter:card" content="summary" />
|
||||
#+HTML_HEAD: <meta name="twitter:site" content="@phundrak" />
|
||||
#+HTML_HEAD: <meta name="twitter:creator" content="@phundrak" />
|
||||
#+HTML_HEAD: <meta name="description" content="Grammaire détaillée de la langue construite Mattér" />
|
||||
#+HTML_HEAD: <meta property="og:title" content="Grammaire du Mattér" />
|
||||
#+HTML_HEAD: <meta property="og:description" content="Grammaire détaillée de la langue construite Mattér" />
|
||||
#+MACRO: newline @@latex:\hspace{0pt}\\@@ @@html:<br>@@
|
||||
#+MACRO: newpage @@latex:\newpage@@
|
||||
#+MACRO: latex-html @@latex:$1@@ @@html:$2@@
|
||||
#+NAME: last-update
|
||||
#+BEGIN_SRC shell :exports none :results silent
|
||||
date '+Dernière mise à jour le %d/%m/%y à %H:%M'
|
||||
#+END_SRC
|
||||
#+MACRO: last-update call_last-update[:eval yes]()[:eval yes]
|
||||
#+OPTIONS: H:4 toc:nil
|
||||
#+OPTIONS: auto-id:t
|
||||
{{{newpage}}}
|
||||
#+TOC: headlines
|
||||
{{{newpage}}}
|
@ -1,26 +0,0 @@
|
||||
#+CREATOR: Lucien Cartier-Tilet
|
||||
#+LANGUAGE: fr
|
||||
#+INCLUDE: macros.org
|
||||
#+SETUPFILE: theme-readtheorg.setup
|
||||
#+LATEX_CLASS: article
|
||||
#+LaTeX_CLASS_OPTIONS: [a4paper,twoside]
|
||||
#+LATEX_HEADER: \usepackage{xltxtra,fontspec,xunicode}\usepackage[total={6.5in,10.0in}]{geometry}\setromanfont[Numbers=Lowercase]{Charis SIL}
|
||||
#+LATEX_HEADER: \usepackage{xcolor} \usepackage{hyperref}
|
||||
#+LATEX_HEADER: \hypersetup{colorlinks=true,linkbordercolor=red,linkcolor=blue,pdfborderstyle={/S/U/W 1}}
|
||||
#+LATEX_HEADER: \usepackage{multicol}
|
||||
#+LaTeX_HEADER: \usepackage{indentfirst}\usepackage{allrunes}
|
||||
#+HTML_DOCTYPE: html5
|
||||
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/mahakala-128x128.png" type="img/png" media="screen" />
|
||||
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/favicon.ico" type="image/x-icon" media="screen" />
|
||||
#+HTML_HEAD: <meta property="og:image" content="https://cdn.phundrak.fr/img/rich_preview.png" />
|
||||
#+HTML_HEAD: <meta name="twitter:card" content="summary" />
|
||||
#+HTML_HEAD: <meta name="twitter:site" content="@phundrak" />
|
||||
#+HTML_HEAD: <meta name="twitter:creator" content="@phundrak" />
|
||||
#+HTML_HEAD: <meta name="description" content="Grammaire détaillée de la langue construite Ňyqy" />
|
||||
#+HTML_HEAD: <meta property="og:title" content="Grammaire du Ňyqy" />
|
||||
#+HTML_HEAD: <meta property="og:description" content="Grammaire détaillée de la langue construite Ňyqy" />
|
||||
#+OPTIONS: H:4 toc:nil
|
||||
#+OPTIONS: auto-id:t
|
||||
{{{newpage}}}
|
||||
#+TOC: headlines
|
||||
{{{newpage}}}
|
@ -1,23 +0,0 @@
|
||||
#+AUTHOR: Lucien Cartier-Tilet
|
||||
#+EMAIL: phundrak@phundrak.fr
|
||||
#+CREATOR: Lucien Cartier-Tilet
|
||||
#+LANGUAGE: fr
|
||||
#+SETUPFILE: theme-readtheorg.setup
|
||||
#+LATEX_CLASS: book
|
||||
#+LaTeX_CLASS_OPTIONS: [a4paper,twoside]
|
||||
#+LATEX_HEADER: \usepackage{xltxtra,fontspec,xunicode}\usepackage[total={6.5in,9.5in}]{geometry}\setromanfont[Numbers=Lowercase]{Charis SIL}
|
||||
#+LATEX_HEADER: \usepackage{xcolor} \usepackage{hyperref}
|
||||
#+LATEX_HEADER: \hypersetup{colorlinks=true,linkbordercolor=red,linkcolor=blue,pdfborderstyle={/S/U/W 1}}
|
||||
#+LATEX_HEADER: \usepackage{multicol}
|
||||
#+HTML_DOCTYPE: html5
|
||||
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/mahakala-128x128.png" type="img/png" media="screen" />
|
||||
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/favicon.ico" type="image/x-icon" media="screen" />
|
||||
#+HTML_HEAD: <meta property="og:image" content="https://cdn.phundrak.fr/img/rich_preview.png" />
|
||||
#+HTML_HEAD: <meta name="twitter:card" content="summary" />
|
||||
#+HTML_HEAD: <meta name="twitter:site" content="@phundrak" />
|
||||
#+HTML_HEAD: <meta name="twitter:creator" content="@phundrak" />
|
||||
#+OPTIONS: H:4
|
||||
#+OPTIONS: toc:nil
|
||||
src_latex{\newpage}
|
||||
#+TOC: headlines
|
||||
src_latex{\newpage}
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
}
|
Before Width: | Height: | Size: 389 KiB After Width: | Height: | Size: 389 KiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1 +0,0 @@
|
||||
lijokken-grammaire.html
|