Theiling Online    Sitemap    Conlang Mailing List HQ   

Re: TECH: dumb html question

From:Tristan McLeay <zsau@...>
Date:Monday, January 12, 2004, 12:25
On Mon, 12 Jan 2004, Benct Philip Jonsson wrote:

> At 07:53 12.1.2004, Roger Mills wrote: > >Attentive Reader will have noted that in my just-uploaded > >http://cinduworld.tripod.com/supplement.htm under the word "kikayoka" there > >is a botched IPA rendering "['kjok?]". That "?" should be a schwa (hex > >0259, dec. 601). Is "&#601;" the correct way to encode that? > > > >(The reason is that I cut/pasted text from Word into Wordpad.) > > > >Then, do I have to change the "charset=iso-8859-1" to something else? (utf-8 > >according to one website) And if I do that, do I have to change all the > >other "&ccedil;", "&aacute;" etc. to numerics?? (No big deal, but > >bothersome...) Does "&schwa;" exist? Please give an idiot-proof answer. > >Gracias, danke, terima kasih Roger. > > I would prefer &#0601 and charset="UTF-8". I know for a fact that that > works...
0601 looks octal to me. I tend to do as few digits as possible in base 10, but if I use base 16 for it (which I used to do usually, most renditions of Unicode characters are base 16) I'll include the leading 0 if needs be and make it &#x0259;.
> BTW is there a how-to for external style sheets out there? > In particular I'm not sure about the format of the stylesheet itself.
Basically: p { ... blah ... } for classes, you start with a . (so p.frog maches all paragraphs of class frog, .frog matches anything of class frog) for ids, you use # (so #frog matches whatever has id frog). More complicatedly, if you want to match all visited links in paragraphs following paragraphs in the #content div, you could use #content p + p a:visited { ... blah ... } (For XHTML 2 I would think the a:visited would have to change the a:visited to [href]:visited which is what my current CSS file does in some cases because I felt like seeing if it worked and never bothered changing it do something that everyone's favorite browser supported. (More generally, [foo] matches any tag with foo set in browseres other than IE, which once upon a time had better standards support than Netscape, I bumped into the funniest slashdot.org article from 1997 praising IE and condemning Netscape, but I can remember when that was true.)) You can also match languages with :lang(lang-code), or more generally :lang(), though I don't think that works in Mozilla presently for some reason, so if you want to make everything in Latin italicised, you could use :lang(la) { font-style: italic; } I'm pretty sure the :lang(x-af) I'm using on my CSS is fair game. It works at least, and the XHTML validates as Strict, which may or may not say anything. I'm not sure if that kind of thing is covered in any tute/howto, I learnt it from the standard. HTH. -- Tristan