forenr | 1 Jun 2011 02:40
Favicon

r38907 - lyx-devel/trunk/lib

Author: forenr
Date: Wed Jun  1 02:40:03 2011
New Revision: 38907
URL: http://www.lyx.org/trac/changeset/38907

Log:
On Windows, not all file systems provide for a short form of a filename,
so we have to account for this. Also, when checking whether TeX allows
spaces in file names, we try different quoting styles in order to account
for the kind of TeX engine used.

Modified:
   lyx-devel/trunk/lib/configure.py

Modified: lyx-devel/trunk/lib/configure.py
==============================================================================
--- lyx-devel/trunk/lib/configure.py	Tue May 31 22:23:06 2011	(r38906)
+++ lyx-devel/trunk/lib/configure.py	Wed Jun  1 02:40:03 2011	(r38907)
 <at>  <at>  -118,6 +118,8  <at>  <at> 
         os.close(fd)
         latex_out = cmdOutput(r'latex "\nonstopmode\input{%s}"' % inpname)
         if 'Error' in latex_out:
+            latex_out = cmdOutput(r'latex "\nonstopmode\input{\"%s\"}"' % inpname)
+        if 'Error' in latex_out:
             logger.warning("configure: TeX engine needs posix-style paths in latex files")
             windows_style_tex_paths = 'false'
         else:
 <at>  <at>  -1300,8 +1302,10  <at>  <at> 
         msg = "Checking whether TeX allows spaces in file names... "
         writeToFile('a b.tex', r'\message{working^^J}' )
(Continue reading)

forenr | 1 Jun 2011 03:51
Favicon

r38908 - lyx-devel/trunk/lib

Author: forenr
Date: Wed Jun  1 03:51:17 2011
New Revision: 38908
URL: http://www.lyx.org/trac/changeset/38908

Log:
Query about the exact length of a short name, as it may happen that
a short name length is actually greater than the long name length.

Modified:
   lyx-devel/trunk/lib/configure.py

Modified: lyx-devel/trunk/lib/configure.py
==============================================================================
--- lyx-devel/trunk/lib/configure.py	Wed Jun  1 02:40:03 2011	(r38907)
+++ lyx-devel/trunk/lib/configure.py	Wed Jun  1 03:51:17 2011	(r38908)
 <at>  <at>  -105,8 +105,9  <at>  <at> 
             from ctypes import windll, create_unicode_buffer
             GetShortPathName = windll.kernel32.GetShortPathNameW
             longname = unicode(tmpfname)
-            shortname = create_unicode_buffer(len(longname)+1)
-            if GetShortPathName(longname, shortname, len(longname)+1):
+            shortlen = GetShortPathName(longname, 0, 0)
+            shortname = create_unicode_buffer(shortlen)
+            if GetShortPathName(longname, shortname, shortlen):
                 inpname = shortname.value.replace('\\', '/')
             else:
                 inpname = tmpfname.replace('\\', '/')

(Continue reading)

rgheck | 1 Jun 2011 15:09
Favicon

r38912 - www-user/trunk/farm/cookbook/LyX

Author: rgheck
Date: Wed Jun  1 15:09:17 2011
New Revision: 38912
URL: http://www.lyx.org/trac/changeset/38912

Log:
* i18n.inc: update stats

Modified:
   www-user/trunk/farm/cookbook/LyX/i18n.inc

