git.schokokeks.org
Repositories
Help
Report an Issue
fs-draft.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
18080c6
Branches
Tags
master
midgard
vorlage
fs-draft.git
source
structure
personal_pronouns.html.php
foo
fenris
commited
18080c6
at 2016-04-24 18:00:07
personal_pronouns.html.php
Blame
History
Raw
<?php global $configuration; include_once("source/logic/server/data.php"); include_once("source/logic/server/table.php"); function convert_persona($persona) {return [0 => "impersonal", 1 => "1st person", 2 => "2nd person", 3 => "3rd person"][$persona];} function convert_numerus($numerus) {return [0 => null, 1 => "singular", 2 => "plural"][$numerus];} function convert_genus($genus) {return [0 => "common", 1 => "masculine", 2 => "feminine", 3 => "neuter"][$genus];} ?> <section class="subsection" id="grammar/pronouns/personal_pronouns"> <header>Personal Pronouns</header> <?php $table = new class_table ( [ new class_column ( "Case", function ($row) { return [ convert_persona($row["persona"]), convert_numerus($row["numerus"]), convert_genus($row["genus"]), ]; }, function ($value) { return implode(" / ", $value); } ), /* */ new class_column ( $configuration["languagemap"]["fs"], function ($row) { return $row["fs"]; }, function ($value) { return implode(", ", array_map(function ($word) {return mark($word, ["word", "lang_fs"]);}, $value)); } ), new class_column ( $configuration["languagemap"][$configuration["target"]], function ($row) { global $configuration; return $row[$configuration["target"]]; }, function ($value) { return ((count($value) == 0) ? "--" : implode(", ", array_map(function ($word) {global $configuration; return mark($word, ["word", "lang_" . $configuration["target"]]);}, $value))); } ), ], read_json("source/data/personal_pronouns.json") ); $table->generate(); ?> <p>For the flected and otherwise related forms of the personal pronouns see the section <a href="#grammar/declension">Declension</a>.</p> </section>