From 1f88697c3c6b4c03f0c1fe84f94686b304561cad Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 16 Jul 2002 22:00:13 +0000 Subject: [PATCH] support fig files; support entering cyrillic and greek characters git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4662 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 19 +++++++++++++++++++ lib/bind/cua.bind | 2 ++ lib/bind/emacs.bind | 2 ++ lib/bind/sciword.bind | 2 ++ lib/bind/xemacs.bind | 2 ++ lib/configure.m4 | 9 +++++++++ src/support/ChangeLog | 5 +++++ src/support/filetools.C | 8 ++++---- 8 files changed, 45 insertions(+), 4 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 805ca32eb3..abd7c71a1f 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,22 @@ +2002-07-16 Jean-Marc Lasgouttes + + * configure.m4: add formats fig and epsi with converters + +2002-06-19 Herbert Voss + + * configure.m4: add converters for epsi and (x)fig + +2002-07-16 Andrew Zabolotny + + * bind/emacs.bind: + * bind/xemacs.bind: + * bind/sciword.bind: + * bind/cua.bind: include greekkeys and cyrkeys bindings + + * bind/greekkeys.bind: + * bind/cyrkeys.bind: bindings to enter cyrillic and greek + characters directly from keyboard + 2002-07-16 Jean-Marc Lasgouttes * bind/menus.bind: cleanup shortcuts for section layouts. Starred diff --git a/lib/bind/cua.bind b/lib/bind/cua.bind index 9bad2e0eb9..d602b3e2c2 100644 --- a/lib/bind/cua.bind +++ b/lib/bind/cua.bind @@ -177,3 +177,5 @@ \bind_file menus.bind \bind_file math.bind \bind_file latinkeys.bind +\bind_file cyrkeys.bind +\bind_file greekkeys.bind diff --git a/lib/bind/emacs.bind b/lib/bind/emacs.bind index c2e51734d3..b8bbe68b10 100644 --- a/lib/bind/emacs.bind +++ b/lib/bind/emacs.bind @@ -224,3 +224,5 @@ \bind_file menus.bind \bind_file math.bind \bind_file latinkeys.bind +\bind_file cyrkeys.bind +\bind_file greekkeys.bind diff --git a/lib/bind/sciword.bind b/lib/bind/sciword.bind index d51a8a5597..8ccada643f 100644 --- a/lib/bind/sciword.bind +++ b/lib/bind/sciword.bind @@ -491,3 +491,5 @@ \bind_file latinkeys.bind +\bind_file cyrkeys.bind +\bind_file greekkeys.bind diff --git a/lib/bind/xemacs.bind b/lib/bind/xemacs.bind index 81d1689a25..03aa02538b 100644 --- a/lib/bind/xemacs.bind +++ b/lib/bind/xemacs.bind @@ -325,3 +325,5 @@ \bind_file menus.bind \bind_file math.bind \bind_file latinkeys.bind +\bind_file cyrkeys.bind +\bind_file greekkeys.bind diff --git a/lib/configure.m4 b/lib/configure.m4 index b567087fe1..d7cee2a939 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -414,6 +414,12 @@ case $GRACE in done esac +SEARCH_PROG([for an FIG -> EPS/XPM converter], FIG2DEV, fig2dev) +if test "$FIG2DEV" = "fig2dev"; then + fig_to_eps="fig2dev -L eps \$\$i \$\$o" + fig_to_xpm="fig2dev -L xpm \$\$i \$\$o" +fi + #### Explore the LaTeX configuration MSG_CHECKING(LaTeX configuration) # First, remove the files that we want to re-create @@ -492,6 +498,7 @@ cat >$outfile <$outfile <$outfile < + + * filetools.[C]: (readExtFromCOntents) add support for + (x)fig format images + 2002-07-15 Jean-Marc Lasgouttes * filetools.C (IsLyXFilename): diff --git a/src/support/filetools.C b/src/support/filetools.C index 0a8710ba8b..1f331580fa 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -992,6 +992,7 @@ string const GetExtension(string const & name) // AGR Grace... // BMP BM... // EPS %!PS-Adobe-3.0 EPSF... +// FIG #FIG... // FITS ...BITPIX... // GIF GIF... // JPG JFIF @@ -1052,10 +1053,6 @@ string const getExtFromContents(string const & filename) } getline(ifs, str); - - lyxerr[Debug::GRAPHICS] << "Scanstring: " << str.substr(0,60) - << endl; - string const stamp = str.substr(0,2); if (firstLine && str.size() >= 2) { // at first we check for a zipped file, because this @@ -1103,6 +1100,9 @@ string const getExtFromContents(string const & filename) } else if (prefixIs(str,"%TGIF")) { format = "tgif"; + } else if (prefixIs(str,"#FIG")) { + format = "fig"; + } else if (prefixIs(str,"GIF")) { format = "gif";