]> git.lyx.org Git - lyx.git/commitdiff
parselog fixes, i18n fix, menu separator fix
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Mar 2002 00:05:28 +0000 (00:05 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Mar 2002 00:05:28 +0000 (00:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3846 a592a061-630c-0410-9148-cb99ea01b6c8

13 files changed:
ANNOUNCE
ChangeLog
NEWS
lib/examples/Literate.lyx
src/ChangeLog
src/FloatList.C
src/MenuBackend.C
src/converter.C
src/insets/ChangeLog
src/insets/insetspecialchar.C
src/support/ChangeLog
src/support/filetools.C
src/support/filetools.h

index bc5bc0ef778f705c650d7893c0edcc765d7626db..4e4e901f8937bf69185c50c29d3d723f0f859c2e 100644 (file)
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -1,4 +1,4 @@
-Public release of LyX version 1.1.6
+Public release of LyX version 1.2.0
 ===================================
 
 What is LyX?
@@ -19,7 +19,7 @@ All in all, LyX is a complete environment for writing documents. It has
 superior support for scientific writing, but works well for any kind of
 document.
 
-Read more about LyX (including screen shots) at:
+Read more about LyX (including screenshots) at:
 
     http://www.lyx.org/
 
@@ -32,7 +32,7 @@ A very incomplete feature list:
 - footnotes, citations, cross-referencing, faxes, spellchecking
 - almost any math expression (with a simple, but powerfull interface)
 - automatic, multilevel outline support (enumerated or bullets)
-- tables and embedded postscript figures support
+- tables and embedded figures support (with automatic conversion)
 - import LaTeX or ASCII
 - export LaTeX, ASCII, DVI, PostScript, LinuxDoc-SGML, DocBook-SGML
 - fair support for non-English documents and/or menus
@@ -67,20 +67,20 @@ with mirrors at
        
 The source code package is available at:
 
-        ftp://ftp.lyx.org/pub/lyx/stable/lyx-1.1.6.tar.gz
-       ftp://ftp.devel.lyx.org/pub/lyx/lyx-1.1.6.tar.gz
+        ftp://ftp.lyx.org/pub/lyx/stable/lyx-1.2.0.tar.gz
+       ftp://ftp.devel.lyx.org/pub/lyx/lyx-1.2.0.tar.gz
 
 and at the mirrors listed above.
 
 You need to have XForms version 0.88 or newer to compile your own 
-version.  Version 0.88 is highly recommended. LyX should also compile
-with 0.89.
+version.  Version 0.89 is highly recommended. LyX should also compile
+with 0.88.
 
 Credits
 -------
 
 The LyX Team is composed of volunteers from around the world.  Many, many 
-people have helped make the 1.1.x releases possible, including:
+people have helped make the 1.2.0 release possible, including:
 
     Lars Gullik Bjoennes, Alejandro Aguilar Sierra, Asger Alstrup,
     Jean-Marc Lasgouttes, Juergen Vigna, John P. Weiss, Bernhard Iselborn,
index aace77b41c72e30b1ba7410e29a2f68292633bcf..2975d8fa7b69f8d0286aa93e270a5ea969028ee6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2002-03-26  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
 
+       * ANNOUNCE: 
        * INSTALL: 
        * README: 
        * NEWS: update somewhat for 1.2.0
diff --git a/NEWS b/NEWS
index 9d13751b0f30770120284c6ff4cc5a7af16a1538..6a250bd380677656bd6d5d4b555afea655fe4119 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -28,8 +28,9 @@ are now possible:
 
 - New minipage inset
 
-Note that another consequence of this change is that older LyX version
-will almost certainly fail to read files produced by LyX 1.2.0.
+Note that another consequence of these changes is that older LyX
+versions will almost certainly fail to read files produced by LyX
+1.2.0.
 
 
 Other more traditional insets have been improved too:
index 56723f8b9b92ffae8e19f3804ad57e0976729647..9ad85287ced8b5dab0d17146a3843c0f7544f948 100644 (file)
@@ -44,6 +44,19 @@ Modified by Bernard Michael Hurley bernardh@westherts.ac.uk ---- Don't blame
 \end_inset 
 
 
+\layout Abstract
+
+
+\series bold 
+Note:
+\series default 
+ This example program is provided for educational use only.
+ The functionality in this C program has been superceded by the equivalent
+ Python code in 
+\emph on 
+examples/listerrors.lyx
+\emph default 
+ which should be installed in the LyX scripts directory.
 \layout Date
 
 
index ca5e70d676b122d24d07d4def05455d774bb251b..f4ed8ac7637bc3dfa3b4986ae6e18f9bdae3a06b 100644 (file)
@@ -1,3 +1,16 @@
+2002-03-27  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * MenuBackend.C (expand): translate the name of floats
+
+       * FloatList.C (FloatList): mark the float names for translation
+
+       * converter.C (convert): use LibScriptSearch
+
+2002-03-26  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * MenuBackend.C (defaults): fix default menu (we might as well get
+       rid of it...)
+
 2002-03-26  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * lyxvc.C (registrer): register the file with CVS if it's in a CVS
index d6c29868a6c790464dd01d7155ffaa770f2583d4..c3b45c5017cd8c73ef15fb27fd20175088304594 100644 (file)
@@ -5,6 +5,7 @@
 #endif
 
 #include "FloatList.h"
+#include "gettext.h"
 
 // This class is now mostly finished, except one thing, it is a global
 // object. This will not do. The user (and layout files) are free to
@@ -29,18 +30,19 @@ FloatList::FloatList()
        // (these will later be read from a layout file)
 
        // table
-       Floating table("table", "htbp", "lot", "", "plain", "Table", true);
+       Floating table("table", "htbp", "lot", "", "plain", N_("Table"), true);
        newFloat(table);
 
        // figure
-       Floating figure("figure", "htbp", "lof", "", "plain", "Figure", true);
+       Floating figure("figure", "htbp", "lof",
+                       "", "plain", N_("Figure"), true);
        newFloat(figure);
 
        // And we add algorithm too since LyX has
        // supported that for a long time,
        // but support for this should probably be moved to a layout file.
        Floating algorithm("algorithm", "htbp", "loa",
-                          "", "ruled", "Algorithm");
+                          "", "ruled", N_("Algorithm"));
        newFloat(algorithm);
 }
 
