Hi,
        I send a patch with my last changes to docbook.

        It correct some problems with the code layout,
where the "special" chars <,>,&,|... where translated
and they shouldn't.

        Also if the graphics have an .eps extension
it is stripped. The advantage is that sgmltools adds
the correct extension depending on the backend:

    - eps for jadetex (-> dvi)
    - gif for html

    Of course, those values are customizable, but you get
the idea.

        The preview option works great, at least for me,
both with dvi and ps. :-)

        The only remaining tasks are:

        _ An example file will follow tomorrow.
          The basic skeleton is not intuitive.

        _ tables.

        _ the initial setup.
        I didn't understood your last changes Lars,
the docbook layout shouldn't be the only to output
docbook sgml. Equally plausible should be:

        * docbook_manpage.layout
        * docbook_book.layout

        So I think it better to have a special syntax
for docbook based layouts.
        
-- 
José
diff -p -N -r -U 4 -X excl.tmp lyx-1_0_x/config/lib_configure.m4 
lyx-1_0_4/config/lib_configure.m4
--- lyx-1_0_x/config/lib_configure.m4   Tue Feb 16 15:04:18 1999
+++ lyx-1_0_4/config/lib_configure.m4   Fri Aug 20 10:22:13 1999
@@ -217,9 +217,9 @@ else
   fax_command="none"
 fi
 
 # Search for LinuxDoc/SGML-tools
-SEARCH_PROG([for SGML-tools (aka LinuxDoc-SGML)], SGMLTOOLS, sgml2lyx)
+SEARCH_PROG([for SGML-tools (aka LinuxDoc-SGML)], sgmltools, sgml2lyx)
 chk_sgmltools=no
 if test $SGMLTOOLS != none; then
   chk_sgmltools=yes
   sgmltools_cmd="\\def\\hassgmltools{yes}"
diff -p -N -r -U 4 -X excl.tmp lyx-1_0_x/lib/layouts/docbook.layout 
lyx-1_0_4/lib/layouts/docbook.layout
--- lyx-1_0_x/lib/layouts/docbook.layout        Thu Jul 22 15:13:06 1999
+++ lyx-1_0_4/lib/layouts/docbook.layout        Fri Aug 20 11:04:38 1999
@@ -85,11 +85,14 @@ Style Description
   LatexName            variablelist
 End
 
 # Verbatim style definition
-Style Verbatim
+Style Literal
   LatexType            Environment
   LatexName            literal
+  Font
+    Latex               Latex
+  EndFont                                                                             
+        
 End
 
 # Code style definition
 Style Code
@@ -97,8 +100,11 @@ Style Code
   LatexType            Environment
   LatexName            programlisting
   Preamble
   EndPreamble
+  Font
+    Latex               Latex
+  EndFont                                                                             
+        
 End
 
 # Author style definition
 Style Author
diff -p -N -r -U 4 -X excl.tmp lyx-1_0_x/src/figinset.C lyx-1_0_4/src/figinset.C
--- lyx-1_0_x/src/figinset.C    Mon Jul 26 13:53:31 1999
+++ lyx-1_0_4/src/figinset.C    Mon Aug 23 11:44:01 1999
@@ -1226,9 +1226,14 @@ int InsetFig::Linuxdoc(LString &/*file*/
 
 
 int InsetFig::DocBook(LString &file)
 {
-       file += "@<graphic fileref=\"" + fname.strip('.') + "\"></graphic>";
+       LString figurename=fname;
+
+       if(figurename.suffixIs(".eps"))
+               figurename=fname.substring(0,fname.length()-5);
+
+       file += "@<graphic fileref=\"" + figurename + "\"></graphic>";
        return 0;
 }
 
 

Reply via email to