Hi,

Before knowing Leo, I've been using Zim <http://zim-wiki.org/>as a PIM and 
documentation tool, so I've my last year personal documentation in it's 
format....
I would like to make an importer for Leo, I think it's not a big deal, but 
I'm not yet very familiar with Leo's API for importers, creating nodes etc.
Zim have a rst export function so all my documentation is in this 
file.folder structure :

*My Zim Wiki*
> ----My_first_single_page.rst
> ----My_second_single_page.rst
> ----My_master_page_1.rst
> ----My_master_page_2.rst  
>
----*My_master_page_1* 

[...] 

----*My_master_page_2* 

--------A_sub_level_single_sub_page.rst

--------A_sub_level_head_page.rst

--------*A_sub_level_head_page* 

--------------A_sub_sub_level_single_sub_page.rst

--------------A_sub_sub_level_head_page.rst
>
--------------*a_sub_sub_level_head_page*
> -- And so on......
>

What I would like to obtain :

@rst My first single page
> @rst My second single page
> @rst My master page 1
> @rst *My master page 2*
> ---- *Intro*   -> content of My_master_page_1.rst

------------various sub nodes coming from content of My_master_page_1.rst 
> 's sub-sections
>
---- *A sub level single sub page node* -> content of 
> A_sub_level_single_sub_page.rst
> ----* A sub level head page node*
> ---------- *Intro* -> content of A_sub_sub_level_head_page.rst
> ---------- *A sub sub level single sub page* -> 
> A_sub_sub_level_single_sub_page.rst
> -------------------- blablabla
>

Could you give me some advices of how to proceed ?
Do I have to write a simple script, a plugin, a basescanner importer ?
Do I have to start from scratch or can I use existing tools 
(basescanner.py, leo_rst.py, active_path.py...) ?
Will you come out with a 2 lines code that make the trick ;) ?

Thanks for your help !

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to