[thelist] SQL SELECT and RegEx

Matt Warden mwarden at gmail.com
Thu Dec 13 10:51:59 CST 2007

On 12/13/07, Chris Dempsey <evolt at cubeit.co.uk> wrote:
> Purely because we adapted the Shopping Cart software to accept HTML markup
> in the product name field, originally it was plain text only.  Client
> required to be able to put part of some product names in italics due to them
> being Latin names.

I would add an attribute that indicated if the title was in a foreign
language. You would use this attribute to decide whether or not to add
CSS to change the presentation to italics.

<em> is an element that conveys emphasis. The user agent could just as
easily display it as bold. You should not be using this to change text
to italics. If you are stuck with using markup for presentation in
this case, I would suggest <i> not <em>.

Think of it this way: a screen reader will read your latin product
names more loudly/strongly than non-latin product names. This is
because you are conveying semantics you don't want to convey.

Matt Warden
Cincinnati, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list