lyx sgmltools docbook Probleme

chuck

Active Member
Hallo Board

Hab mal auf nem Linux mit Lyx Docbook Articel Dokumente erstellt und möchte diese nun unter FBSD weiter bearbeiten. Also hab ich Lyx sgmltools docbook usw aus den ports installiert. Laut Lyx werden nun Dokbook Articel auch unterstützt. Wenn ich nun aber auf ansicht DVI z.Bsp gehe sollter er dann mithilfe von sgmltools eine DVI-Vorschau generieren. Leider Bekomme ich immer folgenden Fehler:
Code:
Traceback (most recent call last):
  File "/usr/local/bin/sgmltools", line 93, in ?
    tool.processFile(curfile)
  File "/usr/local/share/sgml/misc/sgmltools/python/SGMLtools.py", line 230, in processFile
    dssslfile = utils.findStylesheet(stylesheet, self._aliases)
  File "/usr/local/share/sgml/misc/sgmltools/python/utils.py", line 307, in findStylesheet
    return findStylesheet(name, aliases)
  File "/usr/local/share/sgml/misc/sgmltools/python/utils.py", line 317, in findStylesheet
    raise IOError, "Couldn't resolve pubid [%s]" % id
IOError: Couldn't resolve pubid ["-//SGMLtools//DOCUMENT Docbook Style Sheet for Print//EN"]

Habe schon mit den catalog-files rumprobiert ab das sollt nicht das Problem sein.
Kennt eventuell jemand eine lösung????
 
Ich denke nicht, daß es an LyX liegt, sondern an sgmltools-lite, das kommt scheinbar noch nicht mit dem neuen Python 2.4 klar. Schicka mal die Fehelermeldung an den Maintainer des ports sgmltools-lite (Adresse findest Du unter freshports.org) -- würde ich so den Fehlermeldungen entnehmen, und sicherheitshalber noch an den LyX-Maintainer.
Ich teste das gleich mal bei mir.
 
Ich denke nicht, daß es an LyX liegt, sondern an sgmltools-lite, das kommt scheinbar noch nicht mit dem neuen Python 2.4 klar -- würde ich so den Fehlermeldungen entnehmen. Schicke mal die Fehlermeldung an den Maintainer des ports sgmltools-lite (Adresse findest Du unter freshports.org) und sicherheitshalber noch an den LyX-Maintainer.
Ich teste das gleich mal bei mir.

EDIT: Ich habe jetzt sgmltools-lite und die ganzen Docbook-Sachen installiert. Wenn ich bei LyX Bearbeiten => Neu konfigurieren durchlaufen lasse (nachdem ich LyX vom Terminal aus gestartet habe), bekomme ich bzgl. Docbook folgende Meldungen im Terminalfenster:
Code:
+checking for docbook  class docbook-book...  yes
+checking for docbook  class docbook-chapter...  yes
+checking for docbook  class docbook-section...  yes
+checking for docbook  class docbook...  yes
Scheint er also gefunden zu haben.
Dann aber sagt er noch:
Code:
+checking for linuxdoc class linuxdoc...  no
Gehe ich dann aber über Neu => von Vorlage ==> docbook_article.lyx gibt er mir die Fehlermeldung:
Code:
Textklassen-Fehler, das Dokument verwendet die fehlende Textklasse "docbook" ...
Ich bekomme also Docbook gar nicht erstellt. Gehe ich aber über Format => Dokument => Klasse, steht unter Docbook Article UNAVAILABLE.
Welches Docbook braucht man dafür?

Wenn ich sgmltools-lite installiere, sagt er mir am Ende:
Code:
Installation done. Please read POSTINSTALL for 
post-installation instructions; the steps in that 
document are necessary to make SGMLtools-Lite work.
Nur, dieses POSTINSTALL-File finde ich nirgendwo.
 
Zuletzt bearbeitet:
Also in der Anleitung zu Lyx + Docbook steht das folgendes installiert werden sollte/muss:

To produce DocBook documents LyX needs some packages to be installed:

*

DocBook: the following features must be installed to make DocBook usable:
o

The DocBook DTD, that can be dowloaded from DocBook.
o

The ISO entities, that define some standard SGML entities (e.g. >, <, etc.).
o

The Norman Walsh's DocBook DSSSL modular stylesheets.
*

Jade/jadetex
*

SGMLtools-lite (version 3.0)

welche alle in den Ports z finden sind. Und danach dann das hier machen:

LyX Reconfiguration

To reconfigure LyX do as follow:

1.

Start LyX
2.

Reconfigure LyX (Options->Reconfigure)
3.

Exit from LyX
4.

Start LyX again, and open a new document (File->New). If the reconfiguration succeded, the following new document layouts should be available in the Layout->Document->Class list::
*

DocBook article (SGML),
*

DocBook book (SGML),
*

