From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Re: HTML export and blogging to blogger.com Date: Sat, 13 Nov 2010 20:26:33 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016363b983e5881a10494fa0de7 Return-path: Received: from [140.186.70.92] (port=52083 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHSIi-0001kT-O1 for emacs-orgmode@gnu.org; Sat, 13 Nov 2010 21:26:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHSIe-0003Dj-CS for emacs-orgmode@gnu.org; Sat, 13 Nov 2010 21:26:40 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:44914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHSId-0003DT-Tq for emacs-orgmode@gnu.org; Sat, 13 Nov 2010 21:26:36 -0500 Received: by bwz16 with SMTP id 16so4372855bwz.0 for ; Sat, 13 Nov 2010 18:26:34 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode@gnu.org --0016363b983e5881a10494fa0de7 Content-Type: multipart/alternative; boundary=0016363b983e5881970494fa0de5 --0016363b983e5881970494fa0de5 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Nov 13, 2010 at 7:25 PM, Samuel Wales 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/\//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 > > --0016363b983e5881970494fa0de5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sat, Nov 13, 2010 at 7:25 PM, Samuel Wal= es <samologist= @gmail.com> wrote:
Well, I spoke too soon. =A0I don't have a solution. =A0Here is
what I tried.

=A04) John's recipe: c-u c-c c-e R -> perl script -> blogger<= br> =A0 =A0 - paragraphs are separated by too many blank lines
=A0 =A0 - 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 scrip= t, and saving that as the attached. I was already aware of some spacing iss= ues 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 be= tween 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 thi= ngs. I wonder if it's org options? My emacs file has these options for = org related stuff:

,-----
| ;; set auto-fill and some keybind= ings
| (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)
| (se= tq org-blank-before-new-entry '((heading . nil) (plain-list-item . nil)= ))
| (setq org-special-ctrl-a/e t)
| (setq org-use-spee= d-commands t)
| (transient-mark-mode 1)
`-----

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

John
=A0

(defun alpha-unfill-region-or-paragraph ()
=A0(interactive)
=A0(let ((fill-column (point-max)))
=A0 =A0(alpha-fill-region-or-paragraph)))
(defun alpha-fill-region-or-paragraph ()
=A0(interactive)
=A0(if (hoka-org-region-active-p)
=A0 =A0 =A0(call-interactively #'fill-region)
=A0 =A0(fill-paragraph nil)))


John's recipe (I shortcutted with c-u m-|):

=A01) Write some stuff
=A02) Select it (move to beginning of what you want, C-space,
=A0 =A0 move to end of what you want)
=A03) C-u C-c C-e R to export that region with no preamble to
=A0 =A0 a separate buffer
=A04) C-x C-w export.txt
=A05) to terminal: perl -pi -e ' s/\R/ /g; s/\<p\>//g;
s/\<\/p\>/\n\n/g;' export.txt
=A06) back to emacs: C-x C-f export.txt; type "yes"
=A07) M-< to go to front of buffer, C-space, M-> to go to
=A0 =A0 end, M-w to copy
=A08) Paste into basic blogger edit box
=A09) 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


--0016363b983e5881970494fa0de5-- --0016363b983e5881a10494fa0de7 Content-Type: text/plain; charset=US-ASCII; name="John-export-attempt.txt" Content-Disposition: attachment; filename="John-export-attempt.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gghawy3h3 PGRpdiBpZD0ib3V0bGluZS1jb250YWluZXItMSIgY2xhc3M9Im91dGxpbmUtNCI+IDxoNCBpZD0i c2VjLTEiPmEgaGVhZGxpbmUgaSBkbyB1c2UgJm5kYXNoOyBwbGFjZSBtYXJrIGF0IGJlZ2lubmlu ZyBvZiB0aGlzIGxpbmUgJm5ic3A7Jm5ic3A7Jm5ic3A7PHNwYW4gY2xhc3M9InRhZyI+PHNwYW4g Y2xhc3M9Im5vdyI+bm93PC9zcGFuPjwvc3Bhbj48L2g0PiA8ZGl2IGNsYXNzPSJvdXRsaW5lLXRl eHQtNCIgaWQ9InRleHQtMSI+ICA8dWw+IDxsaSBpZD0ic2VjLTFfMSI+eHh4eHh4eCB4eCB4eHgg eHh4eHggeHh4eHh4eHggPGJyLz4geHh4IHh4eHh4eCB4eHh4IHh4eHh4IHh4IHh4eHguICB4eHgg eHh4eHggeHggeHh4IHh4eHh4eHh4IHh4IHh4eHh4eCB4eCB4eHh4eHh4eCB4eHggeHh4eHggeHgg eHggeHggeHh4eCB4eCB4IHh4eHh4IHh4eHh4IHh4eHh4LiAgeHh4IHh4eHh4eCB4eCB4IHh4eHh4 eHguICAgeHggeHh4eHggeHggeHh4eCB4eHh4eHgsIHh4IHggeHh4eCB4eHh4IHh4eCB4eHh4eHh4 eCA8aT54eHh4eC14eHh4eHg8L2k+LCB4eHggeCB4eHh4IHh4eHggeHh4IHh4eHh4eHggPGk+eHh4 IHh4eHh4eHh4PC9pPi4geHh4eCB4eCB4eHh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4eCB4 eHh4eHh4IHh4eHggeHh4IHh4eHh4IHh4IHh4eHggeHggeHh4eCB4eHh4LiAgeHggeHh4IHh4eHh4 eHh4eHh4IHh4eHggeHh4eHh4eHh4eHh4eCB4eHggeHh4eHh4eHh4LiAgeHh4IHh4eHggeHh4eHgs IHh4eHh4IHh4eCB4eHh4eCB4eHggeHh4eCwgeHh4eHh4eCB4eHh4eCB4eCB4eHh4IHh4eHh4IHh4 IHh4eHh4eHh4LCB4eHh4eCB4eCB4eHggeHggeHh4eHh4eHh4eCwgeHh4IDxiPnh4eHh4IHh4IHh4 eCB4eCB4eHh4IHh4eHh4eHg8L2I+LiAgICZoZWxsaXA7IAoKICAgeHh4eHh4IAoKICAgcGxhY2Ug cG9pbnQgYWZ0ZXIgdGhpcyBsaW5lIAoKPC9saT4gPC91bD4gPC9kaXY+IDwvZGl2PiAK --0016363b983e5881a10494fa0de7 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --0016363b983e5881a10494fa0de7--