José Abílio Oliveira Matos <[EMAIL PROTECTED]> schrieb am 19.10.04 13:32:21: > > On Tue, Oct 19, 2004 at 01:12:47PM +0200, Chris Karakas wrote: > > > > - Somebody in the DocBook committee decided that underscore is "out". > > First I understand your point, second the problem is precisely the > opposite that you refering to. >
Well...that's precisely what happened to me, believe it or not. My documents worked with underscores in the labels, then I upgraded DocBook, openjade and the rest - and suddenly they did not work. Sorry, but in this case I change the SGML declaration, not the labels. Cool URIs don't change. Cool labels don't change either: http://www.karakas-online.de/mySGML/cool-labels-dont-change.html > > > > And why all this? Because LyX thinks it must correct my labels > > and impose his view of correctness on my names. > > I'm sorry this is non negotiable. LyX should work out of box. > Then make LyX call an external parser and validate through it. But leave the labels intact and the decision to the user. LyX should not change the user's labels, this is not LyX' responsibility! > What we can do is allow the users to specify what characters are allowed > in CNAMES. This is easy we garantee that those characters will not be > messed. Is this acceptable for you? > > In the layout file: > ------------------------ > # Modified layout file > > Input docbook.layout > ClassOptions > Other "CNAME=.-·" > End > > ------------------------ > You can replace the last line by: > Other "CNAME=.-·_" > I am not sure. I am against automatic label changes, even for a "good purpose". If the user types a label and sees a different filename in the "rendered" document, he will go crazy - at least I would do... It violates the principle "you asked for it, you got it". If my SGML Declaration is such that makes my documents non-sharable with others - so be it. It iy my responsibility as a user and owner of my documents. It is not LyX to blame for this. If you want LyX to "work out of the box", you should pursue the idea of "validating against the DTD while editing", not "inserting new characters and replacing old ones in the user's labels in the hope that these will pass the DTD test later". You can't know what configuration the user has. -- Regards Chris Karakas http://www.karakas-online.de