DocBook chapter (SGML),
*

DocBook section (SGML).


Danach waren dann die Docbook Dokumenten-Typen verfügbar.
Linuxdoc lässt sich genauso wie docbook unter ports/textproc finden und installieren. aber die sind eher uninteressant das wäre so als ob ich mir die Stylesheets und dtds für die FreeBSD-Doku installieren wöllte. Will man Linux-Dokus schreiben dann ja ab sonste braucht man die nicht. Ja und diese postinstall findet man wenn man sgmltools mit make baut oder portinstall sagt er soll nach dem bauen kein clean durchführt unter work/sgmltool_x.x.x/. Da steht aber im Prinziep nur drin das man die Pfade für die DTDs und Stylesheets welche installiert sind in eine Umgebunsvarible oder die catalog-Konfigurationsdatei schreiben soll. Die Pfad stehen aber alle in der catalog-Datei. Das sollte nicht das Problem sein. Habe aber auch mal die Umgebungsvariable gesetzt was aber auch nicht zumm erfolg führte.
 
Hm, ich habe soweit alles installiert, es klappt aber immer noch nicht. Sollte ich ein Paket vergessen haben?
Code:
pkg_info | grep docbook
docbook-241_2       V2.4.1 of the DocBook DTD, designed for technical documenta
docbook-3.0_2       V3.0 of the DocBook DTD, designed for technical documentati
docbook-3.1_2       V3.1 of the DocBook DTD, designed for technical documentati
docbook-4.0_2       V4.0 of the DocBook DTD, designed for technical documentati
docbook-4.1_2       V4.1 of the DocBook DTD, designed for technical documentati
docbook-sk-4.1.2_3  XML version of the DocBook DTD version controlled for Scrol
docbook-xml-4.2_1   XML version of the DocBook DTD
docbook-xsl-1.68.1  XSL DocBook stylesheets
dsssl-docbook-modular-1.79,1 DSSSL stylesheets for the DocBook DTD by Norman Walsh
sdocbook-xml-4.1.2.5_2 "Simplified" DocBook XML DTD
sgmlformat-1.7_2    Generates groff and HTML from linuxdoc and docbook SGML doc
Oder sind das zu viele Formate von Docbook? Sollte eines ausreichen?
 
Hm also Docbook ist ok. ist schon richtig das das so viele sind. Ist bei mir auch so.

Code:
docbook-1.3         Meta-port for the different versions of the DocBook DTD
docbook-241_2       V2.4.1 of the DocBook DTD, designed for technical documenta
docbook-3.0_2       V3.0 of the DocBook DTD, designed for technical documentati
docbook-3.1_2       V3.1 of the DocBook DTD, designed for technical documentati
docbook-4.0_2       V4.0 of the DocBook DTD, designed for technical documentati
docbook-4.1_2       V4.1 of the DocBook DTD, designed for technical documentati
docbook-sk-4.1.2_3  XML version of the DocBook DTD version controlled for Scrol
docbook-xml-4.2_1   XML version of the DocBook DTD
docbook-xsl-1.68.1  XSL DocBook stylesheets
dsssl-docbook-modular-1.79,1 DSSSL stylesheets for the DocBook DTD by Norman Walsh
sdocbook-xml-4.1.2.5_2 "Simplified" DocBook XML DTD

Hab aber auch nichts weiter gemacht als wie hier steht. Mehr sollte nicht zu machen sein. Zumindest hab ich mich an diese Anleitung gehalten.
 
Welcher Port ist denn mit
The ISO entities, that define some standard SGML entities (e.g. >, <, etc.).
gemeint?
 
Damit ist /usr/ports/textproc/iso8879/ gemeint. Eventuell auch noch der zweite iso12083. Bei dem ersten weis ich es. Hab ich irgendwo in einer Milinglist zum Thema gefunden.
 
Das zweite war's! Es installiert alle möglichen *.dtd-Files, u.a. article, book usf.
Jetzt bekomme ich dieselbe Fehleranzeige, also ist das Ganze wiederholbar.
Fein, kommen wir zum Anfang zurück, irgendeine Python-Geschichte, er sagt ja sehr deutlich:

Code:
Traceback (most recent call last):
  File "/usr/local/bin/sgmltools", line 89, in ?
    tool = SGMLtools(autoconf)
  File "/usr/local/share/sgml/misc/sgmltools/python/SGMLtools.py", line 69, in __init__
    exec cmd
  File "<string>", line 1, in ?
  File "/usr/local/share/sgml/misc/sgmltools/python/backends/Dvi.py", line 26, in ?
    from utils import registerTemp
ImportError: cannot import name registerTemp

Autoconf (wieder mal) und scheinbar das neue Python. Heißt es also, an den Maintainer zu schreiben.
 
Zuletzt bearbeitet:
Zurück
Oben