579dbe00295a534a278b929d1ff998da9d2838c1
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="correlatives">
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

7) 	<header>Correlatives</header>
bfadmin-master advanced

bfadmin-master authored 8 years ago

8) 	<div class="note_error">This section is only a proposal yet; not part of the draft.</div>
fenris foo

fenris authored 8 years ago

9) <?php
bfadmin-master advanced

bfadmin-master authored 8 years ago

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

fenris authored 8 years ago

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

bfadmin-master authored 8 years ago

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

fenris authored 8 years ago

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

bfadmin-master authored 8 years ago

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

fenris authored 8 years ago

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

bfadmin-master authored 8 years ago

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

fenris authored 8 years ago

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

bfadmin-master authored 8 years ago

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

fenris authored 8 years ago

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

bfadmin-master authored 8 years ago

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

fenris authored 8 years ago

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

bfadmin-master authored 8 years ago

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

fenris authored 8 years ago

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

bfadmin-master authored 8 years ago

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

fenris authored 8 years ago

64) 			),
65) 		],
66) 		read_json("source/data/correlatives.json")
67) 	);
68) 	$table->generate();
69)  ?>
70) <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>