Stress dots on monosyllables too; nudged lower again

Single-syllable words now get one dot; dots at 2.2em, line-height 2.35.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 04:47:40 -04:00
parent 8897b63fa0
commit 1d3e78bb99
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -980,7 +980,7 @@ def analyze(draft: Draft):
continue
st = "".join("1" if p[-1] in "12" else "0"
for p in ph.split() if p[-1].isdigit())
if len(st) >= 2:
if st: # one dot even for monosyllables
stress_out.append({"l": t["line"], "s": t["start"],
"e": t["end"], "st": st})
+2 -2
View File
@@ -98,7 +98,7 @@
margin: 0; border: 0;
padding: 22px 24px;
font: inherit;
line-height: 2.2;
line-height: 2.35;
white-space: pre-wrap;
word-wrap: break-word;
overflow-y: auto;
@@ -117,7 +117,7 @@
}
.sw { position: relative; }
.sd {
position: absolute; left: 0; right: 0; top: 2.04em;
position: absolute; left: 0; right: 0; top: 2.2em;
text-align: center; font-size: 8px; letter-spacing: 2px;
line-height: 1; color: var(--ink); white-space: nowrap;
}