Page MenuHomePhabricator

Allow user-defined images as information icon on Imagemaps
Closed, DeclinedPublic

Description

At the moment the imagemap extension uses a hard coded information icon as link
to the image description page.

I propose to allow user-defined images as information icons too:

<imagemap>
Image:...
rect ...
desc bottom-right [[Image:icon.png|20px]]
</imagemap>

Aadvantages:

  1. Nicer contrast dependent on the image
  2. Projects with a non-latin script can use a character/sign in their script

(cyrillic, CJK, ...)


Version: unspecified
Severity: enhancement

Details

Reference
bz9772

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:38 PM
bzimport added a project: ImageMap.
bzimport set Reference to bz9772.
bzimport added a subscriber: Unknown Object (MLST).

For this kind of UI element I'd strongly prefer to keep it consistent. I don't
see much reason for per-use customization in this way, and the per-language
issues would not be very well served by this.

ayg wrote:

I expect languages that don't use question marks might prefer a different icon.
It seems best to consider allowing different icons as part of i18n for the
extension. Per-use, maybe not.

michaeldaly wrote:

There are two internationally used information symbols that are language
independent. The italic lower-case i on a blue background and the circle with a
question mark contained.

If there is a real need for alternative, language dependent versions, perhaps a
set of them should be distributed with the extension and a reference added to
the i18n file to convert from language to symbol - e.g.:
'en' => array(
'imagemap_icon' => 'desc-20.jpg', ...
'xx' => array(
'imagemap_icon' => 'xxdesc-20.jpg', ...

Something tells me the languages that would not recognize the "i" or ? symbols
as used in airports and such would be rare.

Assigned to extension developer

kaldari subscribed.

This bug is over 10 years old, so I think it's time we reach a decision on it...

I agree with brion that this should not be over-ridable at the imagemap instance level (as it would lead to a lack of consistency). If there are languages where the current icon should not be used, please identify those languages and what icon would be more recognizable for them (in a specific bug for that language). As mentioned by michaeldaly, it is unclear that such languages even exist. As far as contrast, the current icon has a grey border around it, so it should be viewable even on a blue image. If that doesn't work, we should improve the existing icon.