Makefile a html-hez. A verbatim m?dok elk?sz?t?se.
1.1 --- a/doc-docbook/src/Makefile Mon Feb 23 19:02:16 2004 +0000
1.2 +++ b/doc-docbook/src/Makefile Tue Feb 24 16:36:02 2004 +0000
1.3 @@ -3,8 +3,7 @@
1.4 .PHONY: html dvi ps pdf tex dist
1.5
1.6 html:
1.7 - mkdir -p ../html
1.8 - docbook2html -o ../html xml/etik-ol.xml
1.9 + docbook2html -o html -d etik-ol-html.dsl xml/etik-ol.xml
1.10
1.11 dvi:
1.12 docbook2dvi -o .. xml/etik-ol.xml
2.1 --- a/doc-docbook/src/etik-ol-html.dsl Mon Feb 23 19:02:16 2004 +0000
2.2 +++ b/doc-docbook/src/etik-ol-html.dsl Tue Feb 24 16:36:02 2004 +0000
2.3 @@ -95,6 +95,11 @@
2.4 (make element gi: "TH" (literal "Description"))
2.5 (process-children)))))
2.6
2.7 +(element (etik:example etik:code)
2.8 + ($verbatim-display$
2.9 + #f ;; mivel indentaljon
2.10 + #f)) ;; legyen-e sorszamozas
2.11 +
2.12
2.13 </style-specification-body>
2.14 </style-specification>
3.1 --- a/doc-docbook/src/etik-ol.dtd Mon Feb 23 19:02:16 2004 +0000
3.2 +++ b/doc-docbook/src/etik-ol.dtd Tue Feb 24 16:36:02 2004 +0000
3.3 @@ -22,7 +22,11 @@
3.4 <!ELEMENT etik:name (#PCDATA)*>
3.5 <!ELEMENT etik:category (#PCDATA|xref)*>
3.6 <!ELEMENT etik:description (#PCDATA|para|xref)*>
3.7 -<!ELEMENT etik:example (#PCDATA|para|programlisting|xref)*>
3.8 +<!ELEMENT etik:example (#PCDATA|para|programlisting|xref|etik:code)*>
3.9 +
3.10 +
3.11 +<!ELEMENT etik:code CDATA>
3.12 +
3.13 <!ELEMENT etik:definition (#PCDATA|xref)*>
3.14
3.15 <!ELEMENT etik:template_params (etik:template_param+)>
3.16 @@ -32,7 +36,7 @@
3.17 etik:templ_requirement,
3.18 etik:templ_default)>
3.19
3.20 -<!ELEMENT etik:templ_name (#PCDATA)*>
3.21 +<!ELEMENT etik:templ_name CDATA>
3.22 <!ELEMENT etik:templ_description (#PCDATA|xref)*>
3.23 <!ELEMENT etik:templ_requirement (#PCDATA|xref)*>
3.24 <!ELEMENT etik:templ_default (#PCDATA|xref)*>
3.25 @@ -43,7 +47,7 @@
3.26 etik:m_description)>
3.27
3.28
3.29 -<!ELEMENT etik:m_name (#PCDATA)*>
3.30 +<!ELEMENT etik:m_name CDATA>
3.31 <!ELEMENT etik:m_where_def (#PCDATA|xref)*>
3.32 <!ELEMENT etik:m_description (#PCDATA|xref)*>
3.33
4.1 --- a/doc-docbook/src/xml/etik-ol.xml Mon Feb 23 19:02:16 2004 +0000
4.2 +++ b/doc-docbook/src/xml/etik-ol.xml Tue Feb 24 16:36:02 2004 +0000
4.3 @@ -1,12 +1,9 @@
4.4 <?xml version='1.0' encoding='iso-8859-2'?>
4.5 -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4.6 - "/usr/share/sgml/docbook/dtd/xml/4.2/docbookx.dtd" [
4.7 -
4.8 +<!DOCTYPE book SYSTEM "../etik-ol.dtd" [
4.9 <!ENTITY % filelist SYSTEM "filelist.xml">
4.10 %filelist;
4.11 ]>
4.12
4.13 -
4.14 <book lang="en" id="etik-ol">
4.15
4.16 <title>Etik-ol Documentation</title>
4.17 @@ -65,4 +62,4 @@
4.18
4.19 &fdl;
4.20
4.21 -</book>
4.22 \ No newline at end of file
4.23 +</book>
5.1 --- a/doc-docbook/src/xml/graph-classes.xml Mon Feb 23 19:02:16 2004 +0000
5.2 +++ b/doc-docbook/src/xml/graph-classes.xml Tue Feb 24 16:36:02 2004 +0000
5.3 @@ -1,7 +1,8 @@
5.4 <chapter id="graph-classes">
5.5 <title>Graph Classes</title>
5.6
5.7 - <para>Valami leiras mondjuk a hierarchiarol.</para>
5.8 + <para>Valami leiras mondjuk a hierarchiarol, vagy barmi altalanos, ha kell.
5.9 + </para>
5.10
5.11 &osztaly-forma;
5.12
6.1 --- a/doc-docbook/src/xml/osztaly-forma.xml Mon Feb 23 19:02:16 2004 +0000
6.2 +++ b/doc-docbook/src/xml/osztaly-forma.xml Tue Feb 24 16:36:02 2004 +0000
6.3 @@ -27,14 +27,27 @@
6.4 }
6.5 };
6.6
6.7 -
6.8 void lookup(const map_type& Map, const char* str)
6.9 {
6.10
6.11 }
6.12
6.13 </programlisting>
6.14 - </etik:example>
6.15 +
6.16 +Vigyázat, a programlisting mód parsolt, és minden <![CDATA[<]]>-t értelmez!
6.17 +Előnye, hogy lehet bele linkeket csinálni, de talán kényelmesebb egy LaTeX-szerű
6.18 +verbatim-mód, ezt valósítja meg az <![CDATA[<etik:code>]]> element.
6.19 +
6.20 +<etik:code>
6.21 + int _i=1;
6.22 + int _ii=1;
6.23 + ListGraph::EdgeMap<int> my_edge_property(G);
6.24 + for(EachEdgeIt i=G.first<EachEdgeIt>(); i.valid(); ++i) {
6.25 + my_edge_property.set(i, _i);
6.26 + _i*=_ii; ++_ii;
6.27 + }
6.28 +</etik:code>
6.29 +</etik:example>
6.30
6.31 <etik:definition>
6.32 Ez a definition szekcio arra van, hogy beleirjuk, hogy milyen fajlban