![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2008-02-07 at 08:00 +0100, Thomas Schraitle wrote: ...
Well, as I wrote, you have to convert your SGML file into XML first,
I did. I said I did. I'm doing the test both with XML and SGML, and both fail. Look again: cer@nimrodel:~/lyx> file testing_manpage.xml testing_manpage.xml: XML <======= cer@nimrodel:~/lyx> DB=/usr/share/xml/docbook/stylesheet/nwalsh/current/ cer@nimrodel:~/lyx> xsltproc $DB/manpages/docbook.xsl testing_manpage.xml Erro: no refentry: No refentry elements found in "lyx - A Docume lyx - A Document Processor cer@nimrodel:~/lyx>
otherwise the method doesn't work. You can install the "opensp" package and run the osx command (or sgml2xml). This should convert your DocBook SGML file into DocBook XML. Well, at least in theory, I didn't try it. ;)
SGML is still in use, but new methods and tools are implemented mostly for XML, not SGML. I tried LyX some year ago, so I can't say for sure. However, in my perspective, I would better recommend a "real" *XML editor*, like Emacs, jEdit, ...
Never. The whole point is to produce the output not having to look at a single line of "code". XML is like code to me. That would be as bad as learning troff and generating the man page there. I want a GUI to translate man pages to Spanish: I'm not the coder, just the translator. And I want to avoid working with text looking like code. I would use OpenOffice if I could. I want to mark something as "tittle" and see it display in bold. Not to write <bold> and having to decipher what it means. That's fine for you coders, but not for plain people. :-P
Show us the code, please! :)
Ok, I redid the man to a few lines. The file converts in LyX perfectly to a .dvi or .ps (not pdf(latex)), but the xml is bad - and I have tried many combinations. Remember I know nothing about latex, sgml, xml, or even trof. Here goes the LyX text: +++ #LyX 1.5.1 created this file. For more info see http://www.lyx.org/ \lyxformat 276 \begin_document \begin_header \textclass docbook-book \options title="LyX" sectnum="1" \language english \inputencoding default \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize 10 \spacing single \papersize default \use_geometry false \use_amsmath 1 \use_esint 0 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth -1 \tocdepth -1 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author "" \end_header \begin_body \begin_layout Section Name \end_layout \begin_layout Standard manu - A man page test \end_layout \begin_layout Section Synopsis \end_layout \begin_layout Standard manu [ command-line switches] [name.lyx ... ] \end_layout \begin_layout Section Description \end_layout \begin_layout Standard \emph on manu \emph default is too simple to write about. \end_layout \begin_layout Section Options \end_layout \begin_layout Standard \emph on manu \emph default supports the following command-line switches: \end_layout \begin_layout Description - -help summarizes manu usage \end_layout \end_body \end_document ++- And converted by LyX to XML: +++ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> <!-- XML file was created by LyX 1.5.1 See http://www.lyx.org/ for more information --> <book lang="en_US" title="LyX" sectnum="1"> <sect1> <title>Name</title> <para>manu - A man page test</para></sect1><sect1> <title>Synopsis</title> <para>manu [ command-line switches] [name.lyx ... ] </para></sect1><sect1> <title>Description</title> <para><emphasis>manu</emphasis> is too simple to write about.</para></sect1><sect1> <title>Options</title> <para><emphasis>manu </emphasis>supports the following command-line switches: </para><variablelist> <varlistentry><term>-help</term><listitem><para>summarizes manu usage</para></listitem></varlistentry></variablelist></sect1></book> ++- The original LyX example I used was named "linuxdoc_manpage.lyx" (came with lyx-1.3.4). There is no such example in current LyX. #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass manpage \options title="LyX" sectnum="1" ... And the first problem is that class "manpage" does not exists, so I had to tell it to use "textclass docbook" instead, which I don't know if it is correct, nor do I know if the resulting layout is correct. I have no howto, book, guide, whatever, to guide me. I'm going blind. And believe me, I googled. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHqvAmtTMYHG2NR9URAtR7AJ9iBAX3rsRb+HCJVBTnlVywIVbGKgCfbwde Cmn6dwNNrM2IpiFhrJI1/Ik= =sAOC -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org