github jammaru/sakutto v1.13.0

2 hours ago

[1.13.0] - 2026-12-04

Improvements

  • GitHub PDF links now open in the reader. GitHub /blob/...pdf preview URLs are resolved to the raw file before loading, so the PDF opens instead of failing as an HTML page. This uses the existing optional all-sites access; no new install-time permission is requested. (#276)
  • Long selections get a roomier popup. When a translation is 240 characters or longer and you have not dragged the popup width, it expands up to 44em wide and 640px tall, so long paragraphs need less scrolling. Short translations look the same. (#243, thanks @sabopura)
  • Busy pages translate faster. Identical strings that are already being translated are shared instead of being sent to the model again, and visible blocks are batched separately from off-screen ones, with off-screen work preempted when you scroll. (#244, #240, thanks @sabopura)
  • Live widgets stop re-translating forever. Clocks, counters, and other elements that rewrite themselves several times in 15 seconds are treated as live content and left alone until they settle; chat and comment feeds still translate new items. (#242, thanks @sabopura)
  • Narrow windows keep their controls readable. The page bar wraps instead of clipping, the progress count is a whole number, shortcut names in settings and the compose hint no longer collide or truncate, and the Gmail/Outlook banner keeps its text together. (#250, #251, #253, #248, #247, thanks @sabopura)
  • One site permission at a time. The popup no longer shows the all-sites prompt while it is asking for mail access, so the panel fits without scrolling. (#252, thanks @sabopura)
  • Dark mode on more pages. Image translation and shared-folder access follow the system theme. (#249, thanks @sabopura)
  • Deleted site rules stay deleted. The options page no longer brings back a site rule that was removed while a language migration was being read. (#257)
  • More languages translate completely. Output budgets and token estimates now follow the target and source language, so Russian, Thai, Telugu, Burmese, and other non-CJK pages stop regenerating or leaving paragraphs in the source language. (#222, thanks @sabopura)
  • Captions keep their context. Cached translations are keyed by the preceding line, so the same sentence in a different scene gets the translation that fits that scene. (#221, thanks @sabopura)

Bug Fixes

  • PDF: tables and math keep their layout. Table backgrounds and rules survive translation, header translations stay inside their cells, centred row-group labels and short prose lines use the width that is actually available, dense math proofs are split into smaller prompts, and numbered equations keep their superscripts and subscripts. (#227, #226, #270, #265, #264, #260, #224, #203, thanks @kiyoka)
  • PDF: references and abstracts read correctly. Titles keep their quotation marks and punctuation, short author lines are recognized, and the first half of an abstract no longer shrinks. (#233, #225, thanks @kiyoka)
  • PDF: exported text selection lines up. Selecting or copying text in a translated PDF now follows the visible translated lines instead of collecting at the top-left of the page. (#271, thanks @kiyoka)
  • PDF: hyphenated line endings no longer join columns. Two-column pages keep their columns apart when a line ends with a hyphen. (#262)
  • Page translation resumes after Back. Returning to a page with the browser Back button continues the unfinished blocks instead of leaving the bar stuck at "Translated". (#245, thanks @sabopura)
  • Reloading the extension cleans up the page. Updating or reloading Sakutto while a page is translated removes the old bar, attributes, and listeners, and translating again does not duplicate the UI. (#241, thanks @sabopura)
  • Long translations keep their inline pieces in place. Code and other untranslated inline pieces no longer jump to the end of a sentence, and paragraphs made of adjacent spans keep their text. (#231, #220, thanks @sabopura)
  • Line-broken text keeps every line. Bold and linked lines in <br>-separated text no longer become empty, and a failed retry no longer leaves the previous translation visible while the new one starts. (#228, #230, thanks @sabopura)
  • Empty pieces fall back to the source. When part of a paragraph comes back empty, that part now shows its source instead of disappearing. (#229, thanks @sabopura)
  • Nested inline blocks translate once. Expanded child slots are no longer claimed twice, so "Restore original" removes the translation completely. (#239, thanks @sabopura)
  • Pages with moving iframes keep translating. Iframes that navigate to another origin no longer stop the scan, and the remaining blocks are sent. (#219, thanks @sabopura)
  • Language detection respects the actual script. An English paragraph with accents on a page declared as Japanese is translated instead of skipped, and script-share checks no longer misclassify it. (#236, thanks @sabopura)
  • A stopped worker no longer freezes translation. A heartbeat detects a background worker that stopped responding and lets the page recover instead of staying on "Translating" forever. (#232, thanks @sabopura)
  • Broken model bytes no longer hang the page. Invalid UTF-8 from the model becomes a replacement character instead of being treated as a lost GPU and retried forever. (#218, thanks @sabopura)
  • YouTube Shorts captions translate. The Shorts player is detected even when a hidden normal player is still present. (#237, thanks @sabopura)
  • Right-to-left pages keep the popup readable. The selection popup uses left-to-right layout on RTL pages, while the translated text follows its own language direction. (#238, thanks @sabopura)
  • UI strings are cleaner in every language. Leftover English and mistranslations in 12 locales are fixed, including list separators and long labels. (#246, thanks @sabopura)

Libraries

  • npm libraries. The five @sakutto/* libraries (core, models, runtime-wllama, ocr, and pdf) are now published on npm at the same version as the extension, so other applications can reuse Sakutto's translation, model, OCR, and PDF layout pieces. See the Libraries section of the README and npm. The extension remains the main product. (#223, #263, #272)

Thanks

日本語

  • GitHub の PDF リンクがリーダーで開くようになりました。 GitHub の /blob/...pdf プレビュー URL を取得前に raw ファイルへ解決するため、HTML として失敗せず PDF が開きます。既存の「すべてのサイト」任意許可を使い、インストール時に新しい権限は求めません。(#276)
  • 長い選択翻訳のポップアップが広くなりました。 訳文が240文字以上で、幅をドラッグで指定していないときは、最大幅44em・高さ640pxまで広がり、長い段落でもスクロールが少なくて済みます。短い訳文の見た目は変わりません。(#243、@sabopura さんの貢献)
  • 同じ文が多いページの翻訳が速くなりました。 すでに翻訳中の同じ文はモデルへ送らずに共有し、画面内の段落は画面外と分けてまとめ、スクロールすると画面外の処理を後回しにして、画面内を優先します。(#244、#240、@sabopura さんの貢献)
  • 毎秒変わる部品で再翻訳が続かなくなりました。 時計やカウンターなど、15秒以内に3回書き換わる要素は動いている部品として止め、落ち着いてから再開します。チャットやコメントの新しい投稿は今までどおり訳します。(#242、@sabopura さんの貢献)
  • 狭い画面でも操作が見やすくなりました。 ページ上部のバーが折り返し、進み具合は整数で表示され、設定のショートカット名・入力中の案内・Gmail と Outlook のバナーが重なったり切れたりしなくなりました。(#250、#251、#253、#248、#247、@sabopura さんの貢献)
  • サイトの許可を1つずつ求めます。 メールへのアクセスを求めている間は「すべてのサイト」の案内を出さないため、ポップアップがスクロールせずに収まります。(#252、@sabopura さんの貢献)
  • 画像の翻訳ページとフォルダの許可のページがダークモードに対応しました。 (#249、@sabopura さんの貢献)
  • 削除したサイトルールが戻らなくなりました。 言語の移行を読み込んでいる間に削除したルールを、設定画面が古い内容で復元しなくなりました。(#257)
  • 日本語・英語以外の言語でも訳し残しが減りました。 出力の上限とトークン数の見積もりを訳元・訳先の言語に合わせ、ロシア語・タイ語・テルグ語・ビルマ語などで、生成し直しや原文のまま残る段落がなくなります。(#222、@sabopura さんの貢献)
  • 字幕の訳が場面に合うようになりました。 字幕のキャッシュを直前の行と組にして保存するため、別の場面の同じ文にはその場面に合った訳が返ります。(#221、@sabopura さんの貢献)
  • PDF: 表と数式のレイアウトが保たれます。 表の背景色と罫線が翻訳後も残り、表の見出しの訳文はセル内に収まり、中央揃えの行ラベルや短い本文行は実際に使える幅で表示されます。数式の多い証明は小さなプロンプトに分け、番号付きの数式は上付き・下付き文字を保ちます。(#227、#226、#270、#265、#264、#260、#224、#203、@kiyoka さんの貢献)
  • PDF: 参考文献と要旨が正しく読めます。 タイトルの引用符と句読点が残り、短い著者行も認識され、要旨の前半だけ訳文が小さくなりません。(#233、#225、@kiyoka さんの貢献)
  • PDF: 書き出した PDF の文字選択位置が合いました。 訳文を選択・コピーすると、ページ左上に集まらず、表示されている訳文の行に沿って選べます。(#271、@kiyoka さんの貢献)
  • PDF: 行末のハイフンで段がつながりません。 2段組のページで、左段の行末がハイフンで終わっても右段と結合しません。(#262)
  • 「戻る」でページ翻訳が再開します。 翻訳中にページを離れて戻っても、未訳の部分が続きから訳され、バーが「翻訳しました。」のまま止まりません。(#245、@sabopura さんの貢献)
  • 拡張機能の更新・再読み込み後にページがきれいになります。 古いバーや訳文、属性、リスナーが残らず、もう一度翻訳しても UI が二重になりません。(#241、@sabopura さんの貢献)
  • 訳さない部品が文の最後に寄らなくなりました。 translate="no" のコードなどが元の位置に残り、要素が空白をはさんで並ぶ段落も空になりません。(#231、#220、@sabopura さんの貢献)
  • 改行で分けた本文の各行が残ります。 <br> で分けた太字やリンクの行が空にならず、やり直しの途中で失敗した訳が残りません。(#228、#230、@sabopura さんの貢献)
  • 空の訳文は原文に戻ります。 段落の一部の答えが空でも、その部分が消えずに原文が表示されます。(#229、@sabopura さんの貢献)
  • 入れ子のインライン要素が二重に訳されません。 再走査で子要素を二重に拾わず、「原文に戻す」で訳が残りません。(#239、@sabopura さんの貢献)
  • 別のサイトへ移る iframe があっても翻訳が止まりません。 走査が途中で落ちず、見つけた段落は送られます。(#219、@sabopura さんの貢献)
  • 言語の判定が実際の文字体系を見るようになりました。 lang="ja" のページにあるアクセント付きの英語段落が飛ばされません。(#236、@sabopura さんの貢献)
  • service worker が止まっても翻訳が固まりません。 生存確認で無応答を検出し、「翻訳中」のまま永久に待たなくなります。(#232、@sabopura さんの貢献)
  • モデルが壊れた1バイトを出してもページが止まりません。 不正な UTF-8 は置換文字になり、GPU の喪失として読み直しを繰り返しません。(#218、@sabopura さんの貢献)
  • YouTube Shorts の字幕が訳されます。 非表示の通常プレーヤーが残っていても、Shorts のプレーヤーを優先して拾います。(#237、@sabopura さんの貢献)
  • 右から左のページでもポップアップが読みやすくなりました。 ポップアップは左から右の配置になり、訳文は訳先言語の向きに従います。(#238、@sabopura さんの貢献)
  • 各言語の表示が整いました。 12言語に残っていた英語と誤訳を直し、区切り文字や長いラベルも読みやすくしました。(#246、@sabopura さんの貢献)
  • npm ライブラリ。 5つの @sakutto/* ライブラリ(core、models、runtime-wllama、ocr、pdf)を、拡張機能と同じバージョンで npm に公開しました。ほかのアプリからも、Sakutto の翻訳・モデル・OCR・PDF レイアウトの部品を利用できます。詳しくは README の Libraries セクションと npm をご覧ください。拡張機能が主な製品です。(#223、#263、#272)
  • 謝辞: このリリースに貢献してくださった @sabopura さん(#243、#244、#240、#242、#250、#251、#253、#248、#247、#252、#249、#222、#221、#245、#241、#231、#220、#228、#230、#229、#239、#219、#236、#232、#218、#237、#238、#246)、@kiyoka さん(#271、#233、#227、#226、#225、#224、#203)、ありがとうございました。

Don't miss a new sakutto release

NewReleases is sending notifications on new releases.