[sw-dev] full CSS & HTML5 support in "Save As"->"HTML" ?
Hi - this is my first post to this list, sorry if it is the wrong place,
but I gather my initial post to the "Writer Community Forum" @
http://user.services.openoffice.org/en/forum/viewtopic.php?f=7&t=41683&sid=e0623b280a0d6461fc007da81f4ee3f5
was the wrong place - so here is the post :
Hi -
I want to be able to create and maintain HTML files which retain and maintain use of CSS from an original HTML
document import .
So if I import a document like :
Code: Select all Expand view
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Import HTML Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta name="author" content="JVD"/>
<style type="text/css">
@page { size: 216mm 279mm;
margin: 12mm;
}
body { margin: 8mm;
width: 180mm;
font-family: "Gill Sans", "Gill Sans MT", "Garrison Sans", "Bauhaus", "Arial", "Verdana",
"Helvetica", sans-serif, sans;
font-size: 10pt;
font-style: normal;
font-weight: normal; text-align: justify; text-decoration: none;
background: #FFFFFF;
color: #000000;
text-align: center;
}
p { margin: +4mm; text-align : justify; }
</style>
</head>
<body>
<h3>Heading - left indent here should be 20mm and this should be centered </h3>
<p>This paragraph should be justified and its left indent should be 24mm.</p>
</body>
</html>
OOO-writer seems to import this OK cosmetically - but if I make any change, for instance
I modify style "Paragraph" so that "Gill Sans" is removed from the font face list , or increase
the "Paragraph" style indent, then OOO-writer comments out my '<style><!-- --></style>'
section and encloses every paragraph text in a '<FONT ...>...</FONT>' tag , so I loose
my original style sheet settings and render the document horrible to edit in a text editor .
Is an OOO-writer HTML5+ compatible plugin that retains and is able to write CSS style sheets
to reflect OOO "Style" item changes feasible or on the cards ?
If not, I intend to develop one.
Thanks in advance for any responses, & Regards,
Jason
OpenOffice 3.3 linux
JVD
Posts: 2
Joined: Sat Jun 11, 2011 4:38 pm
Top
Re: full CSS + HTML5 support in "Save As"->"HTML" ?
Postby TheGurkha » Sat Jun 11, 2011 6:32 pm
The ability of OOo to usefully edit HTML is pretty poor IMHO. I wouldn't recommend it at all. I use a dedicated
tool such as KompoZer.
Ubuntu 11.04 Natty, LibO 3.3.2 (330m B:202)
OOo Portable 3.2.0 (320m12 B:9483)
Gurkha Welfare Trust
User avatar
TheGurkha
Moderator
Posts: 6093
Joined: Thu Mar 13, 2008 12:13 pm
Location: North Wales, UK.
Top
Re: Full CSS + HTML5 support in "Save As"->"HTML" ?
Postby JVD » Sat Jun 11, 2011 7:18 pm
Re: full CSS + HTML5 support in "Save As"->"HTML" ?
Postby TheGurkha » Sat Jun 11, 2011 6:32 pm
The ability of OOo to usefully edit HTML is pretty poor IMHO. I wouldn't recommend it at all. I use a dedicated
tool such as KompoZer.
Thanks for your response ! I will check out KompoZer .
But I prefer writing HTML generators myself with CGI programs / PERL + mod_perl + HTML::Mason for web
development .
For non-web development documents , eg. for my CV, I have my own "simplified markup language" (like
"intelligent troff") parsed by my own PERL script
that can emit DocBook XML + XSL , or HTML / XHTML + CSS .
It is really, really great the way OOO can load one of the HTML files produced by xsltproc from the DocBook
source or my own HTML + CSS , and export
the document to PDF or MS-Word so that cosmetically it looks exactly like the printed document .
But if a document is loaded from an HTML file , and saved in HTML format, then I think OOO should have more
respect for the CSS that it evidently is able
to parse successfully , rather than simply commenting it out .
I'd be interested in re-writing the OOO HTML 'Save As' plugin to do this - also as a way of refreshing my Java
skills - and also upgrade it to support HTML5 -
unless people think this would be a waste of time / is already being done ?
OpenOffice 3.3 linux
JVD
Posts: 2
Joined: Sat Jun 11, 2011 4:38 pm
Top
Re: Full CSS + HTML5 support in "Save As"->"HTML" ?
Postby TheGurkha » Sat Jun 11, 2011 8:28 pm
We're not the developers, just users trying to help other users. The developers don't hang out here.
Ubuntu 11.04 Natty, LibO 3.3.2 (330m B:202)
So do the developers hang out here ?
I'd be most grateful for their ideas on the above .
I have compiled OpenOffice before using gcc / g++ + Sun J2EE / gcj / OpenJDK , and would like to
understand how big a job the above might be . If it is already parsing the CSS, as it seems to be,
I can't imagine why this would be such a huge job .
Thanks in advance for any responses,
Jason ( JVD ) <jason.vas.dias@...>
--
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscribe@...
For additional commands send email to sympa@...
with Subject: help