David Abrahams wrote:
Rene Rivera <[EMAIL PROTECTED]> writes:
Of course if we had a group of volunteers to translate all the
documentation to QuickBook or BoostBook, as I did for the bjam docs,
then it would alter the landscape :-)
Can't we go pretty far with automated translation? The result might
not have all the semantic niceties we'd like, but it would be a start
and would not have to lose any information... I think (?)
Well if you just want it "look" like QuickBook try saving the attached
boost.css over an existing one, like the one at boost-root, and looking
at a page that uses it, like the Boost.Regex docs. It's a gag only of
course ;-) [**] But sure if someone has an HTML renderer handy they can
subvert to quickly translate into QuickBook that would be a huge start.
...
Upon a bit of trying it out... It looks like the newest Opera has just
such a render. If you look at such pages, like the Boost.Regex docs in
the latest Opera and then have it save the page as text it saves all
that nice QuickBook content the CSS inserts. So how's that for a quick
translation, pun intended :-)
[**] It will only work on modern browsers.
--
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
body {
background: white;
}
body, body * {
border: none;
margin: 0em;
padding: 0em;
text-indent: 0em;
color: black;
font-size: 9pt;
font-weight: normal;
font-style: normal;
text-decoration: none;
font-family: monospace;
}
a {
color: gray;
}
h1, h2, h3, h4, h5, h6, p, pre, dl, ul, blockquote {
margin-top: 1em;
}
body:before {
content: "[document-type Title [quickbook 1.3]] [section Top]";
}
h1:before, h2:before, h3:before, h4:before, h5:before, h6:before {
content: "[endsect] [section ";
}
h1:after, h2:after, h3:after, h4:after, h5:after, h6:after {
content: "]";
}
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {
display: none;
}
dl:before { content: "[variablelist "; } dl:after { content: "]"; }
dt:before { content: " [["; } dt:after { content: "]]"; }
dd:before { content: "["; } dd:after { content: "]"; }
pre:before { content: "[pre \A"; } pre:after { content: "\A]"; }
i:before { content: "['"; } i:after { content: "]"; }
b:before { content: "[*"; } b:after { content: "]"; }
u:before { content: "[_"; } u:after { content: "]"; }
tt:before { content: "[^"; } tt:after { content: "]"; }
code:before { content: "[^"; } code:after { content: "]"; }
br:before { content: "[br]"; }
q:before { content: "[\""; } q:after { content: "]"; }
blockquote > li:before { content: "* "; }
ol > li:before { content: "# "; }
ul > li:before { content: "* "; }
blockquote:before { content: "[:"; } blockquote:after { content: "]"; }
table { display: block; }
tr { display: block; }
td { display: inline; }
th { display: inline; }
table:before { content: "[table []"; } table:after { content: "]";}
tr:before { content: "["; } tr:after { content: "]";}
td:before { content: "["; } td:after { content: "]";}
th:before { content: "["; } th:after { content: "]";}
form { display: none; }