From 134275fae076306bb9cb9254182bca5925db705e Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Mon, 11 Apr 2005 14:11:42 +0000 Subject: [PATCH] Improved grammar; pretty printing git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9805 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/CREDITS | 14 +++++++------- lib/generate_contributions.py | 26 +++++++++++++++----------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/lib/CREDITS b/lib/CREDITS index de10d69876..6fa5f15975 100644 --- a/lib/CREDITS +++ b/lib/CREDITS @@ -27,7 +27,7 @@ Small bugfixes that were very hard to find @bLars Gullik Bjønnes @iE-mail: larsbj@gullik.net - Improvements to user interface (menus and keyhandling) including configurabletoolbar, and a few other (not so) minor things, like rewriting most of the LyX kernel. Also current source maintainer + Improvements to user interface (menus and keyhandling) including a configurable toolbar and a few other (not so) minor things, like rewriting most of the LyX kernel. Also current source maintainer @bAlfredo Braunstein @iE-mail: abraunst@lyx.org A (pseudo) threaded graphics loader queue, lots of fixes, etc. @@ -36,7 +36,7 @@ User-definable keys, lyxserver and more @bJohnathan Burchill @iE-mail: jkerrb@users.sourceforge.net - Ported John Levon's original 'change tracking' code to later versions of LyX.Numerous bug fixes thereof. + Ported John Levon's original 'change tracking' code to later versions of LyX. Numerous bug fixes thereof. @bFrancesc Burrull i Mestres @iE-mail: fburrull@mat.upc.es Catalan translation @@ -69,7 +69,7 @@ Bug fixes @bStefano Ghirlanda @iE-mail: stefano.ghirlanda@unibo.it - Improvements to lyxserver; LyX-Client perl package + Improvements to lyxserver @bHartmut Goebel @iE-mail: h.goebel@crazy-compilers.com Improvements to Koma-Script classes @@ -158,7 +158,7 @@ Basque documentation and localization @bDaniel Naber @iE-mail: daniel.naber@t-online.de - Improvements to find&replace popup + Improvements to the find&replace dialog @bPablo De Napoli @iE-mail: pdenapo@mate.dm.uba.ar Math panel dialogs @@ -188,7 +188,7 @@ mathed rewrite to use STL file io with streams --export and --import command line options @bKornelia Pönitz @iE-mail: kornelia.poenitz@mathematik.tu-chemnitz.de - heavy mathed testing provided siamltex document class + heavy mathed testing; provided siamltex document class @bBernhard Psaier Designer of the LyX-Banner @bThomas Pundt @@ -274,10 +274,10 @@ Gnome frontend @bMartin Vermeer @iE-mail: martin.vermeer@hut.fi - support for optional argument in sections/captions svjour/svjog, egs and llncs document classes Lot of bug hunting (and fixing!) + support for optional argument in sections/captions svjour/svjog, egs and llncs document classes. Lot of bug hunting (and fixing!) @bJürgen Vigna @iE-mail: jug@lyx.org - complete rewrite of the tabular, text inset fax- and Ascii-Export support iletter and dinbrief support + complete rewrite of the tabular, text inset; fax- and Ascii-Export support; iletter and dinbrief support @bPauli Virtanen @iE-mail: pauli.virtanen@hut.fi Finnish localization of the interface diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index c72cb417b2..c1e50632a6 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -21,7 +21,7 @@ $ python generate_contributions.py \ where the arguments are the names of the generated files. ''' -import codecs, sys +import codecs, sys, textwrap def xml_escape(s): s = s.replace("&", "&") @@ -63,14 +63,14 @@ class contributer: return "".join(result) - def as_php_credits(self): + def as_php_credits(self, wrapper): return ''' contrib("%s", "%s", "%s"); ''' % ( xml_escape(self.name), xml_escape(self.contact), - xml_escape(self.credit) ) + "\n".join(wrapper.wrap(xml_escape(self.credit))) ) def as_php_blanket(self): @@ -175,6 +175,8 @@ echo " if (isset($email) && $email != "") echo " <${email}>"; +$msg = ereg_replace("\\n *", "\\n ", ltrim($msg)); + echo "
@@ -194,9 +196,11 @@ echo "
@@ -381,7 +385,7 @@ contributers = [ "Re: Licensing of tex2lyx (and perhaps LyX itself?)", "m=110907078027047", "22 February 2005", - u"Improvements to user interface (menus and keyhandling) including configurabletoolbar, and a few other (not so) minor things, like rewriting most of the LyX kernel. Also current source maintainer"), + u"Improvements to user interface (menus and keyhandling) including a configurable toolbar and a few other (not so) minor things, like rewriting most of the LyX kernel. Also current source maintainer"), contributer(u"Alfredo Braunstein", "abraunst () lyx ! org", @@ -405,7 +409,7 @@ contributers = [ "Re: The LyX licence", "m=110908472818670", "22 February 2005", - u"Ported John Levon's original 'change tracking' code to later versions of LyX.Numerous bug fixes thereof."), + u"Ported John Levon's original 'change tracking' code to later versions of LyX. Numerous bug fixes thereof."), contributer(u"Francesc Burrull i Mestres", "fburrull () mat ! upc ! es", @@ -501,7 +505,7 @@ contributers = [ "Re: The LyX licence", "m=110959835300777", "28 February 2005", - u"Improvements to lyxserver; LyX-Client perl package"), + u"Improvements to lyxserver"), contributer(u"Hartmut Goebel", "h.goebel () crazy-compilers ! com", @@ -749,7 +753,7 @@ contributers = [ "Re: The LyX licence", "m=110911176213928", "22 February 2005", - u"Improvements to find&replace popup"), + u"Improvements to the find&replace dialog"), contributer(u"Pablo De Napoli", "pdenapo () mate ! dm ! uba ! ar", @@ -829,7 +833,7 @@ contributers = [ "Re: The LyX licence", "m=111121553103800", "19 March 2005", - u"heavy mathed testing provided siamltex document class"), + u"heavy mathed testing; provided siamltex document class"), contributer(u"Bernhard Psaier", "", @@ -1061,7 +1065,7 @@ contributers = [ "Re: The LyX licence", "m=110907543900367", "22 February 2005", - u"support for optional argument in sections/captions svjour/svjog, egs and llncs document classes Lot of bug hunting (and fixing!)"), + u"support for optional argument in sections/captions svjour/svjog, egs and llncs document classes. Lot of bug hunting (and fixing!)"), contributer(u"Jürgen Vigna", "jug () lyx ! org", @@ -1069,7 +1073,7 @@ contributers = [ "Re: Licensing of tex2lyx (and perhaps LyX itself?)", "m=110899839906262", "21 February 2005", - u"complete rewrite of the tabular, text inset fax- and Ascii-Export support iletter and dinbrief support"), + u"complete rewrite of the tabular, text inset; fax- and Ascii-Export support; iletter and dinbrief support"), contributer(u"Pauli Virtanen", "pauli.virtanen () hut ! fi",