Jean-Marc Lasgouttes wrote:

> Georg, the layout2layout code does not work because the wanted syntax is
>   Provides amsmath
> instead of
>   Provides Amsmath 1
> 
> There are two problems:
> 
> - I did not keep the 0/1 value, because I do not think it is useful.

IMHO it is. Otherwise it is not possible to "undefine" such a feature that
comes from a .inc file (this is used in ijmpc.layout). If you really want
to get rid of this then we need to add an additional check for the '1', but
then the translated layout file may not be 100% compatible.

> - the feature should be put in lowecase. I could do it when reading,
>   but there may be cases where features should be case-dependent.
> 
> I did not manage to grok the python regex myself, but any help would
> be welcome.

The regex does not need to be modified (if the current keywords are case
insensitive, but I think they are).

Writing

match.group(1).lower()

instead of

match.group(1) should give you the lowercase version (or maybe
string.lower(match.group(1)), I don't know by heart if the former works).


Georg

Reply via email to