Return-Path: X-Original-To: apmail-incubator-ooo-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F2E3C73B for ; Thu, 24 May 2012 15:56:04 +0000 (UTC) Received: (qmail 19359 invoked by uid 500); 24 May 2012 15:56:03 -0000 Delivered-To: apmail-incubator-ooo-users-archive@incubator.apache.org Received: (qmail 19314 invoked by uid 500); 24 May 2012 15:56:03 -0000 Mailing-List: contact ooo-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-users@incubator.apache.org Delivered-To: mailing list ooo-users@incubator.apache.org Received: (qmail 19306 invoked by uid 99); 24 May 2012 15:56:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 15:56:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gurus.knugum@gmail.com designates 209.85.212.47 as permitted sender) Received: from [209.85.212.47] (HELO mail-vb0-f47.google.com) (209.85.212.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 15:55:57 +0000 Received: by vbbfr13 with SMTP id fr13so6081651vbb.6 for ; Thu, 24 May 2012 08:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jTbkKsCUSDglPK59QiMw2IwdC5FmBWHPmy5YFnDHI7Y=; b=GLxZE0m1PPKcDpnrUw9WeKGVbfjmrMJWTavC6QddtDVD2a0RFu6p22ITmWWjXCYt75 gL1abn36mXCm2Bhrn2SmuWtmPpwbcUZ3Pjutfs6C34OLCbi+ZAqJ+aOXKDwqX8ToVjtE wkbI6HoVOlWrwU6bXo9t9dfEQ41vgNvaGfOLq4UEKqR6QvKB3tYxSGIb5XL0AlUnYrqs QOtd2ITxbzdiOJslxQGzmyLQLAnWRHTF407DzNAbDJYrGtIiFyva5BKjc0nZFtrBRRWy 9TnRUnVMmy1pGh6fb7z9zO/vTOn7AV6VIP6hbkzRqOMUa5XYlRGu17QBgpoYJIV5N09h jnuA== MIME-Version: 1.0 Received: by 10.52.28.162 with SMTP id c2mr6743vdh.3.1337874936541; Thu, 24 May 2012 08:55:36 -0700 (PDT) Received: by 10.221.12.77 with HTTP; Thu, 24 May 2012 08:55:35 -0700 (PDT) In-Reply-To: <201205241050.45124.afrotrap@gmail.com> References: <201205241050.45124.afrotrap@gmail.com> Date: Thu, 24 May 2012 17:55:35 +0200 Message-ID: Subject: Re: Is there a way to do this... From: Johnny Rosenberg To: ooo-users@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2012/5/24 Ima Afrotrap : > I often copy and paste from e-book formats into odt simply because odt is= always > such a nice smaller file size and I have all the control in the world ove= r what > kind of font I want to use, etc. > > One problem I often have is something like this... > > For instance, in the following sentence: > > ----- > He had just said wearily,"There's no timber down there to build cabins." > ----- > > There's no 'space' between the apostrophe and the beginning quotation mar= ks. When you say =E2=80=9Dapostrophe=E2=80=9D, do you actually mean =E2=80=9Dco= mma=E2=80=9D? Because I can't see an apostrophe directly followed by a quotation mark in that example sentence. > In > this particular e-book, there is a *LOT* of this and I'll not be able to = enjoy > reading the book if I have to stop every 5 seconds to click on the spot a= nd hit > the spacebar all the time. > > I looked at the find/replace, but when I tried that it didn't work very w= ell and > then I had to *delete* a space when it put it *between an apostrophe and = an end > quotation mark. > > I don't understand well enough how to use the regular expressions and wou= ld > really like to be able to use the find/replace so it can do the 1000+ > corrrections for me and I can get back to the occassional manual fix, heh= . > > Does anyone have any idea how I can do this to make it easier on myself a= nd get > ahead with actual reading? (hopefully I described the problem well enough= for > someone to actually be able to help me). > > > =C2=A0JB I tried your example with and without regular expressions and it worked easily in both cases. Can you give another example that contains every case where you need to add a space AND every case where you don't want an extra space? If the end quotation mark is the same character as the beginning quotation mark, then it will be very difficult to create a regular expression that is able to know which one is which. If there always is a space, period or a comma after the end quotation mark, I can see a way, though. I need to know the exact rules to create something that actually works in every situation that is likely to show up. Kind regards Johnny Rosenberg =E3=82=B8=E3=83=A7=E3=83=8B=E3=83=BC=E3=83=BB=E3=83=AD=E3=83=BC=E3=82=BC=E3= =83=B3=E3=83=90=E3=83=BC=E3=82=B0 --------------------------------------------------------------------- To unsubscribe, e-mail: ooo-users-unsubscribe@incubator.apache.org For additional commands, e-mail: ooo-users-help@incubator.apache.org