From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: HTML export and blogging to blogger.com Date: Mon, 15 Nov 2010 20:01:39 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=50368 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIBnh-0001Lw-Uq for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 22:01:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIBng-00067c-R5 for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 22:01:41 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:40657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIBng-00067R-LD for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 22:01:40 -0500 Received: by wyf23 with SMTP id 23so227560wyf.0 for ; Mon, 15 Nov 2010 19:01:39 -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: emacs-orgmode@gnu.org I found this in the manual. Does anybody know whether this is relevant to the problem? \n: turn on/off line-break-preservation (DOES NOT WORK) Thanks. Samuel On 2010-11-13, Samuel Wales wrote: > Well, I spoke too soon. I don't have a solution. Here is > what I tried. > > > 1) org source (my normally-preferred filled paragraphs) -> > c-u c-c c-e R -> blogger > - hard breaks are inserted so no filling can happen in > published blog entry > + if large fonts and small column, will break > awkwardly > - blogger result attached > 2) Unfill-region (my code below) -> c-u c-c c-e R -> blogger > - paragraphs are separated by too many blank lines > - an extra closing div if top headline not included > (not really a problem) > - unfill-region doesn't actually catch all paragraphs > so you have to manually unfill some > 3) Unfill-region (my code below) -> manually deleting > space between paragraphs -> c-u c-c c-e R -> blogger > - no paragraph separation > 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 > > > (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. > -- Q: How many CDC "scientists" does it take to change a lightbulb? A: "You only think it's dark." [CDC has denied a deadly serious disease for 25 years] ========== HIV-like virus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE === I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.