Docbook problem
Giorgos Keramidas
keramida at ceid.upatras.gr
Sat Apr 1 16:48:39 EEST 2000
On Sat, Apr 01, 2000 at 02:59:26PM +0300, JK wrote:
| Geia xara.
|
| Exw metafrasei tin tekmiriwsi toy KIllustrator, alla den mporw na metatrepsw
| to docbook se html, xml, ps i otidipote allo, ki afto giati den kserw
| pws na enimerwsw to jade gia ta DTDs kai Stylesheets poy erxontai
| me ta ksgmltools.
| Genika to palevw to zitima, kai nomizw oti vriskomai se kalo dromo, alla tha
| ektimoysa aperiorista ti voithia kapoioy poy na kserei pws na rythmisei
| ena systima SGML
Prepei na peirakseis to catalog-file gia na peis sto jade pou na briskei
ta SGML document type descriptions sou. P.x. sto diko mou catalog file
exei:
$ more /usr/local/share/sgml/docbook/catalog
CATALOG "2.4.1/catalog"
CATALOG "3.0/catalog"
CATALOG "3.1/catalog"
Ta catalog files gai to kathe docbook ta exei to distribution tou
docbook, opws to katebazeis se .tar.gz :)
To pou na briskei catalog files to jade to dineis me -c parametrous,
otan to trexeis:
% jade -c /usr/local/share/sgml/docbook/catalog
To epomeno pragma pou thelei na jerei to jade einai pou brisketai to
docbook-stylesheets, wste na parei ta DSSSL arxeia pou tha tou poun pos
na metatrepsei to sgml -> output format. P.x. an exeis balei ta
docbook-stylesheets kai ta .dsl arxeia tous sto path
/usr/local/share/sgml/stylesheets theleis tin parametro:
% jade -d /usr/local/share/sgml/docbook/dsssl
Mia alli endiaferousa parametros tou jade einai h -t:
% jade -t sgml
To plhres command line otan metatrepo kati apo docbook se html einai gia
mena:
% jade -c /usr/local/share/sgml/docbook/catalog \
-d /usr/local/share/sgml/docbook/dsssl/modular/html/docbook.dsl \
-t sgml \
article.sgml > article.html
Bebaia, gia na min palaboseis na grafeis OLA auta ta options, kane kana
Makefile, na ta grafei auto na se jekourazei :-)
p.x., apo ena palio mou backup, brhka to ejhs:
.SUFFIXES: .sgml .html
JADE_CATALOG= -c /usr/local/share/sgml/docbook/catalog
JADE_STYLE= -d /usr/local/share/sgml/docbook/dsssl/modular/print/docbook.dsl
OFORMAT= -t sgml
.sgml.html:
$(JADE) $(JADE_CATALOG) $(JADE_STYLE) $(OFORMAT) $< > $@
article.html: article.sgml
den einai kai polu palabo makefile, alla mia idea mporei na pareis...
- Giorgos Keramidas
More information about the Linux-howto
mailing list