Add support for Gothic alphabet
authorLanius Trolling <lanius@laniustrolling.dev>
Fri, 9 Sep 2022 12:24:01 +0000 (08:24 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Fri, 9 Sep 2022 12:24:01 +0000 (08:24 -0400)
src/main/kotlin/info/mechyrdia/lore/parser_tags.kt
src/main/kotlin/info/mechyrdia/lore/view_tpl.kt
src/main/resources/static/style.css

index 2ca56d1d2c32a9ee4581a4c668891ebbd15c6e60..63483f1addf6b016c93205a17c15b1f64a575d4a 100644 (file)
@@ -267,7 +267,9 @@ enum class TextParserFormattingTag(val type: TextParserTagType<Unit>) {
                                val tylan = TylanAlphabet.tylanToFontAlphabet(uncensored)
                                val recensored = TextParserState.censorText(tylan)
                                "<span class=\"lang-tylan\">$recensored</span>"
-                       } else content
+                       } else if (tagParam != null)
+                               "<span class=\"lang-${sanitizeLink(tagParam)}\">$content</span>"
+                       else content
                }
        ),
        ALPHABET(
index b0dc6b9f31ce2bc19786652c219522e231f6cee6..22aa21ec5dce2e101e3dd97ad164f291b9b6067b 100644 (file)
@@ -24,7 +24,7 @@ fun ApplicationCall.page(pageTitle: String, navBar: List<NavItem>? = null, sideb
                        
                        link(rel = "preconnect", href = "https://fonts.googleapis.com")
                        link(rel = "preconnect", href = "https://fonts.gstatic.com") { attributes["crossorigin"] = "anonymous" }
-                       link(rel = "stylesheet", href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Oxanium:wght@400;600;700;800&display=swap")
+                       link(rel = "stylesheet", href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+Gothic&family=Oxanium:wght@400;600;700;800&display=swap")
                        
                        link(rel = "stylesheet", href = "/static/style.css")
                        
index 09e1f781ca6c33cd9506165a364670fe40690d66..fc410bb1bddd0951db37e3dbb5d52e453d60bd22 100644 (file)
@@ -654,3 +654,7 @@ textarea.lang-tylan {
        font-size: 2.5em;
        line-height: 1.0;
 }
+
+.lang-gothic {
+       font-family: 'Noto Sans Gothic', sans-serif;
+}