Updated: 2002-06-03; 10:00:48 AM.
Michael Zajac’s Radio Weblog
        

2002-05-14 TUE


By the way, in BBEdit it's difficult to save a CSS file in iso-8859-1 encoding, which includes four little characters in Windows Latin encoding. This is notable, because BBEdit does just about everything else well.

The winning CSS code for quotes is

q { quotes: '\201C' '\201D' '\2018' '\2019' }
  10:49:43 PM    

I took a hint from Mark Pilgrim's article about the Q tag, and tried it a site I'm designing. Man, what an ordeal!

I changed my html and css code about a thousand times while testing it in three browsers. I even cut and pasted the code directly from Mark's page, and his pages worked and mine didn't!

I finally figured some things out:

  • OmniWeb 4.1b6 supports the Q tag but not CSS 2, so it displays typewriter quotes and italicizes the enclosed text. No surprise so far.
  • MSIE/Mac 5.14 works right no matter how you encode the 'quotes' attribute. The quote characters can be surrounded by single straight quotes, double straight quotes, or none. They can be typed directly in using correct ISO-8859-1 code, using Windows Latin code, Latin- or decimal-entity encoded, or escaped-unicode encoded ('\201C' '\201D'). You just can't fool it!

    But it doesn't work at all unless your html body tag says lang="en". You can't put in "en-ca", and you can't leave the lang attribute out. It may not seem like a big deal, but think about how I figured this out.

    Yoinks! You can't fool it because it doesn't listen. It ignores your CSS quotes attributes. It seems to do the right thing in a block of text that has the lang="en" or lang="fr" attribute (haven't tested any others).

  • Mozilla 1.0rc1/Mac only seems to recognize the quotes attribute if the quotes are escaped unicode values or Windows Latin encoded. That's right! ISO doesn't work. Latin entities don't work.

Man!

By the way, you'll notice I'm not using the Q tag nor curly quotes on this site. This is just a place to leave behind keep random notes on the internet; I haven't taken the time to tart up the code, and [whining alert] Radio Userland Mac version's support for iso-8859-1 is broken, and getting I'm really tired of typing ’.

I'm really invested into Frontier and Radio because I love these programs, but it's the little things that make a guy start looking at Movable Type.  10:38:28 PM    


 
May 2002
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Apr   Jun


Click here to visit the Radio UserLand website.

Click to see the XML version of this web page.


© Copyright 2002 Michael Zajac.
Last update: 2002-06-03; 10:00:48 AM.