Christian Fraß authored on05/08/2018 20:00:22
Showing1 changed files
... ...
@@ -6,7 +6,7 @@ include_once("source/logic/server/table.php");
6 6
  ?>
7 7
 <section class="section" id="principles">
8 8
 	<header>Principles</header>
9
-	<p>The word stock of Folksprak is &dash; with minor &dash; exceptions derived from the modern Germanic languages (e.g. English, German, Swedish, &#8230;) and/or their precursors (e.g. Old English, Old Norse, Proto Germanic, etc.). However branches, which no longer emerge today (e.g. the East Germanic languages like Gothic), were not incorporated.</p>
9
+	<p>The word stock of Folksprak is &dash; with minor exceptions &dash; derived from the modern Germanic languages (e.g. English, German, Swedish, &#8230;) and/or their precursors (e.g. Old English, Old Norse, Proto Germanic, etc.). Branches which no longer emerge today (e.g. the East Germanic languages like Gothic), were not incorporated.</p>
10 10
 	<p>The following table gives an overview about the typical transitions of phones from Proto-Germanic to some of todays natural Germanic languages and Folksprak, along with example words in square brackets:</p>
11 11
 	<span class="todo">more entries</span>
12 12
 <?php
Browse code

update

Christian Fraß authored on17/04/2017 03:54:52
Showing1 changed files
... ...
@@ -7,20 +7,34 @@ include_once("source/logic/server/table.php");
7 7
 <section class="section" id="principles">
8 8
 	<header>Principles</header>
9 9
 	<p>The word stock of Folksprak is &dash; with minor &dash; exceptions derived from the modern Germanic languages (e.g. English, German, Swedish, &#8230;) and/or their precursors (e.g. Old English, Old Norse, Proto Germanic, etc.). However branches, which no longer emerge today (e.g. the East Germanic languages like Gothic), were not incorporated.</p>
10
-	<p>The following table gives an overview about the typical phoneme-transitions with example words in square brackets:</p>
10
+	<p>The following table gives an overview about the typical transitions of phones from Proto-Germanic to some of todays natural Germanic languages and Folksprak, along with example words in square brackets:</p>
11 11
 	<span class="todo">more entries</span>
12 12
 <?php
13
+	$data_common = read_json("source/data/common.json");
13 14
 	$data_transitions = read_json("source/data/transitions.json");
14 15
 	
15 16
 	$data = $data_transitions["data"];
16
-	// $data = sql_select($data, function ($row) {return in_array($row["language_id"], ["pg","fs","en"]);});
17
-	
17
+	{
18
+		{
19
+			$data = sql_select($data, function ($row) {return in_array($row["language_id"], ["gem","flk","eng","deu","nld","dan","nob","swe","isl"]);});
20
+		}
21
+		{
22
+			{
23
+				$data = sql_cross($data, $data_common["languages"]);
24
+				$data = sql_select($data, function ($row) {return ($row["language_id"] == $row["id"]);});
25
+				$data = sql_delete($data, ["id"]);
26
+				$data = sql_rename($data, "name", "language_name");
27
+			}
28
+		}
29
+	}
30
+		
18 31
 	$table = new class_table
19 32
 	(
20 33
 		[
21 34
 			new class_column("Transition", "transition_id"),
22
-			new class_column("Language", "language_id"),
23
-			new class_column("Phonemes", "phonemes"),
35
+			new class_column("Language", "language_name"),
36
+			new class_column("Language ID", "language_id"),
37
+			new class_column("Phones", "phones"),
24 38
 			new class_column("Examples", "examples"),
25 39
 		],
26 40
 		$data
... ...
@@ -41,9 +55,9 @@ include_once("source/logic/server/table.php");
41 55
 			],
42 56
 			"columns_data" =>
43 57
 			[
44
-				$table->columns_get()[1],
45 58
 				$table->columns_get()[2],
46 59
 				$table->columns_get()[3],
60
+				$table->columns_get()[4],
47 61
 			],
48 62
 			"data_aggregator" => function ($values)
49 63
 			{
... ...
@@ -53,7 +67,7 @@ include_once("source/logic/server/table.php");
53 67
 			{
54 68
 				if (count($values) == 1)
55 69
 				{
56
-					$phonemes = implode(
70
+					$phones = implode(
57 71
 						", ",
58 72
 						array_map
59 73
 						(
... ...
@@ -61,7 +75,7 @@ include_once("source/logic/server/table.php");
61 75
 							{
62 76
 								return mark($phoneme, ["type_word", "lang_" . $values[0]["language_id"]]);
63 77
 							},
64
-							$values[0]["phonemes"]
78
+							$values[0]["phones"]
65 79
 						)
66 80
 					);
67 81
 					$examples = implode
... ...
@@ -76,7 +90,7 @@ include_once("source/logic/server/table.php");
76 90
 							array_slice($values[0]["examples"], 0, 1)
77 91
 						)
78 92
 					);
79
-					$output = $phonemes;
93
+					$output = $phones;
80 94
 					if (count($values[0]["examples"]) > 0)
81 95
 					{
82 96
 						$break = true;
Browse code

added transition-data and table

Christian Fraß authored on27/11/2016 17:30:26
Showing1 changed files
... ...
@@ -1,6 +1,97 @@
1
+<?php
2
+global $configuration;
3
+include_once("source/logic/server/data.php");
4
+include_once("source/logic/server/sql.php");
5
+include_once("source/logic/server/table.php");
6
+ ?>
1 7
 <section class="section" id="principles">
2 8
 	<header>Principles</header>
3 9
 	<p>The word stock of Folksprak is &dash; with minor &dash; exceptions derived from the modern Germanic languages (e.g. English, German, Swedish, &#8230;) and/or their precursors (e.g. Old English, Old Norse, Proto Germanic, etc.). However branches, which no longer emerge today (e.g. the East Germanic languages like Gothic), were not incorporated.</p>
4
-	<span class="todo">more (e.g. typical transitions)</span>
10
+	<p>The following table gives an overview about the typical phoneme-transitions with example words in square brackets:</p>
11
+	<span class="todo">more entries</span>
12
+<?php
13
+	$data_transitions = read_json("source/data/transitions.json");
14
+	
15
+	$data = $data_transitions["data"];
16
+	// $data = sql_select($data, function ($row) {return in_array($row["language_id"], ["pg","fs","en"]);});
17
+	
18
+	$table = new class_table
19
+	(
20
+		[
21
+			new class_column("Transition", "transition_id"),
22
+			new class_column("Language", "language_id"),
23
+			new class_column("Phonemes", "phonemes"),
24
+			new class_column("Examples", "examples"),
25
+		],
26
+		$data
27
+	);
28
+	
29
+	$table->snap
30
+	(
31
+		[
32
+			"label_vertical" => function ($column) {return "";},
33
+			"columns_vertical" =>
34
+			[
35
+				$table->columns_get()[0],
36
+			],
37
+			"label_horizontal" => function ($column, $value) {return $value;},
38
+			"columns_horizontal" =>
39
+			[
40
+				$table->columns_get()[1],
41
+			],
42
+			"columns_data" =>
43
+			[
44
+				$table->columns_get()[1],
45
+				$table->columns_get()[2],
46
+				$table->columns_get()[3],
47
+			],
48
+			"data_aggregator" => function ($values)
49
+			{
50
+				return $values;
51
+			},
52
+			"data_formatter" => function ($values)
53
+			{
54
+				if (count($values) == 1)
55
+				{
56
+					$phonemes = implode(
57
+						", ",
58
+						array_map
59
+						(
60
+							function ($phoneme) use (&$values)
61
+							{
62
+								return mark($phoneme, ["type_word", "lang_" . $values[0]["language_id"]]);
63
+							},
64
+							$values[0]["phonemes"]
65
+						)
66
+					);
67
+					$examples = implode
68
+					(
69
+						", ",
70
+						array_map
71
+						(
72
+							function ($word) use (&$values)
73
+							{
74
+								return mark($word, ["type_word", "lang_" . $values[0]["language_id"]]);
75
+							},
76
+							array_slice($values[0]["examples"], 0, 1)
77
+						)
78
+					);
79
+					$output = $phonemes;
80
+					if (count($values[0]["examples"]) > 0)
81
+					{
82
+						$break = true;
83
+						$breaker = $break ? "<br/>" : " ";
84
+						$output .= "${breaker}[${examples}]";
85
+					}
86
+					return $output;
87
+				}
88
+				else
89
+				{
90
+					return "?";
91
+				}
92
+			},
93
+		]
94
+	)->generate();
95
+ ?>
5 96
 </section>
6 97
 
Browse code

added reflexive-nominative pronouns; minor changes

Christian Fraß authored on22/08/2016 11:12:20
Showing1 changed files
... ...
@@ -1,5 +1,6 @@
1 1
 <section class="section" id="principles">
2 2
 	<header>Principles</header>
3 3
 	<p>The word stock of Folksprak is &dash; with minor &dash; exceptions derived from the modern Germanic languages (e.g. English, German, Swedish, &#8230;) and/or their precursors (e.g. Old English, Old Norse, Proto Germanic, etc.). However branches, which no longer emerge today (e.g. the East Germanic languages like Gothic), were not incorporated.</p>
4
+	<span class="todo">more (e.g. typical transitions)</span>
4 5
 </section>
5 6
 
Browse code

included developer-notes; altered correlative (ing -> ni)

Christian Fraß authored on21/08/2016 23:49:52
Showing1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 <section class="section" id="principles">
2 2
 	<header>Principles</header>
3
-	<span class="todo">all</span>
3
+	<p>The word stock of Folksprak is &dash; with minor &dash; exceptions derived from the modern Germanic languages (e.g. English, German, Swedish, &#8230;) and/or their precursors (e.g. Old English, Old Norse, Proto Germanic, etc.). However branches, which no longer emerge today (e.g. the East Germanic languages like Gothic), were not incorporated.</p>
4 4
 </section>
5 5
 
Browse code

renamed structure to content

Christian Fraß authored on15/05/2016 20:38:28
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,5 @@
1
+<section class="section" id="principles">
2
+	<header>Principles</header>
3
+	<span class="todo">all</span>
4
+</section>
5
+