From dev-return-63935-archive-asf-public=cust-asf.ponee.io@openoffice.apache.org Sun Oct 14 00:57:48 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9B9ED180638 for ; Sun, 14 Oct 2018 00:57:47 +0200 (CEST) Received: (qmail 45144 invoked by uid 500); 13 Oct 2018 22:57:41 -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 45132 invoked by uid 99); 13 Oct 2018 22:57:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Oct 2018 22:57:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 6858AC018C for ; Sat, 13 Oct 2018 22:57:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.826 X-Spam-Level: *** X-Spam-Status: No, score=3.826 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=1.187, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id cyOy5-OTEyL1 for ; Sat, 13 Oct 2018 22:57:35 +0000 (UTC) Received: from NAM06-DM3-obe.outbound.protection.outlook.com (mail-oln040092033076.outbound.protection.outlook.com [40.92.33.76]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E165E5F381 for ; Sat, 13 Oct 2018 22:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NE8DoJeoVvVFRrWh7cklJKXCMCHMoP1FApZVFkYPdTY=; b=HL/ulKOTsMLPIFn4aBIjGsa1dCwLIB6VJQLFhKbKQgPAMnOLj7vUgL9hHzhiLco1Z6vrct2Bq82nLpmV28EkmCLOxvVPecfMIH2cCkUTZoKv/JSKPzhkWuztjnVvpJmL6x51OMFUX6ZLFYq5gQMwZp0iWt5Gbdn/c3k8wd8/pIz8DnAMr0UiZsFGrYDXMcUso4NtUE6/C+mOgUIi8HH8sQmG4DW5xS11xLYK39a+OMIGWhZT+1st45pOOVNicIO2dlvacA1p5fDZy8uN3QUdAGkdMiMQ6QFaNa9FUUC7CFFminzRlU8KTYeVWXe179Xmeg8L+4gCTdAjyToDLrO/hA== Received: from BL2NAM06FT003.Eop-nam06.prod.protection.outlook.com (10.152.106.60) by BL2NAM06HT018.Eop-nam06.prod.protection.outlook.com (10.152.107.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1273.0; Sat, 13 Oct 2018 22:57:26 +0000 Received: from DM6PR13MB2442.namprd13.prod.outlook.com (10.152.106.57) by BL2NAM06FT003.mail.protection.outlook.com (10.152.106.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.0 via Frontend Transport; Sat, 13 Oct 2018 22:57:26 +0000 Received: from DM6PR13MB2442.namprd13.prod.outlook.com ([fe80::89b3:141b:a403:867c]) by DM6PR13MB2442.namprd13.prod.outlook.com ([fe80::89b3:141b:a403:867c%3]) with mapi id 15.20.1250.014; Sat, 13 Oct 2018 22:57:26 +0000 From: Howard Cary Morris To: "dev@openoffice.apache.org" Subject: RE: html code generated from Open Office Thread-Topic: html code generated from Open Office Thread-Index: AQHQKWpR6r0U9QgDhku6B/40yeUOzqTngFgKgAA5lgCADZf47oAAVW6AgABQ3HKAMBqTAIAAIRLD Date: Sat, 13 Oct 2018 22:57:26 +0000 Message-ID: References: ,<6f2f922b-ef7d-7116-703a-ea7869b46f3a@apache.org> In-Reply-To: <6f2f922b-ef7d-7116-703a-ea7869b46f3a@apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:9D294F3F9A4A9D44D0F35BD1FB3F0D8B06B6A7E9EE55AE9452A555C5FD8A3939;UpperCasedChecksum:7B9574D18977D4E1FA4F8CA8E1CD299B77C12DB362B36902BB0357A92C98A25A;SizeAsReceived:7639;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [puXZkmun4puNOQW05MTUl+QyW9k5V4DopfGLorOCkwQiAcWORM6KoA16oNClQpew] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL2NAM06HT018;6:NJftBSVlGffb2Rk8EavDUyo2OtrcOJ+ci48hDZp02cwYB0jRH/qIXVU3Xso+/G+dqKoh7Lf2cIO9iLmyjT01sBE1YVBSGKZEtnnMLG28XJvogM6XYvN8pJ4LhTcmLOhZrrn/Iq5Nl1BRnn2iD5jOnyOVP6vYrCh9HOxZIKYmvPErDzxUZkvrdzhirKP1u9rB/KnUbjbVULubAuU1VChXRgFvR4WAOndU1qeVxyDt323MXjmJqhKzJ0vIBMXCBTSwIsD0Af7tcD5rK1lAua8eeRD5ES/3h9HhUWJ5GOSNyfYSi5ztzSbtvPTn8d/MfEGcbW3ZRWMlNn6ID/PeSezSg3WNaXTWPcaYxXjx3vLY8P+D3+MHJhfFBYcUR8p1QIolQisjpI9A+9hapzCTC2HYkTriag5Ch+KunfqGCp4eTrnOwjZwuf4flKfYsOGkzHdkhvX8FFNl/zgDuY4TJWQpUw==;5:5/hUIRP65jqje+tq6AnFREs4gn+BUVgot9hS1xME0HAd9pCF+Nr4f4rdoSyo1D/438Lgn9lMoLbssD099FI1PpKfEDmYzxZvwt1cgvgPBX4d8ZTantbDKW5yuOZ7LKRODU8BJkfGU+wj3PauzMPTaHkS+JolEinYD3c9jtDu8xk=;7:qMjnWRVWVRkXsEiASqSoJfw397km3ggc0fIMexcADGn9Q2WUbV0C9X1aKR4vbzRgwffPOZM0ydCvQ1u2tIftBX1b4DyKrG0BzJ9tiL/ThRTGDeuYyrSUtBcBu6T6+pogdy0S/4zd8S44fuc0ZxKjmQ== x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:BL2NAM06HT018; x-ms-traffictypediagnostic: BL2NAM06HT018: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:BL2NAM06HT018;BCL:0;PCL:0;RULEID:;SRVR:BL2NAM06HT018; x-microsoft-antispam-message-info: os+Pztdh6ElBh6Z0HR0fsEiGslcEzxoqx+2pYl7euCnxmCLrUAm2famtRWJ4ytQQ Content-Type: multipart/alternative; boundary="_000_DM6PR13MB244205DC068526AB7676DEFBD9E30DM6PR13MB2442namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 9bd8b953-1c55-4da7-b616-8bcad099ae8b X-MS-Exchange-CrossTenant-Network-Message-Id: cd40ec3a-7ac7-4e94-c60c-08d6315f3eb9 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 9bd8b953-1c55-4da7-b616-8bcad099ae8b X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2018 22:57:26.2579 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM06HT018 --_000_DM6PR13MB244205DC068526AB7676DEFBD9E30DM6PR13MB2442namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I created a new project in Source Forge, https://sourceforge.net/projects/o= pen-office-html-4-to-html5/. It contains my latest tested conversion. If yo= u cannot read the files, I=92ll add more files to make it easier. Currently= my latest in testing version is in http://www.americasfreedompressalliance= .us/Howard/Open/ . To see the source code there use http://www.americasfreedompressalliance.us= /Howard/ and on bottom of page may enter Open/index.html Open/Gen2.php Open/ReadMe.txt After looking at text, may use browser =91Save Page as=92 to get a copy of = source. I could put a shorter version of those programs in Source Forge project. I have looked at code generated by both filters. The .html filter tries to = add the page header and page footer to the generated code. Does a bad job o= f it, I have cleaned it up some. The .xhtml filter doesn=92t even try. The= .xhtml code is true to the page width in Open Office document. The .html f= ilter doesn=92t even try. One reason I am trying to make it as print compat= ible as possible is to make an alternative to PDF. The output is much small= er. In fact, if you compress the output and add the image files, the result= is much smaller than the .odt file. Also, some users may want the output t= o look like a (typed) document. The ReadMe file tells more of what has been done than what needs to be done= . If I ever get to the table of contents, it will be really amazing. I was able to get to the source of the .html filter. However with so many i= ncludes it was impossible to wade through. As asked before, compiled versio= ns with all the includes expanded would help a lot. There seems to be 4 pro= grams in the filter. Howard Sent from Mail for Window= s 10 ________________________________ From: Andrea Pescetti Sent: Saturday, October 13, 2018 3:24:52 PM To: dev@openoffice.apache.org Subject: Re: html code generated from Open Office Howard Cary Morris wrote: > I want the HTML5 look identical to printed code. I will have additional r= eferences to understand the code. I see many mixed ideas in this conversations. Let me give you some pointers, and sorry for being late at this. Start here: https://archive.fosdem.org/2014/schedule/event/improving_the_xhtml_export_f= ilter/ The slides you find there will give you all pointers (source code modules, issues, patches, history) for the XHTML export filter and the idea to repurpose it as an HTML5 export filter. The presentation is old (and looks very old indeed!) but it's still accurate: we didn't change that export in recent years. As someone already told you, we have two filters, the HTML one and the XHTML one. They are in different code modules. The work has to be done in the source code, so whatever you have done in PHP and HTML (?) will have to be rewritten. But I (and many others) will be able to read your current work, assuming you are post-processing the HTML or XHTML output, and we can give feedback if you make it available somewhere. There is a fundamental error in the idea of print fidelity: HTML, and especially HTML5, are not designed with print fidelity in mind. I mean, the idea to have the printed HTML5 identical to the OpenOffice (say) PDF export is unfeasible since HTML rendering is done by the user-agent (browser) and this is by design subject to what the browser decides to do. If you constrain the browser too much by enforcing specific CSS, all advantages of an HTML export will be gone. So the idea should be to have a proper HTML5 export as a start, ignoring the printed output for the time being. Priority should be on getting the semantic level (tags) right, and some basic CSS transformations to get the styles right. Our export is currently using bad HTML style, but the XHTML one is a bit better than the HTML one. For print fidelity (but this comes much later) https://www.w3.org/TR/css3-page/ would be the place to start. It is wonderful, but support from tools is still quite incomplete. And anyway implementation will need the ground work above to be completed beforehand. The way is long, but we are here to help, even though we are all volunteers and are often less responsive than we would like to. The first step is building OpenOffice on your system. There is no other way, unfortunately. Does https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO make any sense to you? If you are lost, we may be able to help if you describe your system configuration. Linux is probably the easiest platform for building. Regards, Andrea. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org For additional commands, e-mail: dev-help@openoffice.apache.org --_000_DM6PR13MB244205DC068526AB7676DEFBD9E30DM6PR13MB2442namp_--