1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./style.css" />
6 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./design.css" />
7 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"./print.css" />
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
13 <h1 id=
"styleguide">Style Guide
</h1>
15 <div class=
"notewarning">This is definitely a work in progress.
18 All documentation is eventually going to be made available as both HTML and PDF.
<br/>
20 The problem is to convert the gEDA wiki
's Dokuwiki-pages (i.e., XHTML) into a format that can be converted into PDF.
<br/>
22 The ideal path would be to use the pavuk application to mine the gEDA wiki, converting the XHTML wiki-pages into HTML pages, and then use the HTMLDOC application to convert the HTML pages to PDF.
<br/>
28 <h2 id=
"downloadinginstallingpavuk">Downloading/Installing pavuk
</h2>
32 pavuk is a function-testing, performance-measuring, site-mirroring, web spider that is widely portable and capable of using scenarios to process a wide range of web transactions, including ssl and forms.
<br/>
34 pavuk is hosted on SourceForge at http://sourceforge.net/projects/pavuk. Simply check if your distribution already includes the latest version of pavuk (pavuk-
0.9.34 used for the current wiki), and download/install if necessary.
<br/>
36 pavuk comes as an RPM, a tar-ball, and a compressed tar-ball. Don
't install from the RPM, as this uses dated library dependencies and may not build on newer distributions.
<br/>
38 pavuk has both a command-line interface and a GUI interface.
43 <h2 id=
"downloadinginstallinghtmldoc">Downloading/Installing HTMLDOC
</h2>
47 HTMLDOC converts HTML files and web pages into indexed HTML, PostScript, and PDF files suitable for on-line viewing and printing.
<br/>
49 HTMLDOC is hosted at http:
<em>www.easysw.com/htmldoc/, and may be downloaded/installed under the open-source license for non-commercial applications. Simply check if you distribution already includes HTMLDOC version htmldoc-
1.8-
27 or later, and install as appropriate. Note that RPM distributions are available, so that your normal package install/update utilities may already contain HTMLDOC (e.g., htmldoc-
1.8.27 is in Fedora Core
4 extras repository and may be installed using yum).
<br/>
51 HTMLDOC version htmldoc-
1.8.26 is broken, it will not generate appropriate PDF documents.
<br/>
53 Note one limitation of HTMLDOC. It is based on HTML
3.o, not HTML
4.01. Many HTML
4.01 tags are not recognized by HTMLDOC.
<br/>
55 HTMLDOC is both a GUI application and a command-line application. Use it as you feel most comfortable.
57 ===== For both existing and new documents =====
58 The following are meant to stimulate discussion on document style:
59 - Consider that the document may be exported for inclusion in tool manuals as XHTML and/or PDF. Examples:
60 * http://www.geda-project.org/wiki/?do=export_raw will generate the gEDA Project Wiki
's start page as plain text.
61 * http://www.geda-project.org/wiki/?do=export_xhtml will generate the gEDA Project Wiki
's start page as valid XHTML. Simply use your browser to
"Save Page As...
", and name the file {filename}.html. Note that the URLs in this file are NOT relative to this file, but are as they would be found on the gEDA Project Wiki.
62 * http://www.geda-project.org/wiki/?do=export_xhtmlbody will generate the gEDA Project Wiki
's start page as valid rendered XHTML. Simply use your browser to
"Save Page As...
", and name the file {filename}.html. Note that the URLs in this file are NOT relative to this file, but are as they would be found on the gEDA Project Wiki.
63 * The following sequence of commands will retreive a gEDA Project Wiki page (for a list of the gEDA Project Wiki
's pages, use the Index button at the bottom of the page) from the
"geda
" namespace (when new wiki-pages are created, we
<em class=
"u">explicitly
</em> create them in the
"geda
" namespace) and convert that page into a PDF document:
<br/>
64 <code
>% wget --convert-links -O {page-name}.wget
"http://www.geda-project.org/wiki/geda:{page-name}?do=export_html
"
65 % sed -e
's/\
&amp;/\
&/g
' {page-name}.wget
> {page-name}.sed
66 % iconv -f utf-
8 -t iso-
8859-
1 {page-name}.sed
> {page-name}.iconv
67 % htmldoc {page-name}.iconv -t pdf14 --webpage --no-title --linkstyle underline --size letter --left
1.00in
<br/>
69 --right
0.50in --top
0.50in --bottom
0.50in --header .t. --footer . --nup
1 --tocheader .t. --tocfooter ..i
<br/>
71 --portrait --color --no-pscommands --no-xrxcomments --compression=
1 --jpeg=
0 --fontsize
11.0 --fontspacing
1.2 <br/>
73 --headingfont Helvetica --bodyfont Times --headfootsize
11.0 --headfootfont Helvetica --charset iso-
8859-
1 <br/>
75 --links --no-embedfonts --pagemode document --pagelayout single --firstpage p1 --pageeffect none
<br/>
77 --pageduration
10 --effectduration
1.0 --no-encryption --permissions all --owner-password
""
78 --user-password
"" --browserwidth
680 -f {page-name}.pdf
</code
> <br/>
79 where
<strong><code>{page-name}
</code></strong> is the wiki
's page name as seen in the upper-left corner of the wiki.
81 For example, you would replace {page-name} above with the following for the related wiki-page:
82 * start -- The wiki
's main page, at http://wiki.geda-project.org.
83 * geda:style_guide -- This wiki-page, at http://www.geda-project.org/wiki/geda:style_guide.
84 * geda:faq -- The wiki
's FAQ page, at http://www.geda-project.org/wiki/geda:faq
86 A
<a href=
"geda-samplescript.html" class=
"wikilink2" title=
"geda-samplescript.html">sample script
</a> [FIXME] to convert a single wiki-page into a PDF document.
<br/>
88 A
<a href=
"geda-samplescript.html" class=
"wikilink2" title=
"geda-samplescript.html">sample script
</a> [FIXME] to convert multiple wiki-pages into a single PDF document.
90 An example of the current (as of
08 May
2006) version of the Wiki, converted to PDF[FIXME: broken link].
92 ===== For new documents: =====
93 The following are meant to stimulate discussion on document style:
94 - You must
"own
" all content in the document. If you do not
"own
" the content, you must get explicit permission from the
"owner
" to copy the content to the gEDA Project Wiki (see below). Documents on the gEDA Project Wiki should be stand-alone, in the event the source document web-site disappears.
95 -
<strong>All
</strong> document contents are to be hosted on the gEDA Project Wiki. Images and other media files are to be uploaded to the wiki, and linked to. Do NOT link to external sites unless absolutely necessary.
96 - All documents are to be maintained in the
"geda
" namespace. If your document would take advantage of a separate namespace, ask Ales if
"geda:sub-namespace
" is acceptable. This would be appropriate for very large documents with multiple chapters and lots of images. Such a namespace structure would allow the document to be
"broken
" into chapters for easier navigation by the user (see Index [FIXME: broken link] for more details).
98 ===== For existing documents: =====
99 The following are meant to stimulate discussion on document style: