77d8eec65a6d272eeee78097bf5a526d3a45059d
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

source/structure/personal_pronouns.html.php  1) <?php
fenris advanced

fenris authored 8 years ago

source/structure/personal_pronouns.html.php  2) global $configuration;
source/structure/personal_pronouns.html.php  3) include_once("source/logic/server/data.php");
fenris foo

fenris authored 8 years ago

source/structure/personal_pronouns.html.php  4) include_once("source/logic/server/table.php");
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

source/structure/personal_pronouns.html.php  5) 
fenris foo

fenris authored 8 years ago

source/structure/personal_pronouns.html.php  6) function convert_persona($persona) {return [0 => "impersonal", 1 => "1st person", 2 => "2nd person", 3 => "3rd person"][$persona];}
source/structure/personal_pronouns.html.php  7) function convert_numerus($numerus) {return [0 => null, 1 => "singular", 2 => "plural"][$numerus];}
source/structure/personal_pronouns.html.php  8) function convert_genus($genus) {return [0 => "common", 1 => "masculine", 2 => "feminine", 3 => "neuter"][$genus];}
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

source/structure/personal_pronouns.html.php  9)  ?>
bfadmin-master advanced

bfadmin-master authored 8 years ago

source/structure/personal_pronouns.html.php 10) <section class="subsection" id="personal_pronouns">
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

source/structure/personal_pronouns.html.php 11) 	<header>Personal Pronouns</header>
bfadmin-master advanced

bfadmin-master authored 8 years ago

source/structure/personal_pronouns.html.php 12) 	<div class="note_error">This section is only a proposal yet; not part of the draft.</div>
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

source/structure/personal_pronouns.html.php 13) <?php
fenris foo

fenris authored 8 years ago

source/structure/personal_pronouns.html.php 14) 	$table = new class_table
source/structure/personal_pronouns.html.php 15) 	(
source/structure/personal_pronouns.html.php 16) 		[
source/structure/personal_pronouns.html.php 17) 			new class_column
source/structure/personal_pronouns.html.php 18) 			(
source/structure/personal_pronouns.html.php 19) 				"Case",
source/structure/personal_pronouns.html.php 20) 				function ($row)
source/structure/personal_pronouns.html.php 21) 				{
source/structure/personal_pronouns.html.php 22) 					return [
source/structure/personal_pronouns.html.php 23) 						convert_persona($row["persona"]),
source/structure/personal_pronouns.html.php 24) 						convert_numerus($row["numerus"]),
source/structure/personal_pronouns.html.php 25) 						convert_genus($row["genus"]),
source/structure/personal_pronouns.html.php 26) 					];
source/structure/personal_pronouns.html.php 27) 				},
source/structure/personal_pronouns.html.php 28) 				function ($value)
source/structure/personal_pronouns.html.php 29) 				{
source/structure/personal_pronouns.html.php 30) 					return implode(" / ", $value);
source/structure/personal_pronouns.html.php 31) 				}
source/structure/personal_pronouns.html.php 32) 			),
source/structure/personal_pronouns.html.php 33) 			/*
source/structure/personal_pronouns.html.php 34) 			 */
source/structure/personal_pronouns.html.php 35) 			new class_column
source/structure/personal_pronouns.html.php 36) 			(
source/structure/personal_pronouns.html.php 37) 				$configuration["languagemap"]["fs"],
source/structure/personal_pronouns.html.php 38) 				function ($row)
source/structure/personal_pronouns.html.php 39) 				{
source/structure/personal_pronouns.html.php 40) 					return $row["fs"];
source/structure/personal_pronouns.html.php 41) 				},
source/structure/personal_pronouns.html.php 42) 				function ($value)
source/structure/personal_pronouns.html.php 43) 				{
source/structure/personal_pronouns.html.php 44) 					return implode(", ", array_map(function ($word) {return mark($word, ["word", "lang_fs"]);}, $value));
source/structure/personal_pronouns.html.php 45) 				}
source/structure/personal_pronouns.html.php 46) 			),
source/structure/personal_pronouns.html.php 47) 			new class_column
source/structure/personal_pronouns.html.php 48) 			(
source/structure/personal_pronouns.html.php 49) 				$configuration["languagemap"][$configuration["target"]],
source/structure/personal_pronouns.html.php 50) 				function ($row)
source/structure/personal_pronouns.html.php 51) 				{
source/structure/personal_pronouns.html.php 52) 					global $configuration;
source/structure/personal_pronouns.html.php 53) 					return $row[$configuration["target"]];
source/structure/personal_pronouns.html.php 54) 				},
source/structure/personal_pronouns.html.php 55) 				function ($value)
source/structure/personal_pronouns.html.php 56) 				{
source/structure/personal_pronouns.html.php 57) 					return ((count($value) == 0) ? "--" : implode(", ", array_map(function ($word) {global $configuration; return mark($word, ["word", "lang_" . $configuration["target"]]);}, $value)));
source/structure/personal_pronouns.html.php 58) 				}
source/structure/personal_pronouns.html.php 59) 			),
source/structure/personal_pronouns.html.php 60) 		],
source/structure/personal_pronouns.html.php 61) 		read_json("source/data/personal_pronouns.json")
source/structure/personal_pronouns.html.php 62) 	);
source/structure/personal_pronouns.html.php 63) 	$table->generate();
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

source/structure/personal_pronouns.html.php 64)  ?>
fenris foo

fenris authored 8 years ago

source/structure/personal_pronouns.html.php 65) 	<p>For the flected and otherwise related forms of the personal pronouns see the section <a href="#grammar/declension">Declension</a>.</p>