Looked at code, tried to anyway. Way to many includes, which I don’t know how 
to look up.
I’d be better off with compiled code for modules with all includes expanded.

Included read me text of my server code to convert so far.

While I am thinking of it, saw an earlier email about source of help.
For online help, create with Writer and export as .xhtml file headers and 
footers not exported.

Tried dumping .odt file. I could not see text or fonts (must be encoded). But 
other parts were not encoded (like meta data). Seemed to waste a lot of space. 
Saw a lot of other stuff that made it seem like our files are being fed into a 
another language (xml?)

May consider combining .html and .xhtml files for better creation.

Howard

From: Howard Cary Morris<mailto:howard_cary_mor...@hotmail.com>
Sent: Thursday, September 13, 2018 1:03 AM
To: dev@openoffice.apache.org<mailto:dev@openoffice.apache.org>
Cc: Apache OO<mailto:dev@openoffice.apache.org>
Subject: RE: html code generated from Open Office

Only reason I want to see Print and print preview code is that I want the HTML5 
look identical to printed code. I will have additional references to understand 
the code.



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



________________________________
From: Damjan Jovanovic <dam...@apache.org>
Sent: Wednesday, September 12, 2018 7:59:53 PM
To: Howard Cary Morris
Cc: Apache OO
Subject: Re: html code generated from Open Office

Those modules are in our source code, see this link about getting it:
https://openoffice.apache.org/source.html
Building it is quite involved :-/.

What are you looking for in terms of printing?

ODT files are documented but it's a lot of documentation:
https://www.oasis-open.org/standards#opendocumentv1.2

Damjan


On Wed, Sep 12, 2018 at 10:00 PM Howard Cary Morris <
howard_cary_mor...@hotmail.com> wrote:

> OK, where can I get a copy of that module for Writer?
>
> Would also like a copy of module that does print and one that does view
> preprint.
>
> (Mainly for comparison purposes.)
>
> If there is documentation of the format of the .odt files, I might be able
> to write the module from scratch.
>
>
>
> Howard
>
>
>
> *From: *Damjan Jovanovic <dam...@apache.org>
> *Sent: *Monday, September 3, 2018 11:20 PM
> *To: *Apache OO <dev@openoffice.apache.org>;
> howard_cary_mor...@hotmail.com
> *Subject: *Re: html code generated from Open Office
>
>
>
> Hi
>
>
>
> If it was me, I said:
>
> The code for the "Save As" -> "HTML document" feature seems to be in:
>
>
>
> main/sc/source/filter/html
>
> for Calc, and
>
> main/sw/source/filter/html
>
> for Writer.
>
> (Not sure if there are more?)
>
>
>
> Thank you for your contribution, and please let us know if you need any
> further help.
>
> Damjan
>
>
>
> On Tue, Sep 4, 2018 at 2:55 AM Howard Cary Morris <
> howard_cary_mor...@hotmail.com> wrote:
>
> Sorry, I seem too have deleted a more recent version of this request.
> Someone sent me name of module that gets invoked for a save as HTML
> request.
> I also like to compare that with the module that does the print request
> and the module that does the print preview. What are all those module names.
> Where can I download those modules from?
>
> Thanks Howard
>
> Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986
> <https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986&data=02%7C01%7C%7C482eb29f850342906b7608d6121db243%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636716316081442734&sdata=%2FM2%2FbybEdfduyk8j%2BkyvRNw26xajYIEYFY9RYC7h6As%3D&reserved=0>>
> for Windows 10
>
> ________________________________
> From: Howard Morris (aka Col Boogie) <howard_cary_mor...@hotmail.com>
> Sent: Monday, January 5, 2015 10:36:20 PM
> To: dev@openoffice.apache.org
> Subject: html code generated from Open Office
>
> The reason I joined Open Office was to enhance the html code generated
> from writer.
>
> For now, I have constructed html code to upload an html file generated by
> Open Office and PHP code to tweak that code and download a better version.
> Everything I have doe so far is in the attached zzz.zip file. Explanations
> are in Readme.txt
>
> I would have liked to have done this directly, but when I asked how to get
> there, I was directed to a site where I could download all the modules one
> by one, and there seemed to be hundreds of them and no indication what any
> of them contained with dubious directions how to put them together. This is
> not how I like to do things, so I went the other way for now.
>
> I seem to have run across documentation that Open Office puts its files
> internally into a XML format. If I could extract the XML directly from the
> .odt file I could do everything from there. Assuming that is true, is there
> an updated copy of https://www.openoffice.org/xml/xml_specification.pdf
> <https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.openoffice.org%2Fxml%2Fxml_specification.pdf&data=02%7C01%7C%7C482eb29f850342906b7608d6121db243%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636716316081442734&sdata=On9HJQQ6lngCY9krxQCHwEa54cHETuTfiJOBwBnew%2BE%3D&reserved=0>
> ? I would hope that whoever is doing the documentation keeps that up to
> date. It will take me at least 20 hours to read that document, but at least
> I will retain most of it the first time.
>
> Howard Morris
>
>
>

Questions: email howard_cary_mor...@hotmail.com

Object: Convert HTML 4 output from Open Office Writer to HTML 5.

Server files:
    index.html  - Passes input file and parameters to server
        Meant to be main file of a directory/folder - may change name
    gen2.php    - Converts file (.html) and downloads output (.hml)
        Could change name, but also change form in index.html corresponingly
        Could change to outputing file to server.
        
Input parameters:
    File to be converted
    Title to show on browser tab
    Width of paper for printing.
        Open Office gives margin size, so use 8.5in for letter sized paper
        Margin used as left/right padding of shown document
    Height of printed paper, when printing document
        Helps place footer on bottom of page for printed documents
        Note that "page setup" for printing modifies maximum height may use.
            (like marginn topand margic 
        Use 'auto' to remove page headers and footers (not meant for printing)
    Font size - default when .html does not specify size
    Font family, as "Arial, Georgia') when .html does not specify
    
Things changed and things not working:

Headers and footers:
    Split into three parts, left, center, and right
        If center changed by ruler, would need manual adjusting.
    Put wherever .html indicates a page break is indicated (and end of 
document).
        page break not indicated when in middle of somthing, like paragraph, 
        For browser, a blue line inserted whereever a page break occurs.
    Insertion of current date not implemented yet
    
<FONT ...> changed to <span ...> where found

"style='...'" changed to "class='...'" mostly
    with appropiate <style> entries added
    
No longer by HTML 5 parameters changed to HTML 5 and/or CSS.

HTML tables need improving (incomplete)

Images are line centered
    Cetering dome mostly for inserted formulas.
    If original image was resized by Open office, new size not passed.
    (Looked at export to xhtml, covered there.)
Table of contents not done yet.

Font outline and shadowing not passed via .html

Plan to cosolidate some <span> elements
        
Notes: Thangs that happen and some things that may need manual fixing:

Headers and footers:
    Split into left, center, and right of page
        When center of page moved by ruler, may need manual adjusting
    Placed at all page breaks noted in .html file
        Page breaks in middle of something, like paragraph, aren't noted
    Where current date should be, not implemented yet
    Hard coded 1/2 blank line after footer, may change
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to