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; }