Re: Goals of HTML (and XML)? (was Re: Foreign Words and Phrases..) (fwd)

Peter Flynn (pflynn@imbolc.ucc.ie)
26 Sep 1997 14:53:43 +0100


Date: 26 Sep 1997 14:53:43 +0100
From: Peter Flynn <pflynn@imbolc.ucc.ie>
In-reply-to: <Pine.OSF.3.96.970926073810.1043A-100000@torvi.hut.fi> (message
To: www-html@w3.org
Message-id: <199709261353.OAA11788@imbolc.ucc.ie>
Subject: Re: Goals of HTML (and XML)? (was Re: Foreign Words and Phrases..)  (fwd)

   (Nit-picking: how would you handle English text within some German text
   in a document with English as default language.)

If you use regular SGML software the problem simply goes away.

	<P>He looked up and said: <Q><FOREIGN LANG=DE>Was du denn dagegen?
	Das mit deinem <FOREIGN LANG=EN>stiff upper lip</> bring mich
	zum Kotzen</></>.</P>

If I convert this to TeX using OMLE, I can say

	element FOREIGN
		output "{\it %c}" when parent isnt FOREIGN
		output "{\rm %c}" when parent is FOREIGN
	; you could even handle Fraktur type if you wanted:
	;	output "{\fr %c}" when attribute LANG is equal "DE"

(This isn't the only way, by any means. Synex, CSS, DSSSL, and XSL can
all handle styling by descent or ancestry).

Getting it to work right in all the common HTML browsers probably
involves a lot more work.

///Peter