From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Importing ODT/libreoffice into Org Date: Sun, 17 Jul 2016 12:24:57 -0700 Message-ID: <877fckqd86.fsf@ericabrahamsen.net> References: <87r3atqu7s.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOrgg-0004aP-17 for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 15:25:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOrgb-0006mr-1w for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 15:25:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:46877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOrga-0006j6-Qy for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 15:25:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bOrgW-00063x-Oa for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 21:25:04 +0200 Received: from otwaon234vw-lp140-05-1176444371.dsl.bell.ca ([70.31.29.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2016 21:25:04 +0200 Received: from eric by otwaon234vw-lp140-05-1176444371.dsl.bell.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2016 21:25:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Christian Moe writes: > Eric Abrahamsen writes: > >> I just had to convert a 200+ page document to Org by hand: searching >> for italics worked, but not replace. > > Looks like pandoc is the way to go, I'll have to try it. > > Still, Search/Replace for italics in LibreOffice ought to work. Try this > recipe: > > 1) Edit -> Find / Replace -> More options: check the box for "regular > expressions". > 2) On "Search for", type "(.*)" (without the quotes, with the parens). > 3) With the cursor still on the "Search for" box, click on "Format" and > select "Italics". > 4) As a replacement, type: "/$1/" (for Org). > 5) Replace all. I have done that successfully in the past! This time it wouldn't work. In the "other options" menu, after you choose the italics, there's a "including styles" checkbox. Libreoffice would only find the italics if that was checked, but if it was checked, clicking replace wouldn't work -- it would ignore the contents of the replace box, and instead change the style of the paragraph to "paragraph style". No matter what I poked, that's all it would do. I appreciate Libreoffice in a way, but it's mystery behavior like that that makes me get out of it as soon as humanly possible. It can be pandoc's job now!