Return-Path: X-Original-To: apmail-openoffice-dev-archive@www.apache.org Delivered-To: apmail-openoffice-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D22C112FC for ; Sun, 3 Aug 2014 11:40:54 +0000 (UTC) Received: (qmail 71329 invoked by uid 500); 3 Aug 2014 11:40:53 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 71244 invoked by uid 500); 3 Aug 2014 11:40:53 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 71232 invoked by uid 99); 3 Aug 2014 11:40:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2014 11:40:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kellypmk@gmail.com designates 209.85.220.52 as permitted sender) Received: from [209.85.220.52] (HELO mail-pa0-f52.google.com) (209.85.220.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2014 11:40:48 +0000 Received: by mail-pa0-f52.google.com with SMTP id bj1so8379617pad.11 for ; Sun, 03 Aug 2014 04:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=ncr8WKVFJuiyNxyPY/g0BdP1e1DY/7LuR6k1MdxVjQI=; b=JyXmP9/djaMB5E8yJa2Qwl0HlKwP7Z/AFbkS+Y0z7Ht/EoP3LcWjrhP4BxQDgL17tF nWJ3AudFt0/RL8n+BDL7FvZdYUSczUwJftb6MZCBA+p2ELP8hevBAuANNIO+FwkjZP4/ TxmCP9MvaDnuyn1o8js0hI9OwH7vitQMQ7tdDqwvJB/kXqKbeUZs53D974g6zFxlHvRM S1Nog1vJviDDbnBDFICqTQeGypmAqTS0R1nP/6JHvsczmYLU9Zt8QRH+E2DCODJe18Y3 TZyK6yHflb7kz3cZ4i9xyo1605HBe61F5Lb/MNhDYjTWttgdDHt8BH1VGrS3KV6K6A6G diqw== X-Received: by 10.66.235.70 with SMTP id uk6mr17888764pac.49.1407066028708; Sun, 03 Aug 2014 04:40:28 -0700 (PDT) Received: from [192.168.183.54] ([110.77.250.53]) by mx.google.com with ESMTPSA id wt2sm14211643pbc.93.2014.08.03.04.40.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Aug 2014 04:40:27 -0700 (PDT) From: Peter Kelly Content-Type: multipart/signed; boundary="Apple-Mail=_92896AEE-C98A-4C9B-8593-F088591B714E"; protocol="application/pgp-signature"; micalg=pgp-sha512 Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: OOXML Date: Sun, 3 Aug 2014 18:40:22 +0700 References: <20140801084237.fd8a9b8ca6261554f2f0b9b0@iol.ie> <22A06F0C-16C5-4640-9C75-9CE8CE66AC17@gmail.com> <79FD7F45-99B8-44A6-B390-5048EC1BDF46@gmail.com> <004c01cfae8d$0f4d4e20$2de7ea60$@acm.org> To: dev@openoffice.apache.org In-Reply-To: <004c01cfae8d$0f4d4e20$2de7ea60$@acm.org> X-Mailer: Apple Mail (2.1878.6) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_92896AEE-C98A-4C9B-8593-F088591B714E Content-Type: multipart/alternative; boundary="Apple-Mail=_211485E2-04E3-4C3A-9C95-63C3E8D4A3DA" --Apple-Mail=_211485E2-04E3-4C3A-9C95-63C3E8D4A3DA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 3 Aug 2014, at 3:05 am, Dennis E. Hamilton = wrote: > In line with the sketch that Peter Kelley provides below, I am = personally very sympathetic to the idea of having an internal model that = can tolerate difference in format between input and output while = preserving in the output everything from the input format it can, even = by leaving markers that will be useful on future input of the produced = form. (There is a well-known case of Microsoft Office doing this for = HTML it exports, although the added information for recovery of the MSO = rendition led to many complaints about document bloat.) On a semi-related note, there's once quite fascinating implementation of = ODF I've seen called WebODF (see http://webodf.org; the code is open = source). This is an in-browser editor, and actually works by loading the = content.xml file from the ODF package into the DOM tree of the browser, = thus having it contained within the HTML content of the page. Through = clever use of CSS namespaces, it's able to achieve a pretty faithful = rendering of the document using the browser's built-in layout engine, = even though the content itself is not in HTML. =46rom what I understand about their approach, the reason they did this = I believe is as a way to ensure that the XML structure of the ODF file = is preserved exactly, which is much more difficult to achieve if the = content is converted into HTML first (as in my implementation). Web = browsers are actually very good at handling content in this way, since = you can just use the CSS property setting "display: none" to hide any = elements that shouldn't be rendered on screen, and this CSS can be kept = entirely separate (or even dynamically generated by javascript) and not = part of the XML content itself. So WebODF takes advantage of the fact = that a web browser will just preserve information by default, and it = works quite well. -- Dr. Peter M. Kelly Founder, UX Productivity peter@uxproductivity.com http://www.uxproductivity.com/ http://www.kellypmk.net/ PGP key: http://www.kellypmk.net/pgp-key (fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966) --Apple-Mail=_211485E2-04E3-4C3A-9C95-63C3E8D4A3DA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii On 3 = Aug 2014, at 3:05 am, Dennis E. Hamilton <dennis.hamilton@acm.org> = wrote:

In line with the sketch that Peter Kelley provides below, = I am personally very sympathetic to the idea of having an internal model = that can tolerate difference in format between input and output while = preserving in the output everything from the input format it can, even = by leaving markers that will be useful on future input of the produced = form.  (There is a well-known case of Microsoft Office doing this = for HTML it exports, although the added information for recovery of the = MSO rendition led to many complaints about document = bloat.)

On a semi-related note, = there's once quite fascinating implementation of ODF I've seen called = WebODF (see http://webodf.org; = the code is open source). This is an in-browser editor, and actually = works by loading the content.xml file from the ODF package into the DOM = tree of the browser, thus having it contained within the HTML content of = the page. Through clever use of CSS namespaces, it's able to achieve a = pretty faithful rendering of the document using the browser's built-in = layout engine, even though the content itself is not in = HTML.

=46rom what I understand about their = approach, the reason they did this I believe is as a way to ensure that = the XML structure of the ODF file is preserved exactly, which is much = more difficult to achieve if the content is converted into HTML first = (as in my implementation). Web browsers are actually very good at = handling content in this way, since you can just use the CSS property = setting "display: none" to hide any elements that shouldn't be rendered = on screen, and this CSS can be kept entirely separate (or even = dynamically generated by javascript) and not part of the XML content = itself. So WebODF takes advantage of the fact that a web browser will = just preserve information by default, and it works quite = well.

= --Apple-Mail=_211485E2-04E3-4C3A-9C95-63C3E8D4A3DA-- --Apple-Mail=_92896AEE-C98A-4C9B-8593-F088591B714E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJT3h+mAAoJECDy9NkmdeTTMWYP/2c/3NpJmuPyqM5DPcSCvlup Nk8Fb4rOorPF3emcXa70rcsJvo9LiaP3/CbKhDG6jlpUPQHwI6fmVlW16MEQS9bf c/30oi1XqCDRolWVj3Y63W8Seg1NmCEgq89C1/lfavz945LzXRcFV2qxxb+oiTRk cFE1noC4lyDt9Hxzqixg70GDLwYsry9LDGeViwzzAGrZMjwi+SJ6ZpYbEK7jzGv5 DXSUuPoXNGckXou/VMrTiysnxOVgAC98PZMey7tqoYqdJ8D7ApB3sYQFveCkOGFQ FbTpmDIuNR7B67xq1TJx/3ZCiWT/9wmjOkobbHnIgmV7GWAU9+9MGVHh41V9FlD7 ulY4jb+Mkk/pviDx+aBn8/lqOxBORjFGUcSs35c55UZRxL4koKQh9gT5HbUn+R6G 0TjM5z4HpnLuptE8lOncVj7axA13GlwtvYj3wqM6Obxgs6tdd+loEOM9p3NplXub 9jDqguJrQg19j+QelGoPLnLRBLzWjHvdm/oWIhjzXqMV3aqeXrMrPjBj7FMyJWzs CwmSaMy/ksvGlPJNMEg/dhSKGH7tv3dfQcIRM84G8U7kK5VvVvn+e45aXDRbTGfK hyzojLIfgNCR3xQfnQQ6+KlrBu/DmGSTitx6/7vwPUpsliFF0wYGXA2LvK8FnpPs ahYKRFy5LmiJLsrwRl8Z =0PVM -----END PGP SIGNATURE----- --Apple-Mail=_92896AEE-C98A-4C9B-8593-F088591B714E--