WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Lang attribute on names

for

Number of posts in this thread: 4 (In chronological order)

From: Barry
Date: Wed, Jul 27 2022 1:28AM
Subject: Lang attribute on names
No previous message | Next message →

The recent thread on the use of the lang attribute has prompted a question.
Should the lang attribute be used on foreign language propper nouns, such as
a persons name or the name of foreign cities? Im specifically thinking about
an international sports page with lots of foreign names of players. It
would be a hell of a task to put the lang attribute on each one, but should
it be done to conform to a11y?



Thanks in anticipation.



Cheers



Barry





A11y tip: To Make Your tabular HTML Emails More Accessible for screen
readers, use the ARIA presentation role.

From: Patrick H. Lauke
Date: Wed, Jul 27 2022 2:38AM
Subject: Re: Lang attribute on names
← Previous message | Next message →

On 27/07/2022 08:28, Barry via WebAIM-Forum wrote:
> The recent thread on the use of the lang attribute has prompted a question.
> Should the lang attribute be used on foreign language propper nouns, such as
> a persons name or the name of foreign cities? Im specifically thinking about
> an international sports page with lots of foreign names of players. It
> would be a hell of a task to put the lang attribute on each one, but should
> it be done to conform to a11y?

Purely for compliance aspect, note the exceptions listed in the SC
itself (which include "proper names":

"The human language of each passage or phrase in the content can be
programmatically determined except for *proper names*, technical terms,
words of indeterminate language, and words or phrases that have become
part of the vernacular of the immediately surrounding text."

https://www.w3.org/TR/WCAG21/#language-of-parts

Though I'd add that there may still be situations where providing a lang
attribute is useful to give proper hints to assistive technologies to
switch to different speech/language (e.g. if you have the main content
in English, but then have a person's name written in simplified Chinese
or Japanese or other non-roman alphabets).

P
--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke

From: jp Jamous
Date: Wed, Jul 27 2022 11:47AM
Subject: Re: Lang attribute on names
← Previous message | Next message →

In my humble opinion, I think it is a best practice rather than a requirement. That's why WCAG excludes people's names. Let me give you an example using my name.
JP stands for Jean-Pierre, which is a French name

1. Jamous is an Arabic name, which means bull. That's why I can be bull-headed. :*Smiles*
Almost every person that I have met for the last 28 years in the States would pronounce my name incorrectly. That's because people are trying to pronounce it using the American dialect.

Even if I want to add a lang attribute to my name, I would not separate my first name from my last name. That would cause a weirdness in having the first part being spoken with a french TTS and the second part with an Arabic TTS.

So I leave it as English knowing quite well that screen readers are going to pronounce Pierre properly and mess up Jean and Jamous.

A screen reader user can have my name spelled out and the user would use his or her knowledge to figure out how to pronounce it. This is how sighted users would approach it as well. Those who have some French background will recognize Jean-Pierre. However, almost no one will figure out the proper way of pronouncing my last name even if they speak Arabic. It gets looked upon as famous but with a J instead of an F.

I think that's why WCAG does not recommend names to be a part of its compliance.


From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of Patrick H. Lauke
Sent: Wednesday, July 27, 2022 3:38 AM
To: = EMAIL ADDRESS REMOVED =
Subject: Re: [WebAIM] Lang attribute on names

On 27/07/2022 08:28, Barry via WebAIM-Forum wrote: > The recent thread on the use of the lang attribute has prompted a question. > Should the lang attribute be used on foreign language propper nouns,
External ( = EMAIL ADDRESS REMOVED = <mailto: = EMAIL ADDRESS REMOVED = >)
Report This Email<https://protection.inkyphishfence.com/report?id=bmV0b3JnZnQxMDM2OTU1NC9qcEBqZXBlbHN5LmNvbS82ZmVlNzJhNjRlZDRkNDg0MzM1MGU3MTkyNjYzMjE1OS8xNjU4OTExMTE4LjE2#key0d804b40e4a1ef07f7fb89bffe7749> FAQ<https://www.inky.com/banner-faq> GoDaddy Advanced Email Security, Powered by INKY<https://www.inky.com/protection-by-inky>


On 27/07/2022 08:28, Barry via WebAIM-Forum wrote:

> The recent thread on the use of the lang attribute has prompted a question.

> Should the lang attribute be used on foreign language propper nouns, such as

> a persons name or the name of foreign cities? Im specifically thinking about

> an international sports page with lots of foreign names of players. It

> would be a hell of a task to put the lang attribute on each one, but should

> it be done to conform to a11y?



Purely for compliance aspect, note the exceptions listed in the SC

itself (which include "proper names":



"The human language of each passage or phrase in the content can be

programmatically determined except for *proper names*, technical terms,

words of indeterminate language, and words or phrases that have become

part of the vernacular of the immediately surrounding text."



https://www.w3.org/TR/WCAG21/#language-of-parts<https://shared.outlook.inky.com/link?domain=www.w3.org&t=h.eJwVjMsOgjAURH-F1K20lD6krDAu3BsT10QuKNTS0DbVGP_ddnaTM3O-KGwatQV6eG9dS0iMEUeG120i1wu5nY7nmpKd7s0U-gnKdSxtv3mH9gVa8s-AT9vR04pJJQQns-1msKDdB9_XF5EjwKHuJYeBD7zhjIkKDlTVUrKaCkWoFI2iKQ2mMmshazcYwrtzVj-Nh1SSC4cl4yFhE7T-_QHyWzfP.MEYCIQDF3aeNIt5Ip7-aE_RMgy0Su03edT4QoL17sSbxjJqqowIhAIz5dIpiBSSZymRxO0LOcZwJE22jjP1NOAPLcLjZfjjz>



Though I'd add that there may still be situations where providing a lang

attribute is useful to give proper hints to assistive technologies to

switch to different speech/language (e.g. if you have the main content

in English, but then have a person's name written in simplified Chinese

or Japanese or other non-roman alphabets).



P

--

Patrick H. Lauke



https://www.splintered.co.uk/<https://shared.outlook.inky.com/link?domain=www.splintered.co.uk&t=h.eJxdjcsOgyAQRX_FsG7AERjFlb9iythWqRIesU3Tfy9se7fn5NwPy8GxsWH3lHwchTjPk0fvHnuiQJZfD543wS4N26q1UzrCbUnQSjRaK7H6aSVPLr6L-hS4EPXdjIqssmpQUuqWejAdouxAGwGoBwNlAwesWarZ8pRf0_9txbbgPTv3_QFO-DKu.MEYCIQCavl07i7wSqgElia48cq-jJYiRbfJMZ18Mupfbo2Nw-AIhAPWxM1ePQ1CEHPweIKFKUAWv1V4I7PSl-QAqTRPb-5AN> | https://github.com/patrickhlauke<https://shared.outlook.inky.com/link?domain=github.com&t=h.eJwdjNsOgyAQRH-l4bkREVjFJ3_FynqDKsEladP03wudt8mZOR-Womf9ja1E4eo5XzZa06OazicPI8Vtcqsfk0N2vzFXhgfSGZeZRC3BaK34HoYdA_rr_X_BjNg2Iyi0yqpOSalrbIVpAGQjtOECdGdETlcJKFos2og2vYYr-O0gzCW7quQKthkfyfvvDzqfNCs.MEUCICWLh4Qvb4mvVIER9u4JM_CJZNo9gs-iCNgI8d8tGiZbAiEAxOUAv4iQBr96fWWleSs26dBA6C6ZOwwTYom4c71d2B4>

https://flickr.com/photos/redux/<https://shared.outlook.inky.com/link?domain=flickr.com&t=h.eJwdjUsOwyAQQ69Ssa4yIcAkZJWrVGHSfGhAfKRWVe9eiHeW7ecvy8Gy8cbWlHwcARa7zUdoZvcCv7rkIgQy-Q3sfmNHLZ6UXHguibcCtVISdj_t5MnGz7XChajvHijJSCMHKYRqqee6QxQdVxo4qkHzoqHhWLFUsdfLFL3dzkTFFFaTjxqbEp_Z2t8fEb4z3g.MEYCIQD9Pg_KBt51mSU5KUjNuox2mrvLwKcUmH-WfRkbP7lmbAIhAOZypgBtGeCrYrDq6OlrXwtMRJyw94PYjigRM-z4Jvc_> | https://www.deviantart.com/redux<https://shared.outlook.inky.com/link?domain=www.deviantart.com&t=h.eJwdjUEOgyAURK9iWDcgAl9x5VVM-bYqRYKgbZreveDsJvPy5ktSsKSvyDNGv_eMnedJDR7z6OIYIr1vLxbQpDe5VWQtoMO4hccUeS1AKyXZ4ocFPdr9c9EwIbbNCBKNNLKTQqgaW64bANFwpRkH1Wme01EORYtFe50Mu7ezi5hLdtG0ltnk2SVrf389nDQt.MEQCIHppVR29TNMryPwxzf8-hX-N7C9mDpwroy2CVOxW2eloAiA07H-ne-q1Qab1bGmZ5EgJFcl82Xniiwx4aZPbhjmWYg>

twitter: @patrick_h_lauke | skype: patrick_h_lauke

From: glen walker
Date: Wed, Jul 27 2022 1:14PM
Subject: Re: Lang attribute on names
← Previous message | No next message

Tangential topic. With regards to pronouncing names, that's a nice feature
on LinkedIn that you can record how you'd like your name to be announced
and attach it to your profile picture. The recording feature is only
available from the LinkedIn app, but once you record it, people can see it
on the website.


On Wed, Jul 27, 2022 at 11:47 AM jp Jamous < = EMAIL ADDRESS REMOVED = > wrote:

> In my humble opinion, I think it is a best practice rather than a
> requirement. That's why WCAG excludes people's names. Let me give you an
> example using my name.
> JP stands for Jean-Pierre, which is a French name
>
>