Re: Oddball formats

2018-08-21 Thread Edward K. Ream
On Fri, Aug 10, 2018 at 11:31 AM Terry Brown  wrote:

There's a mechanism for defining @auto-oddball @ readers and
> writers.  It *should* be in the docs.  Can't find it there, but see
>
> leo/plugins/importers
> /howto.txt
>
> I assume that code's still working.


Yes, the code is about right, perhaps just a little out-of-date. The most
important part of
/howto.txt is the part where it asks you to ask for help if needed ;-)

The importer;; abbreviation creates an outline (set of nodes) for a new
importer.  The abbreviation asks you to fill in various <|xxx|> fields with
the name of the language, etc.

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


Re: Oddball formats

2018-08-10 Thread Terry Brown
On Fri, 10 Aug 2018 08:49:25 -0700 (PDT)
Rob  wrote:

> Perhaps this has been covered before, but I haven't been able to find 
> relevant information in the docs or here on the forum (maybe not
> asking the right questions). Anyway, I sometimes will create and edit
> plain text data files using a defined syntax for data and delimiters.
> These formats are pretty obscure and likely of not enough interest
> for the Leo developers to create custom importers or syntax coloring
> files. Is there a relatively simple way to define the structures in
> @settings or a by-file directive? A few notable examples (there are
> others):
> 
> GIFT  (a plain text format
> to create quiz questions to import into Moodle, an LMS)
> ChordPro 
>  
> (a plain text music/lyric/tabs format)
> M3U  (music playlist)
> Currently, I just use the @language plain directive, which sort of
> works, but isn't ideal. Ideas?
> 
> Rob...

There's a mechanism for defining @auto-oddball @ readers and
writers.  It *should* be in the docs.  Can't find it there, but see

leo/plugins/importers/howto.txt

I assume that code's still working.  I use a script for importing
reveal.js flavored markdown, where blank lines indicate outline level,
but it just runs on an @edit node and builds a @clean node from its
content.

Cheers -Terry

-- 
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Oddball formats

2018-08-10 Thread Rob
Perhaps this has been covered before, but I haven't been able to find 
relevant information in the docs or here on the forum (maybe not asking the 
right questions). Anyway, I sometimes will create and edit plain text data 
files using a defined syntax for data and delimiters. These formats are 
pretty obscure and likely of not enough interest for the Leo developers to 
create custom importers or syntax coloring files. Is there a relatively 
simple way to define the structures in @settings or a by-file directive? A 
few notable examples (there are others):

GIFT  (a plain text format to 
create quiz questions to import into Moodle, an LMS)
ChordPro 
 
(a plain text music/lyric/tabs format)
M3U  (music playlist)
Currently, I just use the @language plain directive, which sort of works, 
but isn't ideal. Ideas?

Rob...

-- 
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.