Closed (duplicate)
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Sep 2012 at 17:16 UTC
Updated:
9 Nov 2012 at 04:27 UTC
Comments
Comment #1
mgiffordQuite hopeful that we can see some means to help the process of creating meaningful alt text & titles, but have some concerns as originally stated here - #1553094-91: Alt and Title support for Images
Mostly it boils down to how to make them meaningful as per:
http://dev.w3.org/html5/alt-techniques/#recommendations
Comment #2
mgiffordComment #3
tsvenson commentedI understand your concerns. However, these fields are empty and unless someone types something into them, nothing will be outputted if these tokens would prepopulate the display formatter, just the standard required 'alt="" title=""'.
Comment #4
mgiffordI'd much prefer an empty alt text to one that just clutters up things for a screen reader. Some good examples of bat alt tags here:
http://diveintoaccessibility.info/day_23_providing_text_equivalents_for_...
It's too easy for auto generated alt text to produce something that is less than meaningful.
Good alt text requires some thought I think:
http://webaim.org/techniques/images/alt_text
But let's talk about what tokens could be used here. Title is an obvious one. Maybe metatags.
Not sure if there's an option for more than one image. Could be a way to put in some helper text to try to make it easier and also useful based on to tokens.
Comment #5
tsvenson commentedIt would probably be a good idea to include a link to the w3c page that explains what the alt/title attributes is for on the config page.
The tokens I propose should be used to prepopulate the display formatter will not have any autogenerated text. They are simply copying the values entered in the two input fields for the image added by #1553094: Alt and Title support for Images.
Then we need t put the responsibility on the site developers/owners to give those that will be able to edit those field the right guidelines about what to enter in them.
For me the patch actually adds an un-completed feature as it is not doing anything unless the sitebuilder manually adds those tokens to where they should be from the beginning.
Comment #6
mgiffordI have to acknowledge not having time to dig into this patch and verify how it is actually working. Maybe I've misunderstood things.
Alt is for accessibility. Title is usually only there to have a tooltip on mouseover so that sighted users can get additional context.
There are problems on Assistive Technology (AT) devices interpret text. Some can do both, but most ignore the title attribute as I understand it. At worse the AT will read both and they will be identical.
Took a quick look for a good resource but didn't find one easily.
Comment #7
RobW commented@mgifford, from what I understand/ has been explained to me, this issue is about setting the alt field as the default alt text in the formatter. The tokens are the bridge between any token provider/ field to the formatter. So if the default formatter token is the file entity "alt field", a user could add whatever they like there when editing the file entity, or leave it blank.
Comment #8
mgiffordIs there a distro or maybe just a sandbox site up there to look at?
There's just a lot of set up work that would be necessary to wrap my head around what's being discussed here.
Maybe it will be more clear after the other patch is brought into the module.
Comment #9
berdirClosing this, this was trivial and I added it to the original patch when I did a re-roll.
@mgifford: Accessibility is not a problem here. This is *not* about prepopulating actual titles/alt values. It's about prepopulating the alt/title *configuration* fields with a token that allows to use the user-provided alt and title values (which are standard textfields) from the stored image entity. So users have 100% control over alt/title fields and if there is no user-provided value, no title is displayed.
Comment #10
tsvenson commented@Berdir: Thanks so much, again you rise up and become my Drupal hero :)
Comment #11
mgiffordThanks for the clarification @Berdir.