d42abfa2ef200df78b2da82912e5cadb6f4f7dd8
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

1) <?php
fenris advanced

fenris authored 8 years ago

2) 	global $configuration;
3) 	include_once("source/logic/server/data.php");
4) 	
5) 	function format($string)
6) 	{
7) 		return (($string == NULL) ? "--" : preg_replace("/_([^_]*)_/", "<u>$1</u>", $string));
8) 	}
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

9)  ?>
10) <section class="section" id="grammar/phonology_and_orthography">
11) 	<header>Phonology and Orthography</header>
12) 	<!--
13) 	<p>Folksprak uses the following characters as letters:</pa>
14) 	  -->
15) 	<table>
16) 		<thead>
17) 			<tr>
18) 				<th>IPA-sound</th>
fenris advanced

fenris authored 8 years ago

19) 				<th>Type</th>
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

20) 				<th>Latin letter Representation</th>
21) 				<th>Runic Representation</th>
fenris advanced

fenris authored 8 years ago

22) 				<th><?php echo($configuration["languagemap"]["fs"]); ?> Example</th>
23) 				<th><?php echo($configuration["languagemap"][$configuration["target"]]); ?> Example</th>
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

24) 			</tr>
25) 		</thead>
26) 		<tbody>
27) <?php
fenris advanced

fenris authored 8 years ago

28) 	$data_phonology_and_orthography = read_json("source/data/phonology_and_orthography.json");
29) 	foreach ($data_phonology_and_orthography as $entry)
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

30) 	{
31)  ?>
fenris advanced

fenris authored 8 years ago

32) 	<tr>
33) 		<td><span class="ipa"><?php echo($entry["ipa"]); ?></span></td>
34) 		<td><?php echo($entry["type"]); ?></td>
35) 		<td><span class="word_fs"><?php echo($entry["latin"]); ?></span></td>
36) 		<td><span class="word_fs runic"><?php echo($entry["runic"]); ?></span></td>
37) 		<td><span class="word_fs"><?php echo(format($entry["examples"]["fs"])); ?></span></td>
38) 		<td><span class="word_otherlanguage"><?php echo(format($entry["examples"][$configuration["target"]])); ?></span></td>
39) 	</tr>
Fenris Wolf advanced

Fenris Wolf authored 8 years ago

40) <?php
41) 	}
42)  ?>
43) 		</tbody>
44) 	</table>
fenris advanced

fenris authored 8 years ago

45) 	<span class="note_warning">The runic writing is not meant to be used in regular texts. Use it only for purposes like art, etc.!</span>