Skip to content

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 11:48
· 32 commits to main since this release

Text that put two sentences side by side now joins them the way each language does, and the Japanese interface no longer points to tabs that do not exist.

What changes for a reader

  • "…they wrote. 6 headings." In English, each reading in 「構造の読み取り方」 ("How the structure was read") had its heading count run into its description: "…any alternative text they wrote.6 headings." That text is also the radio's description, so it was built to be read out that way as well. There is now a space.
  • No stray space after 「。」 in Japanese. Five places joined two sentences with a space, which is right in English and not in Japanese:
    • the settings' on-device AI section when the model is unavailable: 「この端末では利用できません。このブラウザは…」
    • the notice that pages need OCR
    • the Markdown view's choice between the Reader's content and the parser's raw output
    • the language note in the image-description panel
    • the OCR panel's note when no OCR engine is available
  • The Japanese interface names the views as you choose them. Three messages pointed to 「オリジナルタブ」 or 「リーダータブ」, but the views are chosen in the 「表示」 menu, not tabs. They now say 「「表示」で「オリジナル」を選ぶと…」 and 「「表示」で「リーダー」を選ぶと…」. The English already said "the Original view".
  • Punctuation in the image-description panel. In Japanese, the per-image results and the language note used an ASCII colon, 「失敗: …」; they use 「:」 now. In English, the language note is now a sentence of its own: "(This document's language: ja.)" where it was "(this document's language: ja)".
  • "Finished analysing the PDF (3 pages)." The English status line read "Finished analysing the PDF. 3 pages." In some typefaces, including the one it was noticed in, the full stop sits under the arm of the F and almost disappears; and "3 pages." is not a sentence. The Japanese, 「PDF の解析が完了しました。3 ページ。」, is unchanged.

These are covered by tests: some render the text in both languages, and a scan of the code finds any sentences still joined by a literal space. Each fails on the previous version. They have not been looked at in a browser or listened to with a screen reader.

Under the hood

  • Sentences are joined by one function in the message catalogue, with a space in English and none in Japanese, and a test checks that every message joined this way is a whole sentence.
  • Another test scans the code for messages joined by a literal space, so the next one is found without a reviewer.

Pull request: #46.


日本語

2 つの文を並べて表示しているところで、文と文を言語に合ったつなぎ方にしました。日本語の画面で、存在しないタブを案内することもなくなりました。

  • 英語の「…they wrote. 6 headings.」 英語の画面の「構造の読み取り方」で、各選択肢の説明文のすぐ後ろに見出しの件数が空白なしで続き、「…they wrote.6 headings.」となっていました。この文はラジオボタンの「説明」でもあるため、読み上げでもそのまま読まれる作りでした。空白を入れました。
  • 日本語で、句点のあとに余計な空白が入らなくなりました。 次の 5 か所で、2 つの文を空白でつないでいました。英語では正しいつなぎ方ですが、日本語では不要です。
    • 設定の「端末内 AI」で、モデルが使えないときの説明(「この端末では利用できません。このブラウザは…」)
    • OCR が必要なページの案内
    • マークダウン表示で、リーダーの内容か解析器の生出力かを選ぶところ
    • 画像の説明パネルの、説明の言語についての注記
    • OCR エンジンがないときの、OCR パネルの注記
  • 表示の切り替え方を、実際の画面どおりに案内します。 3 つのメッセージが「オリジナルタブ」「リーダータブ」を案内していましたが、表示は「表示」のメニューで選ぶもので、タブはありません。「「表示」で「オリジナル」を選ぶと…」「「表示」で「リーダー」を選ぶと…」と書くようにしました。英語の画面は、もともと「the Original view」と書いていました。
  • 画像の説明パネルの句読点。 日本語では、画像ごとの結果と、言語についての注記で半角のコロン(「失敗: …」)を使っていたのを、全角の「:」にしました。英語では、言語についての注記を「(this document's language: ja)」から、それだけで 1 つの文になる「(This document's language: ja.)」にしました。
  • 英語の状態表示「Finished analysing the PDF (3 pages).」 これまでは「Finished analysing the PDF. 3 pages.」でした。気づいたときの書体を含め、一部の書体では、ピリオドが F の横棒の下に入り込んでほとんど見えません。また「3 pages.」だけでは文になっていませんでした。日本語の「PDF の解析が完了しました。3 ページ。」は変えていません。

これらはテストで確かめています。英語と日本語の両方で画面の文字を確かめるテストと、文を決め打ちの空白でつないでいる箇所をソースから探すテストで、どれも前のバージョンでは失敗します。ブラウザで見ての確認と、スクリーンリーダーで聞いての確認はしていません。