[FM Discuss] html tidy implemented
Martin Kean
Martin.Kean at op.ac.nz
Mon Jan 10 15:13:49 PST 2011
Awesome! A great help.
________________________________________
From: discuss-bounces at lists.flossmanuals.net [discuss-bounces at lists.flossmanuals.net] On Behalf Of adam hyde [adam at flossmanuals.net]
Sent: Tuesday, 11 January 2011 7:22 a.m.
To: discuss at lists.flossmanuals.net
Subject: [FM Discuss] html tidy implemented
hi
The new Objavi is much more sensitive to html tags than Objavi 1...so
the html source of chapters should be as clean as possible...for
example, in the old objavi it would ignore the BR in this:
<P>some para</P>
<BR>
the new objavi puts an extra line at the BR as it should but this can
look ugly in the final pdf.
so i just added htmltidy to the editor interface. if you click the
little brush icon in the editor you get a choice for some clean up
options:
General tidy up and correction of some problems.
Clean bad HTML from Microsoft Word
Remove custom typefaces (font "styles").
Remove custom font sizes.
Remove custom text colors.
Remove lang attributes.
Replace directional quote marks with non-directional quote marks.
the first option runs htmltidy with the following options:
'char-encoding' => 'utf8',
'_output' => 'warn',
'indent' => 'auto',
'wrap' => 9999,
'break-before-br' => 'y',
'bare' => 'n',
'word-2000' => 'n',
'drop-empty-paras' => 'y',
'enclose-text' => 'y',
'drop-font-tags' => 'n',
'show-body-only' => 'y',
'uppercase-tags' => 'y',
to know what these are please look at:
http://tidy.sourceforge.net/docs/quickref.html
the other options more or less do as they say...good for cleaning up
junk in the source of any chapter...especially if it was copied and
pasted from a webpage somewhere...
adam
--
vote for booki in the Open Web Awards!
Booki (the latest FM project - http://www.booki.cc - a collaborative
publishing platform) is in the final of the Open Web Awards.
Great! We are 1 of 3 projects. If we win we get 5000 which we will use
to do a code sprint on a tropical island somewhere ;)
please please please register :
http://www.drumbeat.org/user/register
and vote for us by visiting this page and clicking on the 'vote' link (top right):
http://www.drumbeat.org/project/open-web-publishing
and pass this around!!!! :)
Adam Hyde
Founder FLOSS Manuals &
Booki Project Manager
Contact Information
German mobile : + 49 177 4935122
Email : adam at flossmanuals.net
irc : irc.freenode.net #flossmanuals
"Free manuals for free software"
http://www.flossmanuals.net/about
Free Software for making Free Books
http://www.booki.cc/
_______________________________________________
Discuss mailing list
Discuss at lists.flossmanuals.net
http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net
______________________________________________________________________________
This email has been scrubbed for your protection by SMX.
For more information visit http://smxemail.com
______________________________________________________________________________
More information about the Discuss
mailing list