Modified: www-user/trunk/farm/cookbook/LyX/i18n.inc
==============================================================================
--- www-user/trunk/farm/cookbook/LyX/i18n.inc	Wed Jun  1 15:01:48 2011	(r38911)
+++ www-user/trunk/farm/cookbook/LyX/i18n.inc	Wed Jun  1 15:09:17 2011	(r38912)
 <at>  <at>  -7,93 +7,93  <at>  <at> 
 // The data itself
 $podata = array (
 array ( 'langcode' => 'ar', "date" => "2010-03-21",
-"msg_tr" => 3275, "msg_fu" => 759, "msg_nt" => 1125,
+"msg_tr" => 3275, "msg_fu" => 760, "msg_nt" => 1127,
 "translator" => "Mohamed Magdy", "email" => "theblackdragon_100 () hotmail ! com"),
 array ( 'langcode' => 'ca', "date" => "2008-07-28",
-"msg_tr" => 2953, "msg_fu" => 1242, "msg_nt" => 964,
+"msg_tr" => 2953, "msg_fu" => 1243, "msg_nt" => 966,
 "translator" => "joan", "email" => "joan () montane ! cat"),
 array ( 'langcode' => 'cs', "date" => "2011-04-12",
-"msg_tr" => 5154, "msg_fu" => 4, "msg_nt" => 1,
+"msg_tr" => 5162, "msg_fu" => 0, "msg_nt" => 0,
 "translator" => "Pavel Sanda", "email" => "sanda () lyx ! org"),
(Continue reading)

rgheck | 1 Jun 2011 15:10
Favicon

r38913 - lyx-devel/trunk/development/tools

Author: rgheck
Date: Wed Jun  1 15:10:38 2011
New Revision: 38913
URL: http://www.lyx.org/trac/changeset/38913

Log:
Check for git in update script.

Modified:
   lyx-devel/trunk/development/tools/updatestats.sh

Modified: lyx-devel/trunk/development/tools/updatestats.sh
==============================================================================
--- lyx-devel/trunk/development/tools/updatestats.sh	Wed Jun  1 15:09:17 2011	(r38912)
+++ lyx-devel/trunk/development/tools/updatestats.sh	Wed Jun  1 15:10:38 2011	(r38913)
 <at>  <at>  -53,6 +53,10  <at>  <at> 
   exit 1;
 fi

+# Are we under svn or git?
+GIT="";
+if [ -d .git/ ]; then GIT="TRUE"; fi
+
 echo
 echo Updating the www-user tree...
 svn up
 <at>  <at>  -61,6 +65,11  <at>  <at> 
 cp $LYXROOT/po/$I18NFILE .;

 echo Committing...;
(Continue reading)

rgheck | 1 Jun 2011 15:14
Favicon

r38914 - lyx-devel/trunk/lib

Author: rgheck
Date: Wed Jun  1 15:14:28 2011
New Revision: 38914
URL: http://www.lyx.org/trac/changeset/38914

Log:
Add Max Funk to credits.

Modified:
   lyx-devel/trunk/lib/generate_contributions.py

Modified: lyx-devel/trunk/lib/generate_contributions.py
==============================================================================
--- lyx-devel/trunk/lib/generate_contributions.py	Wed Jun  1 15:10:38 2011	(r38913)
+++ lyx-devel/trunk/lib/generate_contributions.py	Wed Jun  1 15:14:28 2011	(r38914)
 <at>  <at>  -689,6 +689,14  <at>  <at> 
                  "3 August 2007",
                  u"Improvements to mouse wheel scrolling; many bug reports"),

+     contributer(u"Max Funk",
+                 "maxkhfunk () gmx ! net",
+                 "GPL",
+                 "GPL",
+                 "m=130659936521230",
+                 "28 May 2011",
+                 u"Bug fixes"),
+
      contributer(u"Edscott Wilson Garcia",
                  "edscott () xfce ! org",
                  "GPL",
(Continue reading)

rgheck | 1 Jun 2011 15:18
Favicon

r38915 - lyx-devel/trunk/src/frontends/qt4

Author: rgheck
Date: Wed Jun  1 15:18:08 2011
New Revision: 38915
URL: http://www.lyx.org/trac/changeset/38915

Log:
Fix bug #7540. Patch based upon one added to bug report by Max Funk.

Basically, patch adds routine that calcuates relative paths to parent
rather than child directories.

Modified:
   lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp
   lyx-devel/trunk/src/frontends/qt4/GuiCompare.cpp
   lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp
   lyx-devel/trunk/src/frontends/qt4/GuiExternal.cpp
   lyx-devel/trunk/src/frontends/qt4/GuiGraphics.cpp
   lyx-devel/trunk/src/frontends/qt4/GuiInclude.cpp
   lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp
   lyx-devel/trunk/src/frontends/qt4/GuiPrint.cpp
   lyx-devel/trunk/src/frontends/qt4/qt_helpers.h

Modified: lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp	Wed Jun  1 15:14:28 2011	(r38914)
+++ lyx-devel/trunk/src/frontends/qt4/GuiBibtex.cpp	Wed Jun  1 15:18:08 2011	(r38915)
 <at>  <at>  -435,7 +435,7  <at>  <at> 
 	QString const label1 = qt_("Documents|#o#O");
 	QString const dir1 = toqstr(lyxrc.document_path);
 	QStringList const filter(qt_("BibTeX Databases (*.bib)"));
(Continue reading)

rgheck | 1 Jun 2011 15:19
Favicon

r38916 - lyx-devel/branches/BRANCH_2_0_X/lib

Author: rgheck
Date: Wed Jun  1 15:19:48 2011
New Revision: 38916
URL: http://www.lyx.org/trac/changeset/38916

Log:
Add Max Funk to credits.

Modified:
   lyx-devel/branches/BRANCH_2_0_X/lib/generate_contributions.py

Modified: lyx-devel/branches/BRANCH_2_0_X/lib/generate_contributions.py
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/lib/generate_contributions.py	Wed Jun  1 15:18:08 2011	(r38915)
+++ lyx-devel/branches/BRANCH_2_0_X/lib/generate_contributions.py	Wed Jun  1 15:19:48 2011	(r38916)
 <at>  <at>  -689,6 +689,14  <at>  <at> 
                  "3 August 2007",
                  u"Improvements to mouse wheel scrolling; many bug reports"),

+     contributer(u"Max Funk",
+                 "maxkhfunk () gmx ! net",
+                 "GPL",
+                 "GPL",
+                 "m=130659936521230",
+                 "28 May 2011",
+                 u"Bug fixes"),
+
      contributer(u"Edscott Wilson Garcia",
                  "edscott () xfce ! org",
                  "GPL",
(Continue reading)

rgheck | 1 Jun 2011 15:19
Favicon

r38917 - lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4

Author: rgheck
Date: Wed Jun  1 15:19:52 2011
New Revision: 38917
URL: http://www.lyx.org/trac/changeset/38917

Log:
Fix bug #7540. Patch based upon one added to bug report by Max Funk.

Basically, patch adds routine that calcuates relative paths to parent
rather than child directories.

Modified:
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiBibtex.cpp
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiCompare.cpp
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiDocument.cpp
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiExternal.cpp
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiGraphics.cpp
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiInclude.cpp
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiPrefs.cpp
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiPrint.cpp
   lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/qt_helpers.h

Modified: lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiBibtex.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiBibtex.cpp	Wed Jun  1 15:19:48 2011	(r38916)
+++ lyx-devel/branches/BRANCH_2_0_X/src/frontends/qt4/GuiBibtex.cpp	Wed Jun  1 15:19:52 2011	(r38917)
 <at>  <at>  -435,7 +435,7  <at>  <at> 
 	QString const label1 = qt_("Documents|#o#O");
 	QString const dir1 = toqstr(lyxrc.document_path);
 	QStringList const filter(qt_("BibTeX Databases (*.bib)"));
(Continue reading)

forenr | 1 Jun 2011 17:21
Favicon

r38918 - lyx-devel/trunk/lib

Author: forenr
Date: Wed Jun  1 17:21:16 2011
New Revision: 38918
URL: http://www.lyx.org/trac/changeset/38918

Log:
Apparently, this extra check is not necessary as the first one works
whatever the TeX engine.

Modified:
   lyx-devel/trunk/lib/configure.py

Modified: lyx-devel/trunk/lib/configure.py
==============================================================================
--- lyx-devel/trunk/lib/configure.py	Wed Jun  1 15:19:52 2011	(r38917)
+++ lyx-devel/trunk/lib/configure.py	Wed Jun  1 17:21:16 2011	(r38918)
 <at>  <at>  -1305,8 +1305,6  <at>  <at> 
         if LATEX != '':
             if os.name == 'nt' or sys.platform == 'cygwin':
                 latex_out = cmdOutput(LATEX + r""" "\nonstopmode\input{\"a b\"}" """)
-                if not 'working' in latex_out:
-                    latex_out = cmdOutput(LATEX + r' "\nonstopmode\input{a b}"')
             else:
                 latex_out = cmdOutput(LATEX + r""" '\nonstopmode\input{"a b"}' """)
         else:

rgheck | 1 Jun 2011 15:00
Favicon

r38909 - lyx-devel/branches/BRANCH_2_0_X/po

Author: rgheck
Date: Wed Jun  1 15:00:36 2011
New Revision: 38909
URL: http://www.lyx.org/trac/changeset/38909

Log:
Basque translation update.

Modified:
   lyx-devel/branches/BRANCH_2_0_X/po/eu.po

Modified: lyx-devel/branches/BRANCH_2_0_X/po/eu.po
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/po/eu.po	Wed Jun  1 03:51:17 2011	(r38908)
+++ lyx-devel/branches/BRANCH_2_0_X/po/eu.po	Wed Jun  1 15:00:36 2011	(r38909)
 <at>  <at>  -1,4 +1,4  <at>  <at> 
-# translation of lyx_2.0.0_eu.po to Basque
+# translation of lyx_2.0.1_eu.po to Basque
 # Basque translation of LyX
 # Copyright (C) 2008 LyX Developers
 #
 <at>  <at>  -7,10 +7,10  <at>  <at> 
 # Iñaki Larrañaga Murgoitio <dooteo <at> zundan.com>, 2011.
 msgid ""
 msgstr ""
-"Project-Id-Version: lyx_2.0.0_eu\n"
+"Project-Id-Version: lyx_2.0.1_eu\n"
 "Report-Msgid-Bugs-To: lyx-devel <at> lists.lyx.org\n"
 "POT-Creation-Date: 2011-05-27 08:19-0400\n"
-"PO-Revision-Date: 2011-04-28 15:14+0200\n"
(Continue reading)


Gmane