On Tuesday, November 22, 2016 at 3:05:05 AM UTC-6, Edward K. Ream wrote:
> [Recent revs add] @button make-importer to scripts.leo.
Lest there be the slightest doubt that patterns are simpler than script
substitutions, here is the code that creates the patterns in @button
make-importer:
patterns = {
'cap_name': name.capitalize(),
'extensions': '[%s]' % ', '.join(["'%s'" % (z) for z in
extensions]),
'name': name.lower(),
'strict': 'True' if strict else 'False',
'state_ivar': state_ivar,
}
It took two iterations to get the 'extensions' pattern correct. About 1
minute.
EKR
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.