[-- Attachment #1: Type: text/plain, Size: 736 bytes --] Hi all, I have just published my org-mode parser for the node-js javascript based server: http://gioorgi.com/org-mode-parser/ It is a Javascript parser for the Emacs Org-mode file format. I use org-mode as a database for some programs (like games) where I need to mix meta information to a bunch of long textual data. I wrote it because I was unable to find an implementation for my needs. I like too much org-mode to let nodejs without a parser, and as expected the simple org-mode format was easy to parse. I started from the Charles Cave's OrgNode python parser, but I need to modify it a lot because of JavaScript different nature. Please feel free to give me your feedback --- Gio's Blog http://gioorgi.com [-- Attachment #2: Type: text/html, Size: 1045 bytes --]
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --] This.is.simply.awesome! I was procrastinating on this as well. There's one for ruby as well which I've been playing with, this could give me some inspiration to contribute back. Keep up the great work, - Marcelo. On Tue, Oct 4, 2011 at 4:34 PM, Giovanni Giorgi <jj@gioorgi.com> wrote: > Hi all, > I have just published my org-mode parser for the node-js javascript based > server: > > http://gioorgi.com/org-mode-parser/ > > It is a Javascript parser for the Emacs Org-mode file format. > > I use org-mode as a database for some programs (like games) where I need to > mix meta information to a bunch of long textual data. > > I wrote it because I was unable to find an implementation for my needs. > > I like too much org-mode to let nodejs without a parser, and as expected > the simple org-mode format was easy to parse. > I started from the Charles Cave's OrgNode python parser, but I need to > modify it a lot because of JavaScript different nature. > > Please feel free to give me your feedback > > --- > Gio's Blog http://gioorgi.com > > [-- Attachment #2: Type: text/html, Size: 1526 bytes --]
[-- Attachment #1: Type: text/plain, Size: 1356 bytes --] Hi Gio, Perhaps it is my ignorance of how this all works, but do you have a small example of how/why one would use this? As is obvious from my question, I'm not familiar with nodejs. Chris On Oct 4, 2011, at 6:43 PM, Marcelo de Moraes Serpa wrote: > This.is.simply.awesome! > > I was procrastinating on this as well. There's one for ruby as well which I've been playing with, this could give me some inspiration to contribute back. > > Keep up the great work, > > - Marcelo. > > On Tue, Oct 4, 2011 at 4:34 PM, Giovanni Giorgi <jj@gioorgi.com> wrote: > Hi all, > I have just published my org-mode parser for the node-js javascript based server: > > http://gioorgi.com/org-mode-parser/ > > It is a Javascript parser for the Emacs Org-mode file format. > > I use org-mode as a database for some programs (like games) where I need to mix meta information to a bunch of long textual data. > > I wrote it because I was unable to find an implementation for my needs. > > I like too much org-mode to let nodejs without a parser, and as expected the simple org-mode format was easy to parse. > I started from the Charles Cave's OrgNode python parser, but I need to modify it a lot because of JavaScript different nature. > > Please feel free to give me your feedback > > --- > Gio's Blog http://gioorgi.com > [-- Attachment #2: Type: text/html, Size: 2044 bytes --]
[-- Attachment #1: Type: text/plain, Size: 2299 bytes --] Hi, you can find a simple example here https://github.com/daitangio/org-mode-parser [4] with the source code too. Anyway, the simpler way is to install the package (via npm) and use the makelist(...) function to read and parse in an asyncronous way the org-nodes: var orgParser=require('org-mode-parser'); orgParser.makelist("README.org", function (nodelist){ // Here nodelist is a list of Orgnode objects (ref:putyourcode) console.dir(nodelist); }); I have just pushed the revision 0.0.2. Take a look here for unit testing example https://github.com/daitangio/org-mode-parser/blob/master/test/parserTest.js [5] On Wed, 5 Oct 2011 08:21:09 -0700, Chris Malone wrote: > Hi Gio, > Perhaps it is my ignorance of how this all works, but do you have a small example of how/why one would use this? As is obvious from my question, I'm not familiar with nodejs. > Chris > > On Oct 4, 2011, at 6:43 PM, Marcelo de Moraes Serpa wrote: > >> This.is.simply.awesome! >> >> I was procrastinating on this as well. There's one for ruby as well which I've been playing with, this could give me some inspiration to contribute back. >> >> Keep up the great work, >> >> - Marcelo. >> >> On Tue, Oct 4, 2011 at 4:34 PM, Giovanni Giorgi wrote: >> >>> Hi all, >>> I have just published my org-mode parser for the node-js javascript based server: >>> >>> http://gioorgi.com/org-mode-parser/ [1] >>> >>> It is a Javascript parser for the Emacs Org-mode file format. >>> >>> I use org-mode as a database for some programs (like games) where I need to mix meta information to a bunch of long textual data. >>> >>> I wrote it because I was unable to find an implementation for my needs. >>> >>> I like too much org-mode to let nodejs without a parser, and as expected the simple org-mode format was easy to parse. >>> I started from the Charles Cave's OrgNode python parser, but I need to modify it a lot because of JavaScript different nature. >>> >>> Please feel free to give me your feedback >>> >>> --- >>> Gio's Blog http://gioorgi.com [2] Links: ------ [1] http://gioorgi.com/org-mode-parser/ [2] http://gioorgi.com/ [3] mailto:jj@gioorgi.com [4] https://github.com/daitangio/org-mode-parser [5] https://github.com/daitangio/org-mode-parser/blob/master/test/parserTest.js [-- Attachment #2: Type: text/html, Size: 3217 bytes --]
This is great. We should start a page on Worg with links to external tools for manipulating Org-mode files. Such a page could point to this implementation as well as the python, ruby org libraries and maybe even the Vim clone of Org-mode. Thanks for sharing! -- Eric Giovanni Giorgi <jj@gioorgi.com> writes: > Hi all, > I have just published my org-mode parser for the node-js javascript based server: > > http://gioorgi.com/org-mode-parser/ > > It is a Javascript parser for the Emacs Org-mode file format. > > I use org-mode as a database for some programs (like games) where I > need to mix meta information to a bunch of long textual data. > > I wrote it because I was unable to find an implementation for my needs. > > I like too much org-mode to let nodejs without a parser, and as > expected the simple org-mode format was easy to parse. > I started from the Charles Cave's OrgNode python parser, but I need to > modify it a lot because of JavaScript different nature. > > Please feel free to give me your feedback > > --- > Gio's Blog http://gioorgi.com -- Eric Schulte http://cs.unm.edu/~eschulte/
Hi Eric, Eric Schulte <schulte.eric@gmail.com> writes: > We should start a page on Worg with links to external tools for > manipulating Org-mode files. Such a page could point to this > implementation as well as the python, ruby org libraries and maybe even > the Vim clone of Org-mode. There is such a page already: http://orgmode.org/worg/org-tools/index.html I've just updated it -- please check in 30 minutes. Also, VimOrganizer deserves a page for itself... don't know if this is still actively developed though. Best, -- Bastien
Hi Giovanni, Giovanni Giorgi <jj@gioorgi.com> writes: > I have just published my org-mode parser for the node-js javascript > based server: > > http://gioorgi.com/org-mode-parser/ Thanks! Could this somehow be plugged to Substance? Or could this be adapted to export Org files in the Data.Graph data format? http://substance.io/ http://substance.io/substance/substance-internals -- Bastien
Bastien <bzg@altern.org> writes: > Hi Giovanni, > > Giovanni Giorgi <jj@gioorgi.com> writes: > >> I have just published my org-mode parser for the node-js javascript >> based server: >> >> http://gioorgi.com/org-mode-parser/ > > Thanks! > > Could this somehow be plugged to Substance? Or could this be > adapted to export Org files in the Data.Graph data format? > > http://substance.io/ > http://substance.io/substance/substance-internals This is the first I've seen of substance.io, it looks very interesting. I wonder how similar the substance document data structure is to the new org-parse data structure, and if it would be difficult or rewarding to write a translator between the two. Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte/
Eric Schulte <eric.schulte@gmx.com> writes:
> This is the first I've seen of substance.io, it looks very interesting.
> I wonder how similar the substance document data structure is to the new
> org-parse data structure, and if it would be difficult or rewarding to
> write a translator between the two.
I wonder the same -- I guess we'll all have more insight when we try
writing new exporter with the new export engine. Just though it was
good to throw this reference early enough...
--
Bastien
Hi,
sorry for my late response.
I have little time right now, but I think org-mode could be integrated.
The current node.js org-mode parser is not designed to take care of the content of a paragraph (for instance it will not be able to detect numbered lists), and I fear this is its major weak point.
But for the rest, I have done some tests and the parser is quite robust.
Please grab the last version from npm, it has a good set of unit tests
On 12/dic/2011, at 00.21, Bastien wrote:
> Eric Schulte <eric.schulte@gmx.com> writes:
>
>> This is the first I've seen of substance.io, it looks very interesting.
>> I wonder how similar the substance document data structure is to the new
>> org-parse data structure, and if it would be difficult or rewarding to
>> write a translator between the two.
>
> I wonder the same -- I guess we'll all have more insight when we try
> writing new exporter with the new export engine. Just though it was
> good to throw this reference early enough...
>
> --
> Bastien