From 1d3e78bb997c0fca266519291be8e0bffac0634b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 7 Jun 2026 04:47:40 -0400 Subject: [PATCH] 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) --- app.py | 2 +- static/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 498f396..0291c18 100644 --- a/app.py +++ b/app.py @@ -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}) diff --git a/static/index.html b/static/index.html index 4b70d88..0b7e641 100644 --- a/static/index.html +++ b/static/index.html @@ -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; }