From owner-freebsd-questions@FreeBSD.ORG Thu Oct 28 17:13:03 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C47B4106566B for ; Thu, 28 Oct 2010 17:13:03 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 9D53C8FC1A for ; Thu, 28 Oct 2010 17:13:03 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id EC81AE819F9; Thu, 28 Oct 2010 10:12:38 -0700 (PDT) Date: Thu, 28 Oct 2010 10:12:38 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20101028171236.GA11410@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: slightly OT... . X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2010 17:13:03 -0000 First, since abiword and OOo both work across many platforms, this isn't a FreeBSD question, but humor me anyway. A [long] while ago I checked on the OOOForums list and got the howto's of changing "this into ``this'' in openoffice. [[And 'this into `this': it's a two-fer]]. Has anybody tried this with abiword?? Clues, tips please? (Figure I'll ask here first.) My ascii-to-markup program does the same thing, but only for double-quotes since the fact that the zillions of contractions like can't, would've, and informal english like "So: howzit hangin'?" gave me *many* second thoughts. 1) Does anybody onlist have any idea howto turn 'this' into &lsquo' ? In the HTML ampersand chars list, that's what it is called. Using the ampersand and ints it is "⁞" -- minus the quotes, of course. 2) Iwould like some clues howto automate this either via abiword OR algorithm. It took some large N days back in 1994 when I first hacked atom to realize that I would have to use recursion to get the left|beginning and right|closing double quotes. 3) Or should I give up and do this by eyeball?! tia, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org