emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Help with migrating blog to org-mode format
@ 2011-01-09 22:53 Myriam Abramson
  2011-01-10 14:03 ` Ian Barton
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Myriam Abramson @ 2011-01-09 22:53 UTC (permalink / raw)
  To: emacs-orgmode


Hello,

After Google dropped the ftp option to blogger, I dumped my blog to an
xml file with the hope of ressucitate it to a more friendly
environment for me. I've found this environment with a combination of
org-mode, blorg, and ... dropbox. Dropbox just provides me a link to
publish my blog wherever I want to. Blorg isn't being maintained I
believe and it has lots of error but it works in converting org-mode
to blog formatting for now and I can work on it later. 

Each topic in a blog is a TODO task and the date is inserted when the
task is DONE. I'm planning to read from my xml blog and write topics
simply as "* DONE mytopic ... " but how can I get the publication date
in org to get "CLOSED: <date>" on the next line? 

The xml of my blog is something like that: 

<title type='text'> my title</title>
<content type='html'> my content</content>
<published>2003-10-22T18:27:00.000-04:00</published>

TIA,

myriam




From the cat's little instruction handbook:

Treat yourself to a nap in the sock drawer once in awhile.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help with migrating blog to org-mode format
  2011-01-09 22:53 Help with migrating blog to org-mode format Myriam Abramson
@ 2011-01-10 14:03 ` Ian Barton
  2011-01-10 16:33 ` Erik Iverson
  2011-01-11 18:32 ` Matt Lundin
  2 siblings, 0 replies; 6+ messages in thread
From: Ian Barton @ 2011-01-10 14:03 UTC (permalink / raw)
  To: emacs-orgmode

On 09/01/11 22:53, Myriam Abramson wrote:
>
> Hello,
>
> After Google dropped the ftp option to blogger, I dumped my blog to an
> xml file with the hope of ressucitate it to a more friendly
> environment for me. I've found this environment with a combination of
> org-mode, blorg, and ... dropbox. Dropbox just provides me a link to
> publish my blog wherever I want to. Blorg isn't being maintained I
> believe and it has lots of error but it works in converting org-mode
> to blog formatting for now and I can work on it later.
>
> Each topic in a blog is a TODO task and the date is inserted when the
> task is DONE. I'm planning to read from my xml blog and write topics
> simply as "* DONE mytopic ... " but how can I get the publication date
> in org to get "CLOSED:<date>" on the next line?
>
> The xml of my blog is something like that:
>
> <title type='text'>  my title</title>
> <content type='html'>  my content</content>
> <published>2003-10-22T18:27:00.000-04:00</published>
>
> TIA,
>
> myriam

I use org in combination with Jekyll and jekyll.el. The process goes 
like this:

Create draft post using jekyll.el. This goes in the _drafts directory 
and isn't published. When it's finished use jekyll.el which modified the 
filename and moves it to the _posts directory.

Export my org files to html.

Run jekyll to create the web site and rsync it to my server.

My tutorial is on worg: 
http://orgmode.org/worg/org-tutorials/org-jekyll.html

There are other ways to use org with jekyll, but this should give you 
some ideas.

Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help with migrating blog to org-mode format
  2011-01-09 22:53 Help with migrating blog to org-mode format Myriam Abramson
  2011-01-10 14:03 ` Ian Barton
@ 2011-01-10 16:33 ` Erik Iverson
  2011-01-11 18:32 ` Matt Lundin
  2 siblings, 0 replies; 6+ messages in thread
From: Erik Iverson @ 2011-01-10 16:33 UTC (permalink / raw)
  To: Myriam Abramson; +Cc: emacs-orgmode

Myriam,

I write my content in Org-mode, and use weblogger.el to post my content. 
Just search for weblogger on Emacs wiki, and perhaps this will help a 
bit too:

http://www.randomsample.de/dru5/node/77

This is about Drupal, but the ideas should work for posting to anything 
that supports xmlrpc.

--Erik

Myriam Abramson wrote:
> Hello,
> 
> After Google dropped the ftp option to blogger, I dumped my blog to an
> xml file with the hope of ressucitate it to a more friendly
> environment for me. I've found this environment with a combination of
> org-mode, blorg, and ... dropbox. Dropbox just provides me a link to
> publish my blog wherever I want to. Blorg isn't being maintained I
> believe and it has lots of error but it works in converting org-mode
> to blog formatting for now and I can work on it later. 
> 
> Each topic in a blog is a TODO task and the date is inserted when the
> task is DONE. I'm planning to read from my xml blog and write topics
> simply as "* DONE mytopic ... " but how can I get the publication date
> in org to get "CLOSED: <date>" on the next line? 
> 
> The xml of my blog is something like that: 
> 
> <title type='text'> my title</title>
> <content type='html'> my content</content>
> <published>2003-10-22T18:27:00.000-04:00</published>
> 
> TIA,
> 
> myriam
> 
> 
> 
> 
> From the cat's little instruction handbook:
> 
> Treat yourself to a nap in the sock drawer once in awhile.
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help with migrating blog to org-mode format
  2011-01-09 22:53 Help with migrating blog to org-mode format Myriam Abramson
  2011-01-10 14:03 ` Ian Barton
  2011-01-10 16:33 ` Erik Iverson
@ 2011-01-11 18:32 ` Matt Lundin
  2011-01-12  2:35   ` Myriam Abramson
  2 siblings, 1 reply; 6+ messages in thread
From: Matt Lundin @ 2011-01-11 18:32 UTC (permalink / raw)
  To: Myriam Abramson; +Cc: emacs-orgmode

Myriam Abramson <mabramson@gmail.com> writes:

> Each topic in a blog is a TODO task and the date is inserted when the
> task is DONE. I'm planning to read from my xml blog and write topics
> simply as "* DONE mytopic ... " but how can I get the publication date
> in org to get "CLOSED: <date>" on the next line? 
>
> The xml of my blog is something like that: 
>
> <title type='text'> my title</title>
> <content type='html'> my content</content>
> <published>2003-10-22T18:27:00.000-04:00</published>
>

After you've parsed the xml and retrieved the date string, you can
convert to an org CLOSED timestamp with something like this:

(format-time-string "CLOSED: [%Y-%m-%d %H:%M]" (date-to-time "2003-10-22T18:27:00.000-04:00"))

...which returns...

CLOSED: [2003-10-22 14:27]

(The time zone parsing may need some adjustment.)

HTH,
Matt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help with migrating blog to org-mode format
  2011-01-11 18:32 ` Matt Lundin
@ 2011-01-12  2:35   ` Myriam Abramson
  2011-01-12  4:00     ` Matt Lundin
  0 siblings, 1 reply; 6+ messages in thread
From: Myriam Abramson @ 2011-01-12  2:35 UTC (permalink / raw)
  To: emacs-orgmode


Thanks! that's what I was looking for. 

                                   myriam

Matt Lundin <mdl@imapmail.org> writes:

> Myriam Abramson <mabramson@gmail.com> writes:
>
>> Each topic in a blog is a TODO task and the date is inserted when the
>> task is DONE. I'm planning to read from my xml blog and write topics
>> simply as "* DONE mytopic ... " but how can I get the publication date
>> in org to get "CLOSED: <date>" on the next line? 
>>
>> The xml of my blog is something like that: 
>>
>> <title type='text'> my title</title>
>> <content type='html'> my content</content>
>> <published>2003-10-22T18:27:00.000-04:00</published>
>>
>
> After you've parsed the xml and retrieved the date string, you can
> convert to an org CLOSED timestamp with something like this:
>
> (format-time-string "CLOSED: [%Y-%m-%d %H:%M]" (date-to-time "2003-10-22T18:27:00.000-04:00"))
>
> ...which returns...
>
> CLOSED: [2003-10-22 14:27]
>
> (The time zone parsing may need some adjustment.)
>
> HTH,
> Matt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help with migrating blog to org-mode format
  2011-01-12  2:35   ` Myriam Abramson
@ 2011-01-12  4:00     ` Matt Lundin
  0 siblings, 0 replies; 6+ messages in thread
From: Matt Lundin @ 2011-01-12  4:00 UTC (permalink / raw)
  To: Myriam Abramson; +Cc: emacs-orgmode

Myriam Abramson <mabramson@gmail.com> writes:

> Thanks! that's what I was looking for. 
>
>                                    myriam
>
> Matt Lundin <mdl@imapmail.org> writes:
>>
>> (format-time-string "CLOSED: [%Y-%m-%d %H:%M]" (date-to-time "2003-10-22T18:27:00.000-04:00"))
>>
>> ...which returns...
>>
>> CLOSED: [2003-10-22 14:27]
>>
>> (The time zone parsing may need some adjustment.)

Oops. I forgot the day of week.

--8<---------------cut here---------------start------------->8---
(format-time-string "CLOSED: [%Y-%m-%d %a %H:%M]"
		    (date-to-time "2003-10-22T18:27:00.000-04:00"))
--8<---------------cut here---------------end--------------->8---

CLOSED: [2003-10-22 Wed 14:27]

Best,
Matt

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-12  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-09 22:53 Help with migrating blog to org-mode format Myriam Abramson
2011-01-10 14:03 ` Ian Barton
2011-01-10 16:33 ` Erik Iverson
2011-01-11 18:32 ` Matt Lundin
2011-01-12  2:35   ` Myriam Abramson
2011-01-12  4:00     ` Matt Lundin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).