From 54a38db2b221a921dcd0ec980164ba2033b26f50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Wed, 16 Jan 2002 12:04:16 +0000 Subject: [PATCH] Small fixes: linuxdoc_ export ascii text if not supporte natively. docbook _ some changes for docbook 4. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3385 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 4 ++++ lib/layouts/db_stdlayouts.inc | 2 +- src/insets/ChangeLog | 10 ++++++++++ src/insets/figinset.C | 2 +- src/insets/insetgraphics.C | 7 +++++-- src/insets/insetinclude.C | 10 +++++----- src/insets/insettabular.C | 7 ++++++- 7 files changed, 32 insertions(+), 10 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 8ad8cc60fd..3d4a915e57 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2002-01-16 José Matos + + * layouts/db_stdlayouts.inc: Fix name for caption. + 2002-01-15 Angus Leeming * examples/mathed.lyx: a bit of a clean-up. Corrected the contents diff --git a/lib/layouts/db_stdlayouts.inc b/lib/layouts/db_stdlayouts.inc index fc3a14d608..55626bed41 100644 --- a/lib/layouts/db_stdlayouts.inc +++ b/lib/layouts/db_stdlayouts.inc @@ -44,5 +44,5 @@ NoStyle Verse Style Caption LatexType Paragraph - LatexName caption + LatexName title End \ No newline at end of file diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 3ecc8d6425..20d4e8fca1 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,13 @@ +2002-01-16 José Matos + + * figinset.C (docbook): removed a old place holder "@". + * insetgraphics.C (docbook): remove the file sufix if graphic is eps. + * insetinclude.C (linuxdoc): if include is verbatim, then export the + ascii text version, clearly guarded inside a CDATA section. + (docbook): in docbook 4, inlinegraphics is empty. + * insettabular.C (linuxdoc): export the ascii version of the table + inside a CDATA section. + 2002-01-14 Jean-Marc Lasgouttes * insetparent.C (InsetParent): diff --git a/src/insets/figinset.C b/src/insets/figinset.C index e961aec776..4737f6e739 100644 --- a/src/insets/figinset.C +++ b/src/insets/figinset.C @@ -1188,7 +1188,7 @@ int InsetFig::docbook(Buffer const *, ostream & os) const if (suffixIs(figurename, ".eps")) figurename.erase(figurename.length() - 4); - os << "@"; + os << ""; return 0; } diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index b2b1e46e9f..4e19504f5a 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -773,8 +773,11 @@ int InsetGraphics::docbook(Buffer const * buf, ostream & os) const { // Change the path to be relative to the main file. string const buffer_dir = buf->filePath(); - string const filename = RemoveExtension( - MakeRelPath(params.filename, buffer_dir)); + string filename = RemoveExtension( + MakeRelPath(params.filename, buffer_dir)); + + if (suffixIs(filename, ".eps")) + filename.erase(filename.length() - 4); // In DocBook v5.0, the graphic tag will be eliminated from DocBook, will // need to switch to MediaObject. However, for now this is sufficient and diff --git a/src/insets/insetinclude.C b/src/insets/insetinclude.C index e4f207a1a5..20bca653ca 100644 --- a/src/insets/insetinclude.C +++ b/src/insets/insetinclude.C @@ -332,9 +332,9 @@ int InsetInclude::linuxdoc(Buffer const * buffer, ostream & os) const } if (isVerbatim()) { - os << "" - << ""; + os << ""; } else os << '&' << include_label << ';'; @@ -370,9 +370,9 @@ int InsetInclude::docbook(Buffer const * buffer, ostream & os) const } if (isVerbatim()) { - os << "" - << ""; } else os << '&' << include_label << ';'; diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 222ae6dc8a..1f53d1dd96 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -1226,7 +1226,12 @@ int InsetTabular::ascii(Buffer const * buf, ostream & os, int ll) const int InsetTabular::linuxdoc(Buffer const * buf, ostream & os) const { - return tabular->ascii(buf,os, (int)parOwner()->params().depth(), false, 0); + os << "ascii(buf,os, + (int)parOwner()->params().depth(), + false, 0); + os << "]]>"; + return ret; } -- 2.39.5