On Friday, August 8, 2025 at 7:50:59 AM UTC-5 Edward K. Ream wrote:

On Fri, Aug 8, 2025 at 7:45 AM Thomas Passin wrote:

These two [lines] could be specified in an @data node in the settings.  
Then new importers could be added without revising any of Leo's files.


I doubt it. Anyway, there are better ways to generalize the code.


Hehe. Once again it's easier to do something than to try not to think about 
it.

A straightforward addition to *LM.createImporterData* creates the new 
*g.app.importerModulesDict*. Keys are language names, as in the @language 
directive. These are the same keys that *ic.parse_body uses*.

But the values of the new dict are *modules,* not importer classes, so more 
work will be required. I'm on it.

Edward

-- 
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 view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/e3d54911-2e53-456c-94d3-8e34d2ab5a73n%40googlegroups.com.

Reply via email to