public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: »Q« <boxcars@gmx.net>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: Browsers not seeing symbol font
Date: Sun, 5 Apr 2009 21:12:08 -0500	[thread overview]
Message-ID: <20090405211208.1e4a1d92@bellgrove.remarqs.net> (raw)
In-Reply-To: 9acccfe50903252335y1af634fep13290bfd27715d1d@mail.gmail.com

On Wed, 25 Mar 2009 23:35:41 -0700
"Kevin O'Gorman" <kogorman@gmail.com> wrote:

> > After a bit of Googling, it seems the accepted solution is to use
> > HTML entities for those symbols and not try to use the raw
> > characters as you are attempting to do.
> >
> > http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
> >
> > Does that contain all of the symbols you need? If there are any
> > others, you should be able to use the unicode versions.  
> 
> Sigh.  My stuff is not for a mass audience.  I can expect them to
> install a font,
> and I'd really not like to be fooling with entities that much --
> composition is laborious.  It's really annoying to me to have a font
> on my own system that is inacessable through browser features that
> were apparently designed to allow just that.
> 
> And Unicode is a complete mystery to me.  I see stuff come in and
> display as it should, but as an author it's just something I've never
> used.  How do you compose such stuff on a standard US-English
> keyboard and system?
> 
> I'll do what I have to do, but only when I'm convinced it's the best
> alternative.

An easier alternative (IMO) would be to serve the pages with
charset="UTF-8" and compose them as Unicode pages.  This way you can
just use the raw UTF-8 characters without having to look up entity
names.  Example: <http://remarqs.net/misc/pi.htm>.  To do it that way,
you'll need to edit the pages with a UTF-8-capable editor and save
them with that encoding, natch.

The issue you were up against, trying to use a font specification to
change one character into another one, just won't work with html.  When
a browser encounters a character, it should first check to see if it
can use the specified font(s) to render it;  if it can't be rendered
using the specified font(s), the browser must look for a font that
contains a glyph for the character and use that font instead.

In the case where the the specified font is Symbol, there's no glyph
for a 'p' in that font, so the browser must use some other font
whenever it encounters a 'p'.  What it must *not* do is change a 'p' to
a 'π'.

IE has always been broken in this way, and the old Netscape browsers
were as well.  At the start of the Mozilla project, they did away with
this bug.  IIRC, before Firefox 3, there was a hackaround to
re-introduce the bug by editing some Firefox files, but it's no
longer possible to trick Firefox into substituting one character for
another.  (I don't believe WebKit/KHTML browsers or Opera can be tricked
into it either, but I'm not sure.)

-- 
»Q«
     Kleeneness is next to Gödelness.




  parent reply	other threads:[~2009-04-06  2:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-25 14:02 [gentoo-user] Browsers not seeing symbol font Kevin O'Gorman
2009-03-25 14:15 ` Albert Hopkins
2009-03-25 16:33   ` Kevin O'Gorman
2009-03-25 14:50 ` Paul Hartman
2009-03-25 16:38   ` Kevin O'Gorman
2009-03-25 18:33     ` Paul Hartman
2009-03-26  6:35       ` Kevin O'Gorman
2009-03-26 15:39         ` Paul Hartman
2009-04-06  2:12         ` »Q« [this message]
2009-03-25 18:41     ` Mike Kazantsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090405211208.1e4a1d92@bellgrove.remarqs.net \
    --to=boxcars@gmx.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox