From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Importing ODT/libreoffice into Org Date: Sun, 17 Jul 2016 19:53:26 +0200 Message-ID: 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]:47212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOqG1-0002gm-3j for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 13:53:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOqFy-0008Av-0S for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 13:53:37 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:35981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOqFx-0008A8-Po for emacs-orgmode@gnu.org; Sun, 17 Jul 2016 13:53:33 -0400 In-reply-to: <87r3atqu7s.fsf@ericabrahamsen.net> 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org 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. Annoyingly, there seems to be no way to write a macro for this in LibreOffice, as formating attributes on search/replace isn't part of the API. (If anyone has information to the contrary, please let me know.) Yours, Christian