dcda8f5951a8ef9b256ec490d3845d46247dc24c
fenris foo

fenris authored 8 years ago

1) <?php
2) 	include_once("source/logic/server/data.php");
3) 	include_once("source/logic/server/table.php");
bfadmin-master advanced

bfadmin-master authored 8 years ago

4) 	include_once("source/logic/server/misc.php");
fenris foo

fenris authored 8 years ago

5)  ?>
bfadmin-master advanced

bfadmin-master authored 8 years ago

6) <section class="subsection" id="vocabulary/pronouns/correlatives">
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

7) 	<header>Correlatives</header>
fenris foo

fenris authored 8 years ago

8) <?php
bfadmin-master advanced

bfadmin-master authored 8 years ago

9) 	/*
10) 	function foobar($value)
11) 	{
12) 		$output = "";
13) 		$output .= implode(", ", array_map(function ($word) {return mark($word, ["word", "lang_fs"]);}, $value["original"]));
14) 		$output .= " ~ ";
15) 		$output .= implode(", ", array_map(function ($word) {global $configuration; return mark($word, ["word", "lang_" . $configuration["target"]]);}, $value["translated"]));
16) 		return $output;
17) 	}
18) 	 */
19) 	
fenris foo

fenris authored 8 years ago

20) 	$table = new class_table
21) 	(
22) 		[
23) 			new class_column
24) 			(
25) 				"Domain",
bfadmin-master advanced

bfadmin-master authored 8 years ago

26) 				function ($row) {return $row["domain"];}
fenris foo

fenris authored 8 years ago

27) 			),
28) 			new class_column
29) 			(
30) 				"Interrogative/Relative",
bfadmin-master advanced

bfadmin-master authored 8 years ago

31) 				_foo("interrogative"),
32) 				_bar("word")
fenris foo

fenris authored 8 years ago

33) 			),
34) 			new class_column
35) 			(
36) 				"Demonstrative far",
bfadmin-master advanced

bfadmin-master authored 8 years ago

37) 				_foo("demonstrative_far"),
38) 				_bar("word")
fenris foo

fenris authored 8 years ago

39) 			),
40) 			new class_column
41) 			(
42) 				"Demonstrative near",
bfadmin-master advanced

bfadmin-master authored 8 years ago

43) 				_foo("demonstrative_near"),
44) 				_bar("word")
fenris foo

fenris authored 8 years ago

45) 			),
46) 			new class_column
47) 			(
48) 				"Universal",
bfadmin-master advanced

bfadmin-master authored 8 years ago

49) 				_foo("universal"),
50) 				_bar("word")
fenris foo

fenris authored 8 years ago

51) 			),
52) 			new class_column
53) 			(
54) 				"Undefined",
bfadmin-master advanced

bfadmin-master authored 8 years ago

55) 				_foo("undefined"),
56) 				_bar("word")
fenris foo

fenris authored 8 years ago

57) 			),
58) 			new class_column
59) 			(
60) 				"Negative",
bfadmin-master advanced

bfadmin-master authored 8 years ago

61) 				_foo("negative"),
62) 				_bar("word")
fenris foo

fenris authored 8 years ago

63) 			),
64) 		],
65) 		read_json("source/data/correlatives.json")
66) 	);
67) 	$table->generate();
68)  ?>
69) <div class="note_information">Some of these words are very unlikely to ever get used (e.g. <span class="word lang_fs">ing slag</span>). Nevertheless they exist and are listed for completeness.</div>