index 71542cc9544150bc045a41df88b2c185255f269a..356b550d60c4bb31fd0f9377a171a9c949d9d512 100644 (file)
@@ -385,7 +385,7 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const
                                int const action = lyxaction
                                        .getPseudoAction(LFUN_INSET_FLOAT,
                                                         cit->second.type());
-                               string const label = cit->second.name();
+                               string const label = _(cit->second.name());
                                tomenu.add(MenuItem(MenuItem::Command,
                                                    label, action));
 
@@ -492,7 +492,7 @@ void MenuBackend::defaults()
        Menu file("file");
        file
                .add(MenuItem(MenuItem::Command, _("New...|N"), "buffer-new"))
-               .add(MenuItem(MenuItem::Command, _("Open...|O"), "buffer-open"))
+               .add(MenuItem(MenuItem::Command, _("Open...|O"), "file-open"))
                .add(MenuItem(MenuItem::Submenu, _("Import|I"), "import"))
                .add(MenuItem(MenuItem::Command, _("Quit|Q"), "lyx-quit"))
                .add(MenuItem(MenuItem::Separator))
index 1e09a7c8695b883f17404edfb8f07947b3570202..d192e26aca7cd9e06ee7be456422793e2e9dec0d 100644 (file)
@@ -657,11 +657,7 @@ bool Converters::convert(Buffer const * buffer,
 
                        if (!conv.parselog.empty()) {
                                string const logfile =  infile2 + ".log";
-                               string script =
-                                       LibFileSearch("scripts",
-                                                     conv.parselog);
-                               if (script.empty())
-                                       script = conv.parselog;
+                               string const script = LibScriptSearch(conv.parselog);
                                string const command2 = script +
                                        " < " + QuoteName(infile2 + ".out") +
                                        " > " + QuoteName(logfile);
index 80e1199f55b64c49b74e57e155d07e6261d2268c..4c57b1d8ab209aacffcf6f5f9db6b33490d5e67a 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-27  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * insetspecialchar.C (isLineSeparator): disable the nice code to
+       allow linebreaks after hyphenation and menu separators.
+
 2002-03-26  Herbert Voss  <voss@lyx.org>
 
        * insetgraphics.C (figinsetRead): set the right lyxview
index 2b30693a010a0d33019b38d69ba839a861d036d8..b75d573b3700ced7100e567015602675370dd7d5 100644 (file)
@@ -344,5 +344,13 @@ bool InsetSpecialChar::isSpace() const
 
 bool InsetSpecialChar::isLineSeparator() const
 {
+#if 0
+       // this would be nice, but it does not work, since
+       // Paragraph::stripLeadingSpaces nukes the characters which
+       // have this property. I leave the code here, since it should
+       // eventually be made to work. (JMarc 20020327)
        return kind_ == HYPHENATION || kind_ == MENU_SEPARATOR;
+#else
+       return false;
+#endif
 }
index 593a98d61f8c05a6b93c7cadba4139f7a8180020..f692c377e202b42abc2a5e1e594599695e033d14 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-27  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * filetools.C (LibScriptSearch): new command. Searches for scripts
+       in lyx data directories.
+
 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * most files: ws cleanup
index 07cbed04cfc9c97c706ce3421e4ce694a967592a..03add4cfcbee572fcfa4bccf04235ad47fbc79db 100644 (file)
@@ -329,6 +329,21 @@ i18nLibFileSearch(string const & dir, string const & name,
 }
 
 
+string const LibScriptSearch(string const & command)
+{
+       string script = command;
+       string args;
+       split(script, args, ' ');
+       script = LibFileSearch("scripts", script);
+       if (script.empty())
+               return command;
+       else if (args.empty())
+               return script;
+       else
+               return script + ' ' + args;
+}
+
+
 string const GetEnv(string const & envname)
 {
        // f.ex. what about error checking?
index 68783cd638b79d4064620fb071073d9b048c3ed7..c04180ae58b5e7cff3d99604f16e1be6e3247891 100644 (file)
@@ -98,6 +98,12 @@ string const
 i18nLibFileSearch(string const & dir, string const & name,
                  string const & ext = string());
 
+/** Takes a command with arguments as input and tries to see whether
+  the command itself can be found in one of the scripts/ directories.
+  If it is found, return the command with fully qualified script name,
+  either return it unchanged */
+string const LibScriptSearch(string const & command);
+
 ///
 string const GetEnv(string const & envname);