X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/c2ac61bbb4f4caa7013e1eca41291eb5f3a28969..e011dac036d1bc6f5c9b8e564c4b9f28840e4051:/latin.plp diff --git a/latin.plp b/latin.plp index 9128a28..9d9cadf 100644 --- a/latin.plp +++ b/latin.plp @@ -25,11 +25,48 @@ Html({ #tap-code td, #tap-simplified td { line-height: 1ex; + white-space: normal; + word-spacing: 5em; /* force line break between words */ } + #pigpen { + stroke-linecap: square; + } + #nyctographs, #old-roman-cursive { stroke-linecap: round; stroke-linejoin: round; } + td { + white-space: nowrap; + } + + .sample { + vertical-align: middle; + } + #old-roman-cursive .sample span { + margin-right: -10px; + } + #tap-code .sample, + #tap-simplified .sample { + font-size: 80%; + word-spacing: 0; + } + #tap-code .sample span, + #tap-simplified .sample span { + margin-right: 1ex; + white-space: nowrap; + } + #morse .sample span { + margin-right: 0.5ex; + } + #pigpen .sample svg { + margin-right: 0.1em; + } + #nyctographs .sample svg { + background: rgba(0,0,0, .1); + padding: 0.1em; + margin-right: 0.2em; + } svg path:not([fill]) { stroke: currentColor; @@ -77,7 +114,7 @@ else { print " colspan=$colspan"; $colspan = 1; } - print ' class=ex' if s/^-//; + print ' class=', $_ ? 'ex' : 'u-invalid' if s/^-//; print '>'; say; } @@ -87,3 +124,45 @@ else { :> +