Return-Path: X-Original-To: apmail-corinthia-dev-archive@minotaur.apache.org Delivered-To: apmail-corinthia-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06DFA184E9 for ; Sun, 7 Jun 2015 16:57:20 +0000 (UTC) Received: (qmail 90124 invoked by uid 500); 7 Jun 2015 16:57:19 -0000 Delivered-To: apmail-corinthia-dev-archive@corinthia.apache.org Received: (qmail 90093 invoked by uid 500); 7 Jun 2015 16:57:19 -0000 Mailing-List: contact dev-help@corinthia.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@corinthia.incubator.apache.org Delivered-To: mailing list dev@corinthia.incubator.apache.org Received: (qmail 90076 invoked by uid 99); 7 Jun 2015 16:57:19 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2015 16:57:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 21C6CCC2EA for ; Sun, 7 Jun 2015 16:57:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.9 X-Spam-Level: *** X-Spam-Status: No, score=3.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_LIVE=1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id SSSCwRBG8ZSc for ; Sun, 7 Jun 2015 16:57:10 +0000 (UTC) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 70FD121544 for ; Sun, 7 Jun 2015 16:57:09 +0000 (UTC) Received: by wiga1 with SMTP id a1so63510219wig.0 for ; Sun, 07 Jun 2015 09:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=KCuH4CkjATfk8xRWtKRd/WMejNzQ+8/K4rtDSYS5yH0=; b=b5qPAFoiCZ//EQGYEgWzWvVLKleAIpr1sCuMZ3VB8Az3B1PeiMq9Ls5t8AQLmT8rW2 Rr8BjVnCMEIayhH+YqEsTqr+iTnpkIkasGFY69Sg6IkGvZx842R4opqxY6lADw7TZnQs X2y47k2L3gUNj21VVy3L/YdB+2IlnYtMNwcbp198bKTR93CXLA2hIkL94JKB176y1EII eSyrAOrMnCZG360paiyByIozk+iT/wxX+LvENV6dWgPCqB2WNWLF1ygp7B71GlxkeH+s RPsgzI/GzV1PI+I0w9zEj3ztDGEwwd6klHPWfRZHV9QfEt586ZmGGbHMJneOxs6Iwj/K gM/Q== X-Received: by 10.194.201.71 with SMTP id jy7mr24128510wjc.93.1433696229191; Sun, 07 Jun 2015 09:57:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.27.220.7 with HTTP; Sun, 7 Jun 2015 09:56:48 -0700 (PDT) In-Reply-To: References: From: Gabriela Gibson Date: Sun, 7 Jun 2015 17:56:48 +0100 Message-ID: Subject: Re: ODF Restructure To: dev@corinthia.incubator.apache.org Content-Type: multipart/alternative; boundary=047d7bae494474f6fe0517f06aa9 --047d7bae494474f6fe0517f06aa9 Content-Type: text/plain; charset=UTF-8 On Sun, Jun 7, 2015 at 1:23 PM, Ian C wrote: > Hi Gabriela, > > attached is a patch that reorganises the ODF world to be more like the way > Word documents are processed. > > Great! > I changed to the top level from operations to use an ODFGet. Which in turn > uses an ODFConverter. The heart of the ODFGet function is > > ODFConverter *converter = > ODFConverterNew(html,abstractStorage,package,idPrefix); > > //Get the styles data > //CSSSheetRelease(converter->styleSheet); > converter->styleSheet = ODFParseStyles(converter); > > //Convert the content.xml to an html beastie > ODFTextGet(converter); > > char *cssText = CSSSheetCopyCSSText(converter->styleSheet); > HTMLAddInternalStyleSheet(converter->html, cssText); > HTML_safeIndent(converter->html->docNode,0); > > Which parses for styles as I did before ( so still needs some work). > Then calls an edited ODFTextGet - which is much as it was. > > The code has just been twisted around to match the structure of the word > world. > > %-) > Which means I can't help thinking that we could/should abstract out the > common aspects of converters. > > It converts the headers.odt document to an html which shows the headers ok. > I also attached my version of headers.odt since I changed some of the > styles to try and emphasize their differences. > > I hope it makes sense to you and that your patch tool can digest it. > > Still have a cold(and so am somewhat with the faeries and have to keep my puzzles simple thus), and so far my patch tool digest it better than my brain. Those patches sure are a great work out for the logmessage scribe and this weekend, I've learned all about 'unittests' in python and your patch supplied lots of ammo for writing tests. Let me catch up! {{ nearly there }} :> G > -- > Cheers, > > Ian C > -- Visit my Coding Diary: http://gabriela-gibson.blogspot.com/ --047d7bae494474f6fe0517f06aa9--