Ewan Davies wrote:
> Pavel:
> I've been getting to know python and have had a look at the LFUNs.lxy
> generation. My script parses the comments in LyXAction.cpp and outputs
> a .lyx file. I'm still ironing out some problems though. I'll add it
> to the trac entry when it's done.

the output is already nice! a few glitches:

1. '\n' newlines are not correctly detected - compare LFUN_PARAGRAPH_PARAMS of
   the current trunk and your output.

2. links to various LFUNS are denoted with #LFUN_xxx (eg see description
   of LFUN_CHAR_LEFT_SELECT). '#' should be deleted (or even crossreferenced - 
   but this is quite advanced thing, not desperatelly needed - only if you are
   bored enough ;)

3. as you already noted there is a problem with long parameter lines containing
  '|'. i see several ways how to fix them - either to write some parsing 
function
  which recognized line with the list of '|' and break it with some whitespace
  after 80 chars or so. second possibility would be to put this whitespace 
directly
  into lyxaction.cpp, although i dont like this solution much...

4. send us please gpl statement eg.
   http://marc.info/?l=lyx-devel&m=118765575314017


as for original questions - our bugzilla is good source of things to do, but
usually the best motivation is to fix the bugs which annoy you...

thanks for your effort and welcome here :)
pavel

Reply via email to