}
}
tr {
- td { +"[lang=gothic]Gutiska Razda[/lang]" }
+ td { +"[lang=thedish]Theodisc Rasda[/lang]" }
+ td {
+ +"Writes text in the Thedish alphabet: "
+ span(classes = "lang-thedish") {
+ +"Theodisc Rasda"
+ }
+ }
+ }
+ tr {
+ td { +"[lang=gothic]\uD800\uDF32\uD800\uDF3F\uD800\uDF44\uD800\uDF39\uD800\uDF43\uD800\uDF3A\uD800\uDF30 \uD800\uDF42\uD800\uDF30\uD800\uDF36\uD800\uDF33\uD800\uDF30[/lang]" }
td {
+"Writes text in the Gothic alphabet: "
span(classes = "lang-gothic") {
val tylan = TylanAlphabet.tylanToFontAlphabet(uncensored)
val recensored = TextParserState.censorText(tylan)
"<span class=\"lang-tylan\">$recensored</span>"
- } else if (tagParam != null)
- "<span class=\"lang-${sanitizeLink(tagParam)}\">$content</span>"
+ } else if (tagParam?.equals("thedish", ignoreCase = true) == true)
+ "<span class=\"lang-thedish\">$content</span>"
+ else if (tagParam?.equals("gothic", ignoreCase = true) == true)
+ "<span class=\"lang-gothic\">$content</span>"
else content
}
),
|<p>Tylan Alphabet:</p>
|<textarea class="output-box lang-tylan" readonly></textarea>
|</div>
- """.trimMargin()
+ """.trimMargin()
+ } else if (content.equals("thedish", ignoreCase = true)) {
+ """
+ |<div class="thedish-alphabet-box">
+ |<p>Latin Alphabet:</p>
+ |<textarea class="input-box" spellcheck="false"></textarea>
+ |<p>Thedish Alphabet:</p>
+ |<textarea class="output-box lang-thedish" readonly></textarea>
+ |</div>
+ """.trimMargin()
} else content
}
),
}
});
+ window.addEventListener("load", function () {
+ // Thedish alphabet
+ const thedishAlphabetBoxes = document.getElementsByClassName("thedish-alphabet-box");
+ for (const thedishAlphabetBox of thedishAlphabetBoxes) {
+ const inputBox = thedishAlphabetBox.getElementsByClassName("input-box")[0];
+ const outputBox = thedishAlphabetBox.getElementsByClassName("output-box")[0];
+
+ inputBox.addEventListener("input", () => {
+ outputBox.value = inputBox.value;
+ });
+ }
+ });
+
window.addEventListener("load", function () {
// Preview themes
const themeChoices = document.getElementsByName("theme");
text-align: center;
}
+.lang-gothic {
+ font-family: 'Noto Sans Gothic', sans-serif;
+}
+
@font-face {
font-family: 'Tulasra';
src: url(/static/font/tylan-language-alphabet-3.woff) format('woff');
line-height: 1.0;
}
-.lang-gothic {
- font-family: 'Noto Sans Gothic', sans-serif;
+@font-face {
+ font-family: 'Theodisc';
+ src: url(/static/font/thedish-language-alphabet.woff) format('woff');
+}
+
+.lang-thedish {
+ font-family: Theodisc, monospace;
+ font-size: 1.25em;
+ line-height: 1.0;
+ font-variant: normal !important;
+}
+
+textarea.lang-thedish {
+ font-family: Theodisc, monospace;
+ font-size: 2.5em;
+ line-height: 1.0;
}
#thumb-view {