Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.com.git

Adjusts vertical alignment of headers

Author Dave Jarvis <email>
Date 2025-09-09 13:53:34 GMT-0700
Commit 87a6d8f5b59c46a073563c46c1560e2182f6336e
Parent 75a04d0
blog/2025/09/08/feature-matrix/csv.R
}
+ # Add bracketed class syntax to header names
+ header_names <- paste0( '[', names( df ), ']{.header}' )
+
# Create a Markdown version of the data frame.
paste(
- '|', paste( names( df ), collapse = '|'), '|', '\n',
+ '|', paste( header_names, collapse = '|'), '|', '\n',
'|', dashes, '|', '\n',
paste(
blog/2025/09/08/feature-matrix/head.html
}
-thead th:not(:first-child) {
- writing-mode: vertical-rl;
- transform: rotate(180deg);
- white-space: normal;
- text-align: start;
- max-height: 11.5em;
- max-width: 5em;
- overflow-wrap: break-word;
- word-break: break-word;
-}
-
-/* Force cell A1 to shrink so date falls to second line. */
-thead th:first-child {
- white-space: normal;
- overflow-wrap: break-word;
- word-break: break-word;
- padding-left: 5em;
- padding-right: 5em;
- text-align: center;
+thead tr th:not(:first-child) span.header {
+ writing-mode: vertical-lr;
+ transform: rotate( 180deg );
+ height: 20em;
max-width: 5em;
- box-sizing: border-box;
}
blog/2025/09/08/feature-matrix/index.html
}
-thead th:not(:first-child) {
- writing-mode: vertical-rl;
- transform: rotate(180deg);
- white-space: normal;
- text-align: start;
- max-height: 11.5em;
+thead tr th:not(:first-child) span.header {
+ writing-mode: vertical-lr;
+ transform: rotate( 180deg );
+ height: 20em;
max-width: 5em;
- overflow-wrap: break-word;
- word-break: break-word;
}
-/* Force cell A1 to shrink so date falls to second line. */
-thead th:first-child {
- white-space: normal;
- overflow-wrap: break-word;
- word-break: break-word;
- padding-left: 5em;
- padding-right: 5em;
- text-align: center;
- max-width: 5em;
- box-sizing: border-box;
-}
tbody td:not(:first-child) {
font-size: 10pt;
}
-</style><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta content="2588" name="count"/><title>Text format feature matrix</title></head><body><h1 id="text-format-feature-matrix">Text format feature matrix</h1>
+</style><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta content="2533" name="count"/><title>Text format feature matrix</title></head><body><h1 id="text-format-feature-matrix">Text format feature matrix</h1>
<div class="byline">
-<p>Dave Jarvis — September 08, 2025</p>
+<p>Dave Jarvis — September 09, 2025</p>
</div>
<p>Markdown is a versatile plain text document format. The following documents
</p><table>
<thead>
-<tr><th align="left">Feature matrix 08-SEP-2025</th><th align="left">KeenWrite</th><th align="left">KeenWrite / ConTeXt</th><th align="left">KeenWrite / ConTeXt / R Markdown</th><th align="left">AsciiDoc</th><th align="left">AsciiDoc / extensions</th><th align="left">reStructuredText</th><th align="left">Sphinx</th><th align="left">pandoc</th><th align="left">pandoc / LaTeX</th><th align="left">pandoc / extensions / LaTeX</th><th align="left">pandoc / extensions / LaTeX</th><th align="left">pandoc / extensions / LaTeX / knitr</th></tr>
+<tr><th align="left"><span class="header">Feature matrix 08-SEP-2025</span></th><th align="left"><span class="header">KeenWrite</span></th><th align="left"><span class="header">KeenWrite / ConTeXt</span></th><th align="left"><span class="header">KeenWrite / ConTeXt / R Markdown</span></th><th align="left"><span class="header">AsciiDoc</span></th><th align="left"><span class="header">AsciiDoc / extensions</span></th><th align="left"><span class="header">reStructuredText</span></th><th align="left"><span class="header">Sphinx</span></th><th align="left"><span class="header">pandoc</span></th><th align="left"><span class="header">pandoc / LaTeX</span></th><th align="left"><span class="header">pandoc / extensions / LaTeX</span></th><th align="left"><span class="header">pandoc / extensions / LaTeX</span></th><th align="left"><span class="header">pandoc / extensions / LaTeX / knitr</span></th></tr>
</thead>
<tbody>
Delta 15 lines added, 43 lines removed, 28-line decrease