On Tue, Oct 19, 2004 at 04:46:45PM +0000, Andreas Vox wrote:
> 
> Something like this Document settings->SGML: 
> 
>    enforce valid SGML/XML ids (yes,no): yes
>    if yes, additional allowed chars:    .:_
> 
> what you have in mind?
> Second input field would be disabled if answer to first one is "no",
> then all chars are allowed (by LyX).

  The idea is getting better.
  But I don't like the idea of a document dialog. This is an option for docbook,
not for the document. Read bellow what I propose.

> The users are responsible to keep their SGML declaration and the LyX-allowed
> chars in sync. 
> 
> Default would be "enforce" and no allowed chars except ".-".

  I agree.

> Allowed chars are also automatically allowed as start chars (no prepended 'x').
> 
> If you change your .layout file to include "CNAME=.:_" that would be
> the default for the second input field.

  I propose thus that all the configuration goes in the textclass, where it
belongs in my humble opinion:

1)
  I propose that we leave the default option as CNAME=".-".
  
2)
  If the users chooses other characters we respect them. An example from
some xml.dcl is CNAME=".-·", we don't mangle those characters. 

3)
  If the users chooses:
  CNAME="" # empty string

  lyx doesn't mangle the ids. Chris would have to add this to your customization
for it to work as it does now.

> Ok?

  Do we have a deal, now? ;-)

> /Andreas

-- 
José Abílio Matos
LyX and docbook a perfect match. :-)

Reply via email to