[sword-devel] OSIS Web tool - unicode

Don A. Elbourne Jr. sword-devel@crosswire.org
Mon, 27 Oct 2003 14:23:21 -0600


My suggestions is that we wrap any text needing a particular Unicode font
with a span and give that span a class attribute that matches the language
code. For example <span class="he"> for Hebrew. This will be more
semantically rich and forward compatible. We can then specify the Unicode
font in the CSS.


by grace alone,

Don A. Elbourne Jr.
http://elbourne.org

----- Original Message ----- 
From: "Don A. Elbourne Jr." <delbourne@cox.net>
To: <sword-devel@crosswire.org>
Sent: Wednesday, October 22, 2003 2:11 PM
Subject: Re: [sword-devel] OSIS Web tool - unicode


> Chris,
>
> I think you are right. That's what I was saying. I think we just need the
> UTF-8 meta tag in the page. I don't think the meta tag is absolutely
> necessary, but it is best practice afaik.
>
> by grace alone,
>
> Don A. Elbourne Jr.
> http://elbourne.org
>
>
>
> ----- Original Message ----- 
> From: "Chris Little" <chrislit@crosswire.org>
> To: <sword-devel@crosswire.org>
> Sent: Wednesday, October 22, 2003 12:47 PM
> Subject: Re: [sword-devel] OSIS Web tool
>
>
> >
> >
> > Joachim Ansorg wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > Hi,
> > >
> > >
> > >>I have not worked with Unicode in web pages much so I admit my
> ignorance.
> > >>Chris investigated this a while back and I thought he had added the
> > >>document encoding in the meta tag. But I don't see it now.
> > >
> > >
> > > Yes, that's fine. That is for the browser to see that the page is in
> uTF8.
> > > But if "foreign" chars like Hebrew appear in the page we have to make
> the text
> > > use a special unicode font which has all the required unicode
> characters. So
> > > I wrap the unicode text with a span and set the right font-family
there.
> > > Often unicode needs a larger font-size because unicode chars are hard
to
> see
> > > if it's hebrew or something similair.
> >
> > Don & Joachim,
> >
> > Is this really necessary?  (Have you seen text displayed incorrectly
> > using a browser?)
> >
> > Font selection is essentially the browser's job.  I'm not sure if that's
> > necessarily so, but both MSIE and Mozilla select fonts on the basis of
> > scripts used in a document.
> >
> > If we need to do something more complex, since we have ICU at our
> > disposal, we can tag strings of text as using specific scripts, then
> > specify fonts in the CSS on that basis.
> >
> > --Chris
> >
> >
> > _______________________________________________
> > sword-devel mailing list
> > sword-devel@crosswire.org
> > http://www.crosswire.org/mailman/listinfo/sword-devel
>
> _______________________________________________
> sword-devel mailing list
> sword-devel@crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel