Repository navigation
v0.2.4
Small figures the author described are now shown as pictures, and a figure whose alternative text is empty is no longer treated as one the author marked decorative.
What changes for a reader
These apply to PDF の構造タグ (the tagged reading), and to the combined reading built on it.
- A small figure the author described is shown as a picture. Until now a tagged figure under 24pt on a side was never shown; the notice took its place. Now, if the author wrote alternative text for it, it is shown however small it is, unless it is under 2pt on its thinner side, like a rule. In the flyer from #12, that is six icons, all with the author's alternative text: each of its 14 figures is now located for a picture, where 8 were, and the six icons were seen on screen in Chrome. (#15)
- A small figure is drawn finer than other figures, aiming for 48 pixels on its shorter side, so an icon can be made out instead of being 20 pixels across. A thin, wide figure is capped at 1200 pixels on its longer side. An icon that was embedded as a tiny bitmap stays coarse: drawing it finer cannot add detail it does not have.
- What a sighted reader sees changes for those figures. The notice 「画像: アイコン:PDF」 used to be on screen; now the picture is, and the author's words are in its alternative text, read by screen readers but not drawn. That is how the Reader has always treated an author's text when the image is shown (see #17).
- A small figure without the author's own words keeps the notice, as before. Size alone does not tell a small icon from a fragment of a larger drawing.
- An empty alternative text is no longer announced as decorative. Since 0.2.2, a figure whose
/Altwas present but empty was read as the author marking it decorative: where no image was shown, the Reader said 「装飾的な画像です。内容はありません。」, and where the image was shown, it said nothing, and screen readers skipped the image. In what was measured, Word and PowerPoint for Microsoft 365 do not use it that way: both leave a picture the author marked Decorative out of the structure altogether, and PowerPoint writes an empty/Altfor a shape the author gave no alternative text at all. Such a figure now gets the same notice as one with no/Alt, 「作成者による代替テキストはありません」, whether or not its image is shown, and where it is large enough to show, it can be offered for an AI description again. (#27) - PowerPoint's 「(グループ化されたオブジェクト)」 is removed from a group's alternative text. PowerPoint appends it when it exports a group, and the Reader showed it as part of the author's words. Only the Japanese form has been seen, and only it is removed. (#28)
Not changed yet
- A small figure is cropped by its rectangle, so anything else drawn inside that rectangle shows too. None did in the documents it was checked on, in Chrome; the lasting fix is to draw only the figure's own content.
- In the Word for Microsoft 365 build measured, an icon placed in the middle of a sentence is tagged as coming after the paragraph, so the sentence is read first and the icon after it.
Under the hood
- A Word document and a PowerPoint deck written for this project, each exported as a tagged PDF, are in the repository with the expectations they are checked against, so these cases are tested on every change.
日本語
作成者が代替テキストを付けた小さな図を、画像として表示するようになりました。代替テキストが空の図を、作成者が装飾と指定した図として扱うこともなくなりました。
以下は「PDF の構造タグ」と、それをもとにした「構造タグ+推測した見出し」の読み取りでの変更です。
- 作成者が代替テキストを付けた小さな図を、画像として表示します。 これまで、縦か横が 24pt に満たないタグ付きの図は画像を表示せず、メッセージを出していました。今後は、作成者が代替テキストを付けていれば、大きさに関係なく表示します。ただし、罫線のように細い側が 2pt に満たないものは除きます。#12 のフライヤーでは、どれも作成者の代替テキストがある 6 件のアイコンが該当し、画像を切り出せる図は 14 件中 8 件から 14 件すべてになりました。6 件のアイコンが画像で表示されることは、Chrome で確かめています。(#15)
- 小さな図はほかの図より細かく描き、短い辺を 48 ピクセル程度にします。20 ピクセルほどの大きさでは、何の絵か見分けにくいためです。細長い図は、長い辺を 1,200 ピクセルまでに抑えます。もともと小さな画像として埋め込まれているアイコンは、細かく描いても粗いままです。
- **これらの図では、画面の見え方が変わります。**これまで画面に出ていた「画像: アイコン:PDF」のようなメッセージの代わりに画像を表示し、作成者の文は画像の代替テキストになります。スクリーンリーダーでは読み上げられますが、画面には表示しません。画像を表示するときの作成者の文の扱いは、これまでと同じです(#17)。
- 作成者自身の文がない小さな図は、これまでどおりメッセージを表示します。大きさだけでは、小さなアイコンと、大きな図の一部を見分けられないためです。
- 空の代替テキストを、装飾の指定として伝えなくなりました。 0.2.2 から、
/Altがあって中身が空の図を、作成者が装飾と指定したものとして扱っていました。画像を表示しない図では「装飾的な画像です。内容はありません。」と表示し、画像を表示する図では何も伝えず、スクリーンリーダーも画像を読み飛ばしていました。確認した範囲では、Microsoft 365 の Word と PowerPoint は、空の/Altをその意味で使っていません。作成者が装飾と指定した画像は、どちらも文書の構造から外しています。また PowerPoint は、代替テキストを設定していない図形に空の/Altを書き出します。今後はこうした図も、画像を表示するかどうかにかかわらず、/Altのない図と同じく「作成者による代替テキストはありません」と伝え、表示できる大きさのものは AI による説明の対象にもなります。(#27) - PowerPoint がグループの代替テキストに足す「(グループ化されたオブジェクト)」を取り除きます。 PowerPoint はグループを書き出すときにこの文言を足しますが、Reader はそれを作成者の文の一部として表示していました。確認できたのは日本語の文言だけで、取り除くのもその文言だけです。(#28)
まだ変えていないこと:
- 小さな図は四角形で切り出すため、その範囲に描かれているほかのものも写ります。確認した文書では Chrome で見て写り込みはありませんでしたが、根本的には、図そのものの内容だけを描く必要があります。
- 確認した Microsoft 365 の Word では、文の途中に置いたアイコンが、段落の後ろにあるものとしてタグ付けされます。そのため、文を読んだ後にアイコンが続きます。