Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: ORG to POD translator

by educated_foo (Vicar)
on Apr 07, 2011 at 17:37 UTC ( #898133=note: print w/replies, xml ) Need Help??


in reply to ORG to POD translator

Cool!

OT: Just as only perl can parse Perl, only org-mode can parse Org -- and Org is always changing. For simple documents, a simple script like this is great; for true Org translation, the way to go would be to export HTML or DocBook and work from there. IMHO, Org::Parser is doing it wrong: it's no longer simple, yet it will never truly parse Org.

Replies are listed 'Best First'.
Re^2: ORG to POD translator
by LanX (Chancellor) on Apr 12, 2011 at 13:08 UTC
    >only org-mode can parse Org -- and Org is always changing.

    you're so right! I was pondering to migrate the regexes from org.el and org-exp.el when I noticed that emphasizes are allowed to spread 2 lines (actually the number of lines is customizable in "Org Emphasis Regexp Components")

    /abc def/

    This wasn't clear for me since the fontlock in emacs doesn't always get it right.

    But it's exported to

    <i>abc def</i>

    So a clean parser would at least need to read the customizations from emacs!

    Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://898133]
help
Chatterbox?
zentara ...oO speaking of unicorns and Krishna :-)
[zentara]: Jesus would never bite Ganeesh ! Jesus didn't fight or eat meat
[choroba]: Didn't fight?
[erix]: ganesh in musht?
[LanX]: as a monotheist he would fight other problems
LanX succesfully trolled the CB into religion and leaves now! :)
[erix]: looking for his navel
[choroba]: Cleansing of the Temple
[zentara]: Unicorns are not conceived, they are created. Unicorns don't want another life. :-)
[erix]: you go check your data LanX :P

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-03-30 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (361 votes). Check out past polls.