emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: HTML export and blogging to blogger.com
Date: Sat, 13 Nov 2010 20:26:33 -0600	[thread overview]
Message-ID: <AANLkTinOk9KNuANnVi3m-_FPrOKgw5OtBO6nS=pGbPPL@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikpc4U9-t2cQvNjdwR4d_jDHmzJMBX2xfN45z8A@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2675 bytes --]

On Sat, Nov 13, 2010 at 7:25 PM, Samuel Wales <samologist@gmail.com> wrote:

> Well, I spoke too soon.  I don't have a solution.  Here is
> what I tried.
>
>  4) John's recipe: c-u c-c c-e R -> perl script -> blogger
>     - paragraphs are separated by too many blank lines
>     - blogger result attached
>
>
Weird -- I just downloaded your org file and exported using C-u C-e R,
saving as export.txt, running the perl script, and saving that as the
attached. I was already aware of some spacing issues before paragraphs, but
was unsure about your extra lines comment. When I run it, I don't show that.
Check it out -- I have just one line in between paragraphs.

I also copied the perl from this email just in case it got goofed in
translation so I'm confident we're using the same things. I wonder if it's
org options? My emacs file has these options for org related stuff:

,-----
| ;; set auto-fill and some keybindings
| (add-hook 'text-mode-hook 'turn-on-auto-fill)
| (global-set-key "\C-cl" 'org-store-link)
| (global-set-key "\C-ca" 'org-agenda)
|
|
| ;; set config options: stars, todos, font-lock, C-a/e
| (setq org-hide-leading-stars t)
| (setq org-log-done t)
| (add-hook 'org-mode-hook 'turn-on-font-lock)
| (setq org-blank-before-new-entry '((heading . nil) (plain-list-item .
nil)))
| (setq org-special-ctrl-a/e t)
| (setq org-use-speed-commands t)
| (transient-mark-mode 1)
`-----

Could any of these be the culprit? Perhaps org-blank-lines-before-new-entry?
Not sure if things like that affect export at all, but just wondered as I
pasted it...

John


>
> (defun alpha-unfill-region-or-paragraph ()
>  (interactive)
>  (let ((fill-column (point-max)))
>    (alpha-fill-region-or-paragraph)))
> (defun alpha-fill-region-or-paragraph ()
>  (interactive)
>  (if (hoka-org-region-active-p)
>      (call-interactively #'fill-region)
>    (fill-paragraph nil)))
>
>
> John's recipe (I shortcutted with c-u m-|):
>
>  1) Write some stuff
>  2) Select it (move to beginning of what you want, C-space,
>     move to end of what you want)
>  3) C-u C-c C-e R to export that region with no preamble to
>     a separate buffer
>  4) C-x C-w export.txt
>  5) to terminal: perl -pi -e ' s/\R/ /g; s/\<p\>//g;
> s/\<\/p\>/\n\n/g;' export.txt
>  6) back to emacs: C-x C-f export.txt; type "yes"
>  7) M-< to go to front of buffer, C-space, M-> to go to
>     end, M-w to copy
>  8) Paste into basic blogger edit box
>  9) Done
>
> Org source is attached.
>
> _______________________________________________
> 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 3809 bytes --]

[-- Attachment #2: John-export-attempt.txt --]
[-- Type: text/plain, Size: 4896 bytes --]

<div id="outline-container-1" class="outline-4"> <h4 id="sec-1">a headline i do use &ndash; place mark at beginning of this line &nbsp;&nbsp;&nbsp;<span class="tag"><span class="now">now</span></span></h4> <div class="outline-text-4" id="text-1">  <ul> <li id="sec-1_1">xxxxxxx xx xxx xxxxx xxxxxxxx <br/> xxx xxxxxx xxxx xxxxx xx xxxx.  xxx xxxxx xx xxx xxxxxxxx xx xxxxxx xx xxxxxxxx xxx xxxxx xx xx xx xxxx xx x xxxxx xxxxx xxxxx.  xxx xxxxxx xx x xxxxxxx.   xx xxxxx xx xxxx xxxxxx, xx x xxxx xxxx xxx xxxxxxxx <i>xxxxx-xxxxxx</i>, xxx x xxxx xxxx xxx xxxxxxx <i>xxx xxxxxxxx</i>. xxxx xx xxxx xxxxxx xxxxx xxx x xxxx xxxx xx xx xxx xxxxx. 

  xx xxx xxxx x xxxx xxxx xxxxx x xxxx xxxxx, xxx xxx xxxxxxxxx xx xxxxxxxxxx.  xxxx xxxxxxxxx xx xxx xxxxxxxx xxxxx xxxxxxx xxxx xxx xxx xxxxxx, xxxxx xx xxxxxxxxxx, xxx, xxx xxxxxx xxxxx. 

  x xxxxx xxxxxxx, xx xxxx, xxx xxxx xx xx. 

</li> </ul> <ul> <li id="sec-1_2">xxx xxxxxxxx <br/> xxxxxxx xxx xxx xxx xxxxxxxx.  xx xxx xxxxxx xxxxxx xxxxx xxxx xx xxxx xxxx.  xx xx xxxxxx xxxxxxxxxxxxx xxx xxxxxx xxxxxxxxxxxx.  xxx xxxx xxxxxxxx xx xxxxxx xxxxx xxxxxxx.   xxxxxxxxxxxxx xxxxxxxxxx xxxxxxx xxx xxxxxxxxx xx xxxx-xxxxx, xxxxxxxxx, xxxx-xxxxx xxxx.  x xxxxxxxxxxxxx xxxxxxxxx xxx xxxxxxxxx xx xxxx xxxxxxxx, xxx xxx xxxx xx xxx xxxxxxxx xxxxx xxx 1980x, xxxxxx xxxxxx-xx-xxxxxx xx xxx xxx xxxx xxxxx xxxx xxx xxxxx xxxxxx xxxx xxx. 

  xxxxxxxx xxxxxx.  xx xxx xxxxx xxxxxx, xxxx xxxx xxx xxxxxx, xxxxx xxxxxx xxx xxxxxxxxx, xxx xxxxxxx xxxxx xx xxxxx xxxxxxxx, xxxxxxxx, xxxxxxxxxx-xxxxx, xx xxxxxxxxxx; xxxxxxxx xxx xx xxxxxxxx xxxx; xxxx xxx. 

  xxxxxxxx xxxxxxx xxx xxx.  xxx xxxxx xxxxx xxxxxxx xxxxxxx, xxxxxx xxxxxxx xxxxxxxxxxxx xxxx xxx xxxx xxxxxxxx xx xxxx xxx xxxxxxxx; xxxx xxxxxxx xxxx xxxx xxxxx xxxxxxxx. 

  xxx xxxxxx xx xxxxxxxxx xxxx xxxxxxx xxxxxxx, xxx xxxxxxxxxxx xxxxxxxx 17 xxxxxxx.  xxxxx x xxxxxxx xxx xx xxx xxx.  xxxx xx xxxxxxx xx xxx. 

  <hr/>   xx xxx'x xxxx xxxx xxxxxxx xx xxxx xxx xxxxxxxx xx xxxxxxxxx xxxxxxxx xx xxx xxxxxxxxx xxxxxx xxxx xxxxx xx xxx/xxxx, xxxxxxx xxxxxxxx xxxx xxx xxxxxx.  xx xxxxxxxx xxxxx, x xxx xxx xxxx xx xxx xx xxx xxxxx xxxxxxxxxx xxxxxx. 

  <i>xx xxxxxxxx xxxx xx xxxxxxxxxxxxxx xxxxxxxxxx; xxxxxxxxx xxxxxxxxxx x xxxxxx xx xxxx xxxxxxxxxx xxx xxxxx</i> --<a href="#xxxx://xxxxxxxxxx.xxxxxxxxx.xxx/xxxx/xxxxx">xxxxxxx</a> 

</li> </ul> <ul> <li id="sec-1_3">xxxxx-xxxxxx <br/> <b>xxx xxx xxxxx xx xxxx</b> xx xxxx xxx xxxxxxxx xx xxxxx xx xxxxx-xxxxxx.   xxxxxxxxxxx xx xxx xxxxxxxx xx, xxx xxxx xxxxx xx, xxxxx x xxxxxxx xxxxxxxxxx xxxx xxxxxxxxx xx xxxxxxxxx xxxxxxxxx. xxxxxxx xxx xxxxxxxx xxx xx xxx xxxx xxx xxxxxxx. 

  xxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx xx x xxxxxxxxxx xxxxxx-xxxxxxxx xxxxxxx, xxxxxxxxx xxxxxxxx xx xxxx xxx xxxxxxx xxxx xxx xx xxx xxxx x xxxxxxx. 

  xxx xxxxxxxx xx xx xxxxxxxxx xxxxx xx xxxxx-xxxxxx xxxx xxx xxxxxxx xxxx xxx xxxx x xxxxxxxxxx xxxx xxxx xxxxxxx xx xx xxxxx.  xxx xxx xx xxxxxx xxxxxxxxxx xxxxxxx xxxxxxxxx. xxxx xxxx xxx xxxxxxxx xxxx. 

  xxxxxx xxxxx xxx, xxxxxxx xxx xxx xxxxxx xxxxxx xxxx xxx xxxxxxxx xx xx xxxx xxxxxxx xxxx xxx xxxxx. 

  xxx xxxxxx xx xxxxxxxxxxx.  xxx xxxx xxxx xxxx x xxxxxxxxx xxxxx xxxxx xxxxxx xxxx x xxxxxxxx xxxx xx xxxx xxx xxxx xx xxxx xxx xxxxxxxxx. 

</li> </ul> <ul> <li id="sec-1_4">xxx xxxx <br/> xxxx xxxx xxxxxxx xxxx xxxxx-xxxxxx xxx xxx xxxxxxxx. xxxxxxx xxxx xxxx xxxx xxx xxxxxx xx.   xx xxx xxxx x xxxx xxxx xx xxx xxxxxx.  x xxxxx xx xxxxxxx xxxxx xxx xxxxxx "xxx xxxxx xxxxxxxx", xxx xxxxxx xxxxx xxxx.  x xxxxxxx xx xxxxxxx xxxx xx xxxx xxxxxxxxxxxxx, xxx x xxxx xxxxx xxxxxx, xxxxxxx x xxxx xxxx xxxxxxxx. 

  xxxxx xx xxxxxxxxxx xxxxxxxxx xx xxxxxxxxxxx xx xxxxxxxxxxxx-xxxxxxx xxxxxxxx xxx xxxxx xxxxxxxxxx xxxxxxxx. x xxxx xx xx xxxx xx xxxxxxx xxxx, xxx x xxxxxx xxxx xxxx xxxxx xx.  xxxx xxxx xxxxxxxx xx xxxxxxxx xx xxxxxxx xxx xxxxxxxx. 

  xx xxx xxx, xxx xxxxxx xxxxxx xxxxxxx xx "xxx xxxxx xxxxxxxx" xx xxxxxxxxxx, xxx xxx xxx, x xxxx xxxxxx xx xxxx xxxxx xxxxx-xxxxxx xx xx xxxxxxx xx xxx xxxxxxxx xxx xxxxxxx xxxxxxxx.  xxxxx-xxxxxx xx xxx xxxxxxx xxxx xxxx. 

  x xxxx xxxx xxxx xx xx xxxxxxxxxx, xxxx xx xxxx, xxx xxxx xx xxx.  xxxxxx xxxx xx xx xx xxx'x, xxx x xxxx xxxxxx xx. 

</li> </ul> <ul> <li id="sec-1_5">xxx xx xxx <br/> xx xxx xxxx xxx xxx xxxxxx xxx xxxxxxxx, x xxxx xxx xx.  xx xxx xx xxxxxx xxxxxxxx xxxx xxx xxxxxxx, xx xxxxxx xxxx x xxxxxxxxx xxxx xxxxxxxxxx xx xxxxxx xxxxxxx xxx xxxxx xxxx xx xxxxxxxx, xxx x xxxxxxx xxxxxxxxxxxx, xxxxxxxxxxx, xxxxxx xxxxxxxx.  xx xxx xxxxxx xxxx xxx xxx.  xx xxxxx xxxxxxx xxxxxxx xxxx xxx xxxxx xx xxxx xx xxxx xxxx.  xx xxx xxxxxxxxxxx xxxx xxxxxxxxxxxxx xxx xxxxxxxxx.  xxx xxxx xxxxx, xxxxx xxx xxxxx xxx xxxx, xxxxxxx xxxxx xx xxxx xxxxx xx xxxxxxxx, xxxxx xx xxx xx xxxxxxxxxx, xxx <b>xxxxx xx xxx xx xxxx xxxxxxx</b>.   &hellip; 

   xxxxxx 

   place point after this line 

</li> </ul> </div> </div> 

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2010-11-14  2:26 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-11 22:05 HTML export and blogging to blogger.com Samuel Wales
2010-11-11 22:50 ` Nick Dokos
2010-11-11 23:06   ` Samuel Wales
2010-11-12  3:45     ` Nick Dokos
2010-11-11 23:07 ` John Hendy
2010-11-11 23:18   ` Samuel Wales
2010-11-11 23:40     ` John Hendy
2010-11-12  2:25       ` Samuel Wales
2010-11-12 10:47         ` Eric S Fraga
2010-11-12 19:32           ` Samuel Wales
2010-11-14  1:25 ` Samuel Wales
2010-11-14  2:26   ` John Hendy [this message]
2010-11-14  2:54     ` Samuel Wales
2010-11-16  3:01   ` Samuel Wales
2010-11-16  9:50     ` Giovanni Ridolfi
2010-11-16 18:26       ` Samuel Wales
2010-11-16 23:17         ` Samuel Wales
2010-11-16 23:32           ` John Hendy
2010-11-17  0:13             ` Samuel Wales
2010-11-17  0:17               ` Samuel Wales
2010-11-17  4:34                 ` John Hendy
2010-11-17  4:45                   ` John Hendy
2010-11-17  9:09                     ` Eric S Fraga
2010-11-17 16:36                       ` John Hendy
2010-11-17 16:46                         ` Eric S Fraga
2010-11-24  1:59                       ` Samuel Wales
2010-11-24  9:09                         ` Eric S Fraga
2010-11-24  2:03                   ` Samuel Wales
2010-11-17 11:47         ` Christian Moe
2010-11-17 12:28           ` Add a hook with #+BIND? Christian Moe
2010-11-18  5:44           ` Re: HTML export and blogging to blogger.com John Hendy
2010-11-17  3:46   ` Nick Dokos
2010-11-17  4:18     ` John Hendy
2010-11-17  5:17       ` Nick Dokos
2010-11-17  5:52     ` Samuel Wales
2010-11-17  6:09       ` Nick Dokos
2010-11-24  2:00         ` Samuel Wales
2010-11-17 10:17       ` Tim Burt
2010-11-24  1:58         ` Samuel Wales
  -- strict thread matches above, loose matches on Subject: below --
2012-05-29 17:24 Annoying behavior of RET after a timestamp Nick Dokos
2012-05-29 17:46 ` Nick Dokos
2012-05-29 17:54   ` Samuel Wales
2012-05-29 18:43     ` Nick Dokos
2012-05-29 18:57       ` Samuel Wales
2012-05-29 19:04         ` suvayu ali
2012-05-29 19:15         ` Nick Dokos
2012-05-29 19:21           ` Nick Dokos
2012-05-29 19:26             ` Nick Dokos
2012-05-29 20:05               ` Samuel Wales
2012-05-31 12:43               ` Matt Lundin
2012-06-01 13:57                 ` Bastien
2012-06-01 13:55 ` Bastien
2012-06-01 15:41   ` Nick Dokos
2009-06-11 11:58 tea-time? henry atting
2009-06-11 12:34 ` tea-time? Sebastian Rose
2009-07-17  3:56   ` tea-time? Samuel Wales
2009-07-17  7:24     ` tea-time? Bastien
2009-07-25 19:49       ` tea-time? Samuel Wales
2009-07-25 22:20         ` tea-time? Bastien
2009-07-26  0:14           ` tea-time? Samuel Wales
2009-07-26 19:04             ` tea-time? Bastien
2009-07-29 17:30               ` tea-time? Samuel Wales
2009-07-29 17:31                 ` tea-time? Samuel Wales
2009-07-29 17:41                 ` tea-time? Bastien
2009-07-29 17:54                   ` tea-time? Samuel Wales
2009-07-29 18:41                     ` tea-time? Bastien
2009-07-29 19:06                 ` tea-time? Bastien
2009-07-29 21:45                   ` tea-time? Samuel Wales
2009-07-29 22:29                     ` tea-time? Nick Dokos
2009-07-30  5:18                       ` tea-time? Bastien
2009-07-30 10:56                       ` tea-time? Eric S Fraga
2009-07-30 12:34                         ` tea-time? Richard Riley
2009-07-30  5:48                     ` tea-time? Bastien
     [not found]                     ` <samologist@gmail.com>
2012-08-28  1:11                       ` How to make kill-sexp work as in the rest of Emacs? Samuel Wales
2012-08-28  3:43                         ` Nick Dokos
2012-08-28  4:08                           ` Samuel Wales
2012-08-28  5:30                             ` Nick Dokos
2012-08-28  5:33                               ` Samuel Wales
2012-08-30  5:04                               ` Bastien
2009-07-17 12:46     ` tea-time? Bernt Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinOk9KNuANnVi3m-_FPrOKgw5OtBO6nS=pGbPPL@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).