Discussion:
lang tag and alt text
Gies, Edward M. (ELS-DAY)
2018-09-07 16:47:04 UTC
Permalink
Hi all,

We have an interesting case where we want to honor change in page language using the lang tag for some image alt text which is in German.

The image link can be found on the Mayo Clinic Proceedings home page<https://mayoclinicproceedings.com/>.
Look under the heading level 2 with text Stamp Vignette.
The graphic is a German postage stamp honoring cardiologist Werner Forssmann. The stamp contains a picture of Werner, a medical image, and some German text for the value of the stamp, etc.

My thought is to wrap the <img> tag with a <div lang="DE">

Wondering if anyone can confirm this approach below is sound and if not providing an alternative technique.
When I tested this using JAWS 17 the alt text was not announced in what I consider a German accent.

[cid:***@01D446A8.4434FB80]

Thanks,
Ted
George Kerscher
2018-09-07 17:40:37 UTC
Permalink
Make sure the JFW setting for adjust speaking based on language is set. You
can get to it with ins+v if it is not set, it will not switch languages. If
it is set, it uses a different TTS language.

Best
George


From: Gies, Edward M. (ELS-DAY) <***@elsevier.com>
Sent: Friday, September 7, 2018 10:47 AM
To: w3c-wai-***@w3.org
Subject: lang tag and alt text

Hi all,

We have an interesting case where we want to honor change in page language
using the lang tag for some image alt text which is in German.

The image link can be found on the Mayo Clinic Proceedings home page
<https://mayoclinicproceedings.com/> .
Look under the heading level 2 with text Stamp Vignette.
The graphic is a German postage stamp honoring cardiologist Werner
Forssmann. The stamp contains a picture of Werner, a medical image, and
some German text for the value of the stamp, etc.

My thought is to wrap the <img> tag with a <div lang="DE">

Wondering if anyone can confirm this approach below is sound and if not
providing an alternative technique.
When I tested this using JAWS 17 the alt text was not announced in what I
consider a German accent.



Thanks,
Ted
Cohn, Jonathan
2018-09-07 18:29:33 UTC
Permalink
It is also possible that some speech engines might have issues If you are not using Eloquence than make sure that you have downloaded an appropriate voice from Freedom Scientific to support the language you are working with. There should be a link in the help menu of the JAWS window to help you jump directly to the appropriate web page.

Jonathan Cohn


From: George Kerscher <***@montana.com>
Date: Friday, September 7, 2018 at 1:46 PM
To: "'Gies, Edward M. (ELS-DAY)'" <***@elsevier.com>, "w3c-wai-***@w3.org" <w3c-wai-***@w3.org>
Subject: RE: lang tag and alt text
Resent-From: <w3c-wai-***@w3.org>
Resent-Date: Friday, September 7, 2018 at 1:41 PM

Make sure the JFW setting for adjust speaking based on language is set. You can get to it with ins+v if it is not set, it will not switch languages. If it is set, it uses a different TTS language.

Best
George


From: Gies, Edward M. (ELS-DAY) <***@elsevier.com>
Sent: Friday, September 7, 2018 10:47 AM
To: w3c-wai-***@w3.org
Subject: lang tag and alt text

Hi all,

We have an interesting case where we want to honor change in page language using the lang tag for some image alt text which is in German.

The image link can be found on the Mayo Clinic Proceedings home page<https://mayoclinicproceedings.com/>.
Look under the heading level 2 with text Stamp Vignette.
The graphic is a German postage stamp honoring cardiologist Werner Forssmann. The stamp contains a picture of Werner, a medical image, and some German text for the value of the stamp, etc.

My thought is to wrap the <img> tag with a <div lang=”DE”>

Wondering if anyone can confirm this approach below is sound and if not providing an alternative technique.
When I tested this using JAWS 17 the alt text was not announced in what I consider a German accent.

[cid:***@01D4469E.FD421310]

Thanks,
Ted
Chaals Nevile
2018-09-07 18:24:10 UTC
Permalink
What *should* work is using a figure element, and <figcaption> ... But I
would be interested to know if it *does*.

cheers

On Fri, 07 Sep 2018 18:47:04 +0200, Gies, Edward M. (ELS-DAY)
Post by Gies, Edward M. (ELS-DAY)
Hi all,
We have an interesting case where we want to honor change in page
language using the lang tag for some image alt text which is in German.
The image link can be found on the Mayo Clinic Proceedings home page.
Look under the heading level 2 with text Stamp Vignette.
The graphic is a German postage stamp honoring cardiologist Werner
Forssmann. The stamp contains a picture of Werner, a medical image, and
some German text >for the value of the stamp, etc.
My thought is to wrap the <img> tag with a <div lang=”DE”>
Wondering if anyone can confirm this approach below is sound and if not
providing an alternative technique.
When I tested this using JAWS 17 the alt text was not announced in what
I consider a German accent.
Thanks,
Ted
--
Chaals: Charles (McCathie) Nevile find more at https://yandex.com
Using Opera's long-abandoned mail client: http://www.opera.com/mail/
Is there really still nothing better?
Léonie Watson
2018-09-08 13:15:51 UTC
Permalink
Post by Gies, Edward M. (ELS-DAY)
The graphic is a German postage stamp honoring cardiologist Werner
Forssmann. The stamp  contains a picture of Werner, a medical image, and
some German text for the value of the stamp, etc.
My thought is to wrap the <img> tag with a <div lang=”DE”>
Wondering if anyone can confirm this approach below is sound and if not
providing an alternative technique.
Suggest using the lang attribute on the <img> tag instead. It isn't
widely supported across browsers and screen readers, but it does seem to
be marginally better than putting the lang attribute on a parent div.



Léonie.

Loading...