This is what is required for a minimal sort of starting implementation.
Mon and Species are the only required objects but I've gone and listed the rest for completeness.
// The purpose of this code is to substitute the DOCTYPE in a processed | |
// template for that found in its original source code. | |
// No actual template processing happens in ⁜this⁜ script, but you | |
// can use your imagination. | |
// | |
// This code will not work in environments where the following test | |
// fails :— | |
// | |
// ```js | |
// ; { |
<?xml-stylesheet type="text/xsl" href="https://go.KIBI.family/Tools/XSLT/KiT2X.xslt"?> | |
<!-- | |
KiT2X.xslt Demo | |
Now hosted at <https://go.KIBI.family/Documents/TEI-test.xml> so you can view this directly in your browser (if your browser is Firefox). | |
1. Save this file to your computer. | |
2. Open in Firefox. | |
--> | |
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:h="http://www.w3.org/1999/xhtml"> |
/* PRINT + PASTELS */ | |
/* by: Kibigo! */ | |
/* | |
This theme combines offwhite greys with bright pastels for a faded | |
yet distinctive look. | |
*/ | |
// PRINT // |
*:Root{ Font: Normal Large / 1.15 Serif } | |
@media screen { | |
*:Root{ | |
Color: #1F1A14; | |
Background: #FAF8F7; | |
} | |
} | |
footer { Font-Size: Small } | |
header { Text-Align: Right } | |
p { |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
/* Requires Firefox 66+ */ | |
/* Place this in the userContent.css file for your profile */ | |
@-moz-document Domain(instance1.tld), Domain(instance2.tld) { /* Your instances here */ | |
*:-moz-Any( | |
html, | |
.scrollable, | |
.search-popout, | |
.drawer__inner, | |
.dropdown-menu, |
<!DOCTYPE html> | |
<style> | |
@font-face{ Font-Family:"EB Garamond" ; Font-Style:Normal ; Src:Local(EBGaramond12-Regular) } | |
@font-face{ Font-Family:"EB Garamond" ; Font-Style:Italic ; Src:Local(EBGaramond12-Italic) } | |
@font-feature-values Junicode{ @styleset{ Enlarged-Minuscules:06 ; Long-Slash:10 } } | |
*:Root{ Font:Italic 13.5PT/1.35 Junicode,"EB Garamond",Serif ; Font-Variant-Numeric:Oldstyle-Nums ; Font-Variant-Alternates:StyleSet(Long-Slash) ; Color:#302F2B ; Background:#FAF8F7 } | |
article{ Width:100% ; Height:100% ; Columns:11EM 2 ; Column-Gap:2EM ; Column-Fill:Auto ; Overflow:Auto } | |
body{ Position:Relative ; Margin:Auto ; Padding:5.4EM 3EM ; Max-Width:36EM ; Height:31.05EM ; Max-Height:Calc(100VH - 10.8EM) } | |
footer{ Position:Absolute ; Bottom:30.675PT ; Left:0 ; Right:0 ; Color:#75706A ; Font:Normal 8PT/1.5 Junicode,"Noto Serif CJK JP",Serif ; Font-Variant-Alternates:StyleSet(Enlarged-Minuscules) ; Text-Align:Center } | |
footer>time{ Display:Block ; Color:#302F2B } |
# frozen_string_literal: true | |
require 'yaml' | |
require 'rexml/document' | |
include REXML | |
$bns_idchars = <<~REXP.gsub(/\s+/, '') | |
0-9A-Za-z | |
!\\$&'\\(\\)*+,\\-;=?@_~ | |
\\u{A0}-\\u{D7FF}\\u{E000}-\\u{FDCF}\\u{FDF0}-\\u{FDFD} |