Andreas Vox <[EMAIL PROTECTED]> schrieb am 20.10.04 19:25:22:
> 
> 
> Oh BTW, Chris, if you read this: 
> what happens if the user activates '&' for names? ;-)
> 
> 

:-)

The user will get the & character in a label and the SGML parser will 
complain that some "entity XYZ not defined", I guess.
But you know my stand on this: the user used "&" in a label, the user
has to draw all consequences of his action. The parser will
complain, the user will have a look into the exported SGML file,
the user will recognize his mistake and will correct it.

The user asked for a "&" in a label, the user got it.

And not:

The user asked for "this", but he got "that".

We now have

The user asked for "this", but he got "that" with a warning.

which I have agreed to as a compromise.

BTW, I had such problems with "<" and ">" in URL texts.
The parser would complain "entity XYZ not defined", I would
check the SGML file and say to myself "but of course!", then
go to the URL text and enter "& lt ;" instead of "<" - and 
everything would be fine.

For example, in

http://www.karakas-online.de/mySGML/openjade-errors.html

(which is a document I created with LyX and its SGML export) 
I have a link with the URL text

Definitive Guide to DocBook on the < entry > element

Now, the way you want to do it, mangling labels and texts, 
how are you going to know that a "&" is a real "&" and
not part of an "entity delimiter", as in "& lt ;"? You will end
up trying to emulate an SGML parser, which is really not
LyX' job.

Note: I have inserted blanks in my strings, so that my webmail 
does not interprete them as real entities and filters them out.
But I am sure you understand what I meant. ;-)


-- 
Regards

Chris Karakas
http://www.karakas-online.de

Reply via email to