Home
Name Modified Size InfoDownloads / Week
ReadMe.txt 2018-10-13 3.4 kB
index.html 2018-10-13 5.2 kB
Gen2.php 2018-10-13 27.4 kB
Totals: 3 Items   36.0 kB 0
Questions: email Howard_Cary_Morris@hotmail.com



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



Server files:

	index.html  - Passes input file(s) and parameters to server

		Meant to be main file of a directory/folder - you may change name

		May also use optional .xhtml file passed for more accurate information

	gen2.php    - Converts file (.html) and downloads output file (.hml)

        	You could change name, but would need to change form in index.html corresponingly

		You could change to outputing .html file to your server (save a step).


Input parameters:
	File to be converted (.html created by Open Office writer)

	Title to show on browser tab

	Width of paper for printing.
		Use 8.5in for letter sized paper

			* If optional .xhtml file passed, this parameter is ignored

		Margin is in .html file, used for 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 margin top and bottom)
		Use 'auto' to remove page headers and footers (document not meant for printing)

	Font size - default when .html does not specify size

		if only one font size used in document, it will override value

	Font family, as "Arial, Georgia') when .html does not specify

		if only one font family used in document, it will override value

	Optional .xhtml file (exported from Open office) for better conversion.

		Gets correct page width from file

		Finds correct display sizes for any images (pictures) to be included
		(In case you resized a picture included in Open Office Document.)


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.
	Not handling <span> well currently

	Put wherever .html indicates a page break is indicated (and end of document).

		Page break is not indicated when in middle of somthing, like paragraph.

		You could change document to avoid this problem.

		For browser, a blue line inserted whereever a page break occurs.

	Insertion of current date not implemented yet (part of code is there)
	Hard coded blank line after header, may need to change.


<FONT ...> changed to <span ...> where found



"style='...'" changed to "class='...'" mostly

	with appropiate <style> entries added


No longer valid for HTML 5 parameters changed to HTML 5 and/or CSS.

	Not completely implemented yet.



HTML tables need improving (incomplete)
	Border color attribute in <table> ignored for now (defaults to black)



Images are line centered
	Centering done mostly for inserted formulas.
	If original image was resized by Open office, new size not passed

		unless optional xhtml file passed

Table of contents not done yet.


Font outline and shadowing not passed via .html



<span><span>....</span></span> consolidated to <span>....</span> (classes merged)


<span class='A B'>..part 1..</span><span class='A B'>..part 2..</span> colsolidated to
	<span class='A B'>..part 1....part 2..</span>


Images: .html creates files, .xhtml creates image as part of file.
	Prefer files, takes less total disk space. Do not think other method saves that much load time.
Source: ReadMe.txt, updated 2018-10-13