ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] images with alt text
@ 2024-09-21 17:16 Steffen Wolfrum
  2024-09-22 11:15 ` [NTG-context] " Hans Hagen via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Wolfrum @ 2024-09-21 17:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Hi,

as publishing houses (at least in Germany) are forced to provide «alt text» with their PDF-publications (from June 2025 on),
I need to know how «images with alternate text» (https://en.wikipedia.org/wiki/Alt_attribute) are typeset with ConTeXt LMTX.

In HTML it looks like this:

<img src="example.jpg" alt="Example text">

What is the equivalent in ConTeXt LMTX?

Yours, Steffen

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: images with alt text
  2024-09-21 17:16 [NTG-context] images with alt text Steffen Wolfrum
@ 2024-09-22 11:15 ` Hans Hagen via ntg-context
  2024-09-22 12:43   ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2024-09-22 11:15 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 9/21/2024 7:16 PM, Steffen Wolfrum wrote:
> Hi,
> 
> as publishing houses (at least in Germany) are forced to provide «alt text» with their PDF-publications (from June 2025 on),
> I need to know how «images with alternate text» (https://en.wikipedia.org/wiki/Alt_attribute) are typeset with ConTeXt LMTX.
> 
> In HTML it looks like this:
> 
> <img src="example.jpg" alt="Example text">
> 
> What is the equivalent in ConTeXt LMTX?

afaik there no such tag on an image in pdf so one has to wrap, i'll add

     \startPDFalternativetext{when will the german government provide 
full acrobat for free (livelong) to developers}
         \scale[s=3]{\rotate[rotation=30]{DE}}
     \stopPDFalternativetext

to play with but integrating something more nice also will b emore 
confusing ... the problem is that anything can be an image (liek a mp 
picture)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: images with alt text
  2024-09-22 11:15 ` [NTG-context] " Hans Hagen via ntg-context
@ 2024-09-22 12:43   ` Pablo Rodriguez via ntg-context
  2024-09-22 19:58     ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-09-22 12:43 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez

On 9/22/24 13:15, Hans Hagen via ntg-context wrote:
> On 9/21/2024 7:16 PM, Steffen Wolfrum wrote:
>> Hi,
>>>> as publishing houses (at least in Germany) are forced to provide
>> «alt text» with their PDF-publications (from June 2025 on),

Hi Steffen and Hans,

this will be a requirement for the whole European Economic Area. This is
where the Accessibility Directive should be applied.

Since this may not be the single requirement, I started a new wiki page
for that: https://contextgarden.net/Accessibility.

Please, feel free to contribute (as ever).

>> What is the equivalent in ConTeXt LMTX?
>
> afaik there no such tag on an image in pdf so one has to wrap, i'll add

Alternate descriptions are covered in
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#nameddest=G13.2262140.

From what I see in the sample, they are very similar to /ActualText, but
with /Alt instead (related to a marked section).

They are applied to all items that have no direct text translation, such
as images or formulas (to alternatively describe them in text).

>      \startPDFalternativetext{when will the german government provide
> full acrobat for free (livelong) to developers}
>          \scale[s=3]{\rotate[rotation=30]{DE}}
>      \stopPDFalternativetext
>
> to play with but integrating something more nice also will b emore
> confusing ... the problem is that anything can be an image (liek a mp
> picture)

I  think this is great, since this allows it to be applied as allowed by
the PDF spec.

Also for the expansion of abbreviations, /E is provided for marked
sections
(https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#nameddest=G13.2260327),
the same way as /ActualText (but it expects whole words).

It would be great to have synonyms added the /E information by default.
I think this may be a requirement for text-to-speech conversions.

Many thanks for your help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: images with alt text
  2024-09-22 12:43   ` Pablo Rodriguez via ntg-context
@ 2024-09-22 19:58     ` Hans Hagen via ntg-context
  2024-09-23  6:02       ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2024-09-22 19:58 UTC (permalink / raw)
  To: Pablo Rodriguez via ntg-context; +Cc: Hans Hagen

On 9/22/2024 2:43 PM, Pablo Rodriguez via ntg-context wrote:

> It would be great to have synonyms added the /E information by default.
> I think this may be a requirement for text-to-speech conversions.

even more crap .. let's wait till abbreviations are completely forbiddeb 
(and also units and such )

anyway, i might wait till we have some project for some government

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: images with alt text
  2024-09-22 19:58     ` Hans Hagen via ntg-context
@ 2024-09-23  6:02       ` Pablo Rodriguez via ntg-context
  2024-09-23 15:09         ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-09-23  6:02 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez

On 9/22/24 21:58, Hans Hagen via ntg-context wrote:
> On 9/22/2024 2:43 PM, Pablo Rodriguez via ntg-context wrote:
>
>> It would be great to have synonyms added the /E information by default.
>> I think this may be a requirement for text-to-speech conversions.
>
> even more crap .. let's wait till abbreviations are completely forbiddeb
> (and also units and such )

From what I see, /E may be helpful (similar to /ActualText).

For me, the real problem with accessibility (and penalties for
non-accessible documents) is that it will force all documents to be
machine-readable (so we have to feed AI with all our public documents,
whether we like it or not).

I mean, no such as "\enabledirectives[backend.pdf.nounicode=❌]" allowed.

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: images with alt text
  2024-09-23  6:02       ` Pablo Rodriguez via ntg-context
@ 2024-09-23 15:09         ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2024-09-23 15:09 UTC (permalink / raw)
  To: Pablo Rodriguez via ntg-context; +Cc: Hans Hagen

On 9/23/2024 8:02 AM, Pablo Rodriguez via ntg-context wrote:
> On 9/22/24 21:58, Hans Hagen via ntg-context wrote:
>> On 9/22/2024 2:43 PM, Pablo Rodriguez via ntg-context wrote:
>>
>>> It would be great to have synonyms added the /E information by default.
>>> I think this may be a requirement for text-to-speech conversions.
>>
>> even more crap .. let's wait till abbreviations are completely forbiddeb
>> (and also units and such )
> 
>  From what I see, /E may be helpful (similar to /ActualText).

Imo it's useless:

(1) normally when a new abbreviation is intriduced one has the expanded 
meaning after it
(2) after that it is suposed to be known
(3) if one jumps into a document in the middle one cannot expect it to 
be repeated every time
(4) if that *is* expoected there is no need to use abbreviations at all
(5) so, why should a 'read out' document have all abbreviations with an 
expanded meaning and a typeset text not

> For me, the real problem with accessibility (and penalties for
> non-accessible documents) is that it will force all documents to be
> machine-readable (so we have to feed AI with all our public documents,
> whether we like it or not).

i assume that such a machine learning or pattern recognotion app can 
quite well figure out that it's an abbreviation

> I mean, no such as "\enabledirectives[backend.pdf.nounicode=❌]" allowed.

well, everything is allowed ... after all why do we typeset and 
visualize otherwise ... it depends on the audience

one can always generate multiple versions, one with two times the number 
of pages and all expanded

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-23 15:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-21 17:16 [NTG-context] images with alt text Steffen Wolfrum
2024-09-22 11:15 ` [NTG-context] " Hans Hagen via ntg-context
2024-09-22 12:43   ` Pablo Rodriguez via ntg-context
2024-09-22 19:58     ` Hans Hagen via ntg-context
2024-09-23  6:02       ` Pablo Rodriguez via ntg-context
2024-09-23 15:09         ` Hans Hagen via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).