X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fgenerate_contributions.py;h=900b12dc812ba4ec114d7031d4b180b31a6a867b;hb=be3171e15ef234837006cf088ac81a1e628323e2;hp=2ca2409aaca3ca35b6f32f6c102a9cdadab3b1fc;hpb=0454f345a72dcb0f38161db37a86d88eb22f1bc5;p=lyx.git diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index 2ca2409aac..900b12dc81 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -10,13 +10,13 @@ author Angus Leeming Full author contact details are available in file CREDITS This script both stores and manipulates the raw data needed to -create CREDITS, credits.php and blanket-permission.php +create CREDITS, credits.inc and blanket-permission.inc Usage: $ python generate_contributions.py \ CREDITS \ - credits.php \ - blanket-permission.php + credits.inc \ + blanket-permission.inc where the arguments are the names of the generated files. ''' @@ -55,17 +55,14 @@ class contributer: if self.contact.find("http") != -1: result.append('@i%s\n' % self.contact) else: - ename, address = self.contact.split(" () ", 1) - address = address.replace(" ! ", ".") - contact = "%s@%s" % (ename, address) - result.append('@iE-mail: %s\n' % contact) + result.append('@iE-mail: %s\n' % self.contact) result.append(' %s\n' % self.credit.replace('\n', '\n ')) return "".join(result) def as_php_credits(self, wrapper): return ''' -contrib("%s", +$output=$output.credits_contrib("%s", "%s", "%s"); ''' % ( xml_escape(self.name), @@ -75,7 +72,7 @@ contrib("%s", def as_php_blanket(self): return ''' -contrib("%s", +$output=$output.blanket_contrib("%s", "%s", "%s", "%s", @@ -133,69 +130,58 @@ just drop some e-mail to lyx@lyx.org. Thanks. return "".join(results) -def header(title, file): +def header(): return ''' -''' % ( title, file ) +''' def footer(): return ''' - ''' def as_php_credits(contributers, file): results = [] - results.append(header("CREDITS", file)) + results.append(header()) results.append(''' - - ${name} -"; +$email = str_replace(' () ', '@', $email); +$email = str_replace(' ! ', '.', $email); if (isset($email) && $email != "") - echo " <${email}>"; + $output=$output. "
[[mailto:${email} | ${name}]]"; +else + $output=$output. "
${name}"; $msg = ereg_replace("\\n *", "\\n ", ltrim($msg)); -echo " +$output=$output. "
${msg}
"; + +return $output; } -?> +function credits_output() { -

+$output=$output."

If your name doesn't appear here although you've done something for LyX, or your entry is wrong or incomplete, just drop an e-mail to the - lyx-devel + [[mailto:lyx-devel@lists.lyx.org | lyx-devel]] mailing list. Thanks.

-
"; +''') wrapper = textwrap.TextWrapper(width=60, subsequent_indent=" ") @@ -203,9 +189,12 @@ echo " if len(contributer.credit) != 0: results.append(contributer.as_php_credits(wrapper)) - results.append('''?> + results.append(''' +$output=$output."
"; + +return $output; - +} ''') results.append(footer()) return "".join(results) @@ -214,17 +203,19 @@ echo " def as_php_blanket(contributers, file): results = [] - results.append(header("Permissions", file)) + results.append(header()) results.append(''' - - ${name} - <${email}> + [[mailto:${email} | ${name}]]
See the lyx-devel mailing list message @@ -232,50 +223,58 @@ echo " if (isset($msg_ref) && $msg_ref != "") { $msg_ref = htmlspecialchars("$msg_ref"); - echo "${msg_title}"; + $output=$output. "[[http://marc.info/?l=lyx-devel&" . ${msg_ref} . "|" . ${msg_title} . "]]"; } else { - echo "${msg_title}"; + $output=$output. "${msg_title}"; } -echo "" +$output=$output. "" of $date.
"; + +return $output; } -?> +function blanket_output() { -

- The following people hereby grant permission to licence their +$output=$output."

+ The following people hereby grant permission to license their contributions to LyX under the - - Gnu General Public Licence, version 2 or later. + [[http://www.opensource.org/licenses/gpl-license.php | + Gnu General Public License]], version 2 or later.

-
"; +''') for contributer in contributers: if contributer.licence == "GPL": results.append(contributer.as_php_blanket()) - results.append('''?> -
+ results.append(''' +$output=$output.""; +$output=$output."

- The following people hereby grant permission to licence their + The following people hereby grant permission to license their contributions to LyX under the - - Artistic Licence. + [[http://www.opensource.org/licenses/artistic-license.php | + Artistic License]].

-
-"; +''') for contributer in contributers: if contributer.licence == "Artistic": results.append(contributer.as_php_blanket()) - results.append('''?> -
+ results.append(''' +$output=$output.""; + +return $output; + +} ''') results.append(footer()) @@ -313,6 +312,14 @@ contributers = [ "27 February 2005", u"Dutch translation team member"), + contributer(u"Hatim Alahmadi", + "dr.hatim () hotmail ! com", + "GPL", + "license issue", + "m=121727417724431", + "28 July 2008", + u"Arabic translation"), + contributer(u"Asger Alstrup", "aalstrup () laerdal ! dk", "GPL", @@ -345,6 +352,14 @@ contributers = [ "19 October 2006", u"New commandparams structure, Nomenclature inset"), + contributer(u"Susana Barbosa", + "susana.barbosa () fc ! up ! pt", + "GPL", + "License", + "m=118707828425316", + "14 August 2007", + u"Portuguese translation"), + contributer(u"Yves Bastide", "yves.bastide () irisa ! fr", "GPL", @@ -391,7 +406,7 @@ contributers = [ "Re: Licensing of tex2lyx (and perhaps LyX itself?)", "m=110907078027047", "22 February 2005", - 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"), + 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 previous source maintainer."), contributer(u"Alfredo Braunstein", "abraunst () lyx ! org", @@ -455,7 +470,7 @@ contributers = [ "Re: The LyX licence", "m=111842518713710", "10 June 2005", - u"French translation of the Windows installer"), + u"French translations"), contributer(u"Claudio Coco", "lacocio () libero ! it", @@ -465,6 +480,14 @@ contributers = [ "17 January 2006", u"Italian translation"), + contributer(u"Yuri Chornoivan", + "yurchor () ukr ! net", + "GPL", + "Permission grant", + "m=121681339315810", + "23 July 2008", + u"Ukranian translation"), + contributer(u"Matthias Kalle Dalheimer", "kalle () kdab ! net", "GPL", @@ -505,6 +528,14 @@ contributers = [ "31 May 2007", u"RTL/BiDi-related fixes"), + contributer(u"Michał Fita", + "michal ! fita () gmail ! com", + "GPL", + "Statement for Polish translation", + "m=121615623122376", + "15 July 2008", + u"Polish translation"), + contributer(u"Ronald Florence", "ron () 18james ! com", "GPL", @@ -529,13 +560,21 @@ contributers = [ "", u"Bug fix to the spellchecker"), + contributer(u"Nicola Focci", + "nicola.focci () gmail ! com", + "GPL", + "Permission", + "m=120946605432341", + "29 April 2008", + u"Italian translation of documentations"), + contributer(u"Enrico Forestieri", "forenr () tlc ! unipr ! it", "GPL", "Re: lyxpreview2ppm.py", "m=111894292115287", "16 June 2005", - u"Italian translation of the Windows installer"), + u"Italian translations, many bug fixes and features"), contributer(u"Eitan Frachtenberg", "sky8an () gmail ! com", @@ -545,6 +584,14 @@ contributers = [ "20 March 2005", u"BibTeX annotation support"), + contributer(u"Darren Freeman", + "dfreeman () ieee ! org", + "GPL", + "Licence", + "m=118612951707590", + "3 August 2007", + u"Improvements to mouse wheel scrolling; many bug reports"), + contributer(u"Edscott Wilson Garcia", "edscott () xfce ! org", "GPL", @@ -600,14 +647,14 @@ contributers = [ "m=110916171925288", "23 February 2005", u"Norwegian documentation and localization"), - + contributer(u"Richard Heck", - "rgheck () brown ! edu", + "rgheck () comcast ! net", "GPL", "GPL Statement", "m=117501689204059", "27 March 2007", - u"Bug fixes"), + u"Layout modules, BibTeX code, various bugs"), contributer(u"Bennett Helm", "bennett.helm () fandm ! edu", @@ -791,7 +838,7 @@ contributers = [ "Re: Licensing of tex2lyx (and perhaps LyX itself?)", "m=110899928510452", "21 February 2005", - u"configure and Makefile-stuff and more"), + u"configure and Makefile-stuff, many bugfixes and more. Previous stable branch maintainer."), contributer(u"Victor Lavrenko", "lyx () lavrenko ! pp ! ru", @@ -855,7 +902,7 @@ contributers = [ "Re: The LyX licence", "m=110907762926766", "22 February 2005", - u"linuxdoc sgml support"), + u"linuxdoc sgml support. Current release manager."), contributer(u"Roman Maurer", "roman.maurer () amis ! net", @@ -873,6 +920,22 @@ contributers = [ "31 October 2005", u"Dutch translation coordinator"), + contributer(u"Siegfried Meunier-Guttin-Cluzel", + "meunier () coria ! fr", + "GPL", + "French translations", + "m=119485816312776", + "12 November 2007", + u"French translations of the documentation"), + + contributer(u"Joan Montané", + "jmontane () gmail ! com", + "GPL", + "Re: LyX translation updates needed", + "m=118765575314017", + "21 August 2007", + u"Catalan translations of menus"), + contributer(u"Iñaki Larrañaga Murgoitio", "dooteo () euskalgnu ! org", "GPL", @@ -921,13 +984,21 @@ contributers = [ "25 February 2005", u"Support for kluwer and ijmpd document classes"), + contributer(u'Andrey V. Panov', + "panov () canopus ! iacp ! dvo ! ru", + "GPL", + "Re: Russian translation for LyX", + "m=119853644302866", + "24 December 2007", + u"Russian translation of the user interface"), + contributer(u'Sanda Pavel', - "ps () ucw !cz", + "ps () ucw ! cz", "GPL", "Re: czech translation", "m=115522417204086", - "10 august 2006", - u"Czech translation"), + "10 August 2006", + u"Czech translation, support for the LaTeX package hyperref"), contributer(u'Bo Peng', "ben.bob () gmail ! com", @@ -935,7 +1006,7 @@ contributers = [ "Re: Python version of configure script (preview version)", "m=112681895510418", "15 September 2005", - u"Conversion of all shell scripts to Python, session, view-source, auto-view features and scons build system."), + u"Conversion of all shell scripts to Python, shortcuts dialog, session, view-source, auto-view, embedding features and scons build system."), contributer(u"Joacim Persson", "sp2joap1 () ida ! his ! se", @@ -1073,6 +1144,14 @@ contributers = [ "29 January 2007", u"Various bug fixes"), + contributer(u"Paul A. Rubin", + "rubin () msu ! edu", + "GPL", + "Re: [patch] reworked AMS classes (bugs 4087, 4223)", + "m=119072721929143", + "25 September 2007", + u"Major rework of the AMS classes"), + contributer(u"Ran Rutenberg", "ran.rutenberg () gmail ! com", "GPL", @@ -1167,7 +1246,7 @@ contributers = [ "Re: The LyX licence", "m=110907530127164", "22 February 2005", - u"Qt frontend, bugfixes"), + u"Qt frontend, bugfixes. Current stable branch maintainer."), contributer(u"John Spray", "jcs116 () york ! ac ! uk", @@ -1191,7 +1270,7 @@ contributers = [ "Re: The LyX licence", "m=111833345825278", "9 June 2005", - u"documentation updates, Windows installer, small fixes"), + u"Current documentation maintainer, Windows installer, bug fixes"), contributer(u"David Suárez de Lis", "excalibor () iname ! com", @@ -1385,6 +1464,22 @@ contributers = [ "22 February 2005", u"rotation of wysiwyg figures"), + contributer(u"Horst Schirmeier", + "horst () schirmeier ! com", + "GPL", + "Re: [patch] reordering capabilities for GuiBibtex", + "m=120009631506298", + "12 January 2008", + u"small fixes"), + + contributer(u"Vincent van Ravesteijn", + "V.F.vanRavesteijn () tudelft ! nl", + "GPL", + "RE: crash lyx-1.6rc1", + "m=121786603726114", + "4 August 2008", + u"small fixes"), + contributer(u"Xiaokun Zhu", "xiaokun () aero ! gla ! ac ! uk", "", @@ -1393,5 +1488,7 @@ contributers = [ "", u"bug reports and small fixes") ] + if __name__ == "__main__": main(sys.argv, contributers) +