mirror of
https://github.com/kennethreitz/rhymepad.org.git
synced 2026-06-11 17:08:33 +00:00
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:
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user