Tworzenie tekstów alternatywnych dla obrazków w plikach PDF
Informacje o wersji
- Identyfikator wersji: 290136
- Utworzono:
- Autor: TyDraniu
- Komentarz: WIP
- Zrecenzowano: Nie
- Gotowy do tłumaczenia: Nie
Źródło wersji
Podgląd zawartości
Zadbanie o dostępność plików PDF ma zasadnicze znaczenie dla zapewnienia, że wszyscy, w tym osoby korzystające z czytników ekranu, mogą w pełni korzystać z treści. Tekst alternatywny zapewnia kluczowe opisy obrazów, pomagając użytkownikom korzystającym z czytników ekranu i wspierając osoby z niepełnosprawnościami poznawczymi. Niestety, w plikach PDF często brakuje tekstu alternatywnego.
Firefox ułatwia dodawanie alternatywnego tekstu do plików PDF. Możesz to zrobić ręcznie lub skorzystać z naszej eksperymentalnej funkcji opartej na sztucznej inteligencji, aby automatycznie wygenerować tekst alternatywny. Tekst alternatywny można dodać podczas wstawiania obrazu lub później. Jeśli korzystasz z tekstu generowanego przez sztuczną inteligencję, pamiętaj o sprawdzeniu jego poprawności.
Spis treści
- 1 Ręczne dodanie tekstu alternatywnego
- 2 Automatyczne dodanie tekstu alternatywnego
- 3 Image alt text settings
- 4 Tips for writing alt text
- 5 Często zadawane pytania
- 5.1 Is the automatic alt text accurate?
- 5.2 Czy automatyczny tekst alternatywny może generować zbyt opisową lub złożoną treść?
- 5.3 Czy automatyczny tekst alternatywny może być zbyt niejasny lub pomijać kluczowe szczegóły?
- 5.4 Czy automatyczny tekst alternatywny jest prywatny?
- 5.5 Czy jakiekolwiek dane PDF lub obrazu są wykorzystywane do trenowania modelu tekstu alternatywnego?
- 5.6 How do I turn off automatic alt text?
- 5.7 How do I know when alt text is automatically generated?
- 5.8 Czy mogę pominąć dodanie tekstu alternatywnego?
- 5.9 Czy tekst alternatywny pojawia się na wydrukowanym PDF-ie?
- 5.10 Czy automatyczny tekst alternatywny może generować stronnicze, nieodpowiednie lub obraźliwe treści?
- 6 Powiązane artykuły
Ręczne dodanie tekstu alternatywnego
To include an image in your PDF and manually add alt text for accessibility, follow these steps:
- At the top right of the screen, click
.
- Kliknij to open the file selection window.
- Browse and select the image file you want to add to the PDF.
- After adding the image, click .
- In the provided space, either:
- Write a concise description of the image for screen readers, or
- Oznacz jako dekoracyjne if it’s only for visual appeal.
- Click to insert the alt text.
- Drag and drop the image to your preferred location within the PDF.
- To resize the image, click and drag its borders until it reaches the desired size.
To include an image in your PDF and manually add alt text for accessibility, follow these steps:
- Open a PDF in Firefox. Click the image icon
at the top of the PDF viewer, then click .
- Choose an image to add. Once the image is uploaded, you’ll see the alt text editor.
- Turn off
the toggle next to Create alt text automatically.
- Write the alt text from scratch in the text box.
- Click
- You will see a confirmation message that your alt text was added.
- If the image has no alt text, you will see a button that says . You can click this any time to add alt text to your image, which will make your document more accessible.
- If you deselect an image and it is still missing alt text, you will see an alert on the image (this will not appear in print view).
- To remove this alert, click the image icon at the top of the PDF editor, then click the image, then click the button and follow the steps above.
Instrukcja alternatywna
The above steps are part of an ongoing experiment. Some users may need to follow these alternative steps, to add alt text manually:
- At the top right of the screen, click
.
- Click to open the file selection window.
- Browse and select the image file you want to add to the PDF.
- After adding the image, click .
- In the provided space, either:
- Write a concise description of the image for screen readers, or
- Mark the image as decorative if it’s only for visual appeal.
- Click to insert the alt text.
- Drag and drop the image to your preferred location within the PDF.
- To resize the image, click and drag its borders until it reaches the desired size.
Automatyczne dodanie tekstu alternatywnego
About automatic alt text
Automatic alt text relies on the download of a small language AI model to your device. This allows the model to run directly on your device, so your images and data never leave your control and your privacy is always protected. Importantly, your personal data is never used to train the model; instead, the model is trained on a diverse set of open-source images. This way, you get useful alt text for your PDFs without giving up your privacy. Read more about our small language model, or learn about how we trained the model.
Use the automatic alt text feature
To include an image in your PDF and automatically add alt text for improved accessibility, follow these steps:
- Open a PDF in Firefox. Click the image icon
at the top of the PDF viewer, then click .
- Choose an image to add. Once the image is uploaded, you’ll see the alt text editor along with some automatically generated alt text based on your image. The generated text may take a few seconds to load the first time you use it.
- Review the automatically generated text and rewrite/edit as needed.
- Click
- You will see a confirmation message that your alt text was added.
- If instead of you click , you may see a button that says . This is because our automatic alt text should receive a human review to ensure quality. You can click any time, and click after reviewing and editing the alt text as needed.
- If you deselect an image and the alt text still needs review, you will see an alert on the image (this will not appear in print view).
- To remove this alert, click the image icon at the top of the PDF editor, then click the image, then click the button and follow the steps above.
Image alt text settings
- Click the overflow menu of the PDF viewer, and select
- From the settings panel, you can turn off automatic alt text and delete the alt text AI model from your device. Please note that having the AI model on your device is required to use automatic alt text.
- You can also change the alt text editor settings if you don’t want to see the alt text editor right away after adding an image. If you turn this off, you will still be able to access the alt text editor by clicking the image icon at the top of the PDF viewer, then selecting an image and clicking the alt text button.
Tips for writing alt text
Alt text should be a brief summary of the content of an image. Think about what is most important for your readers to understand about the image and how it relates to the rest of your PDF content. For in-depth tips on writing alt text, check out these resources:
- W3C tips and tricks
- American Foundation for the Blind: Writing Effective Image Descriptions or “Alt Text”
- Harvard University: “Write helpful Alt Text to describe images”
- Washington Post alt text guidelines
Często zadawane pytania
Is the automatic alt text accurate?
Our small language model is still a work in progress, and it will make mistakes, especially when describing complex images. This is why we designed the feature to:
- Encourage human review so that our users can correct inaccuracies and include any missing details before saving the alt text.
- Provide guardrails and notify screen reader users up front if alt text was automatically generated. This allows screen reader users to decide if they want to read or skip the description, with the understanding that automatic descriptions may be less accurate than descriptions written by a human.
To report issues with automatically generated content, please create tickets here.
Czy automatyczny tekst alternatywny może generować zbyt opisową lub złożoną treść?
Dobry tekst alternatywny powinien być krótki i używać prostych słów. Dlatego też wytrenowaliśmy nasz model do tworzenia bardzo krótkich opisów, które używają prostego języka w jak największym stopniu.
Czy automatyczny tekst alternatywny może być zbyt niejasny lub pomijać kluczowe szczegóły?
Ponieważ dążymy do krótkich opisów, możliwe jest, że tekst będzie pozbawiony szczegółów. Dlatego zachęcamy do sprawdzania przez człowieka wszystkich automatycznie generowanych tekstów alternatywnych, aby dodał odpowiedni kontekst i szczegóły w razie potrzeby.
Czy automatyczny tekst alternatywny jest prywatny?
Tak. Mały model językowy, który obsługuje tę funkcję, jest pobierany lokalnie na urządzenie. Oznacza to, że zawartość plików PDF i obrazów pozostaje prywatna na urządzeniu i nigdy nie jest wysyłana na zdalny serwer. Zawartość pliku PDF, obrazu i tekstu alternatywnego nigdy nie będzie widoczna dla Mozilli.
Czy jakiekolwiek dane PDF lub obrazu są wykorzystywane do trenowania modelu tekstu alternatywnego?
Nie. Żadne dane PDF lub obrazu nie opuszczają urządzenia, a dane nigdy nie zostaną wykorzystane do trenowania modeli SI.
How do I turn off automatic alt text?
From the alt text editor, you can turn the Automatyczne tworzenie tekstu alternatywnego toggle off to turn off the feature. Or, you can access image alt text settings from the PDF overflow menu and turn off the toggle from there. On this settings screen, you can also delete the model from your device.
How do I know when alt text is automatically generated?
When you see the text This alt text was created automatically below the text box on the alt text editor, you’ll know that the alt text was generated using our model.
Users who are reading the PDF outside of the Firefox editor will experience a disclaimer that comes before the alt text. This is so people reading the alt text with a screen reader or directly on the PDF can be informed that the alt text was not human-generated. For example: “Created automatically: [alt text description will go here]”.
If a user has manually edited the automatic alt text, the disclaimer will disappear.
Czy mogę pominąć dodanie tekstu alternatywnego?
Yes. After adding an image, you can click
on the alt text editor. This will discard any changes you have made to the alt text.If you do this, you may see a button on the image that says
. This is because our automatic alt text should receive a human review to ensure quality. If the image doesn’t have any alt text, you will see a button that says . You can click this button at any time and click after reviewing, adding or editing the alt text as needed.If you no longer wish to see the alt text editor after adding an image, open image alt text settings from the PDF overflow menu and turn off this setting.
Czy tekst alternatywny pojawia się na wydrukowanym PDF-ie?
Nie, tekst alternatywny pojawia się tylko w cyfrowym pliku PDF, gdzie można go wyświetlić, najeżdżając kursorem na obraz lub odczytać za pomocą czytnika ekranu.
Czy automatyczny tekst alternatywny może generować stronnicze, nieodpowiednie lub obraźliwe treści?
Podjęliśmy kilka kroków w celu zmniejszenia ryzyka, że model alternatywnego tekstu wygeneruje stronnicze, nieodpowiednie lub obraźliwe treści. Obejmują one zaprogramowanie modelu tak, aby nie używał obraźliwego języka ani nie zakładał rasy, pochodzenia etnicznego, religii, płci lub stanu zdrowia osób przedstawionych na obrazie.
Chociaż dobry tekst alternatywny przekazuje znaczenie obrazu i jego treści, mały model językowy, który zasila tę funkcję, nie może zapewnić zniuansowanego znaczenia ani umieścić obrazu w odpowiedniej treści historycznej lub kulturowej tak, jak może to zrobić człowiek. Nasz model został jednak zaprojektowany w celu stworzenia pierwszego szkicu tekstu alternatywnego, który nasi użytkownicy mogą edytować w razie potrzeby, aby prawidłowo przekazać znaczenie obrazu. Zapewniając ten punkt wyjścia i zachęcając do przeglądu przez człowieka, pomagamy użytkownikom szybciej tworzyć tekst alternatywny zgodny z ustalonymi najlepszymi praktykami.
Dowiedz się więcej o tym, jak uwzględniliśmy stronniczość podczas szkolenia modelu tekstu alternatywnego.