X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fgenerate_contributions.py;h=900b12dc812ba4ec114d7031d4b180b31a6a867b;hb=be3171e15ef234837006cf088ac81a1e628323e2;hp=1d2760ccffa6e07ef4ba256b1fb127271a1455bd;hpb=77dee6cd6910ac2059de062e3c29bd4b11cfa6af;p=lyx.git diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index 1d2760ccff..900b12dc81 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python # -*- coding: utf-8 -*- ''' @@ -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()) @@ -286,10 +285,7 @@ def main(argv, contributers): if len(argv) != 4: error(usage(argv[0])) - txt_credits_data = unicode(as_txt_credits(contributers)) \ - .encode("latin1", "xmlcharrefreplace") - # This is a fudge to give a 'reasonable' spelling of Matej's name. - txt_credits_data = txt_credits_data.replace('ě', 'e') + txt_credits_data = unicode(as_txt_credits(contributers)).encode("utf-8") txt_credits = open(argv[1], "w") txt_credits.write(txt_credits_data) @@ -316,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", @@ -340,6 +344,22 @@ contributers = [ "23 February 2005", u"Added support for unix sockets and thence the 'inverse DVI' feature"), + contributer(u"Özgür Uğraş Baran", + "ugras.baran () gmail ! com", + "GPL", + "Re: [patch] new InsetCommandParams", + "m=116124030512963", + "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", @@ -362,7 +382,7 @@ contributers = [ "Re: Licensing of tex2lyx (and perhaps LyX itself?)", "m=110899912526043", "21 February 2005", - u"tex2lyx improvements"), + u"tex2lyx improvements, bug fixes, unicode work"), contributer(u"Hans Bausewein", "hans () comerwell ! xs4all ! nl", @@ -386,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", @@ -444,21 +464,29 @@ contributers = [ "30 March 2005", u"Bug fixes"), - contributer(u"Claudio Coco", - "lacocio () iol ! it", - "", - "", - "", - "", - u"Italian translation"), - contributer(u"Jean-Pierre Chrétien", "chretien () cert ! fr", "GPL", "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", + "GPL", + "Agreement to GNU General Public licence", + "m=113749629514591", + "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", @@ -468,6 +496,14 @@ contributers = [ "22 February 2005", u"Qt2 port"), + contributer(u"Anders Ekberg", + "anek () chalmers ! se", + "GPL", + "License agreement", + "m=113725822602516", + "14 January 2006", + u"Improvements to the Swedish translation of the Windows Installer"), + contributer(u"Matthias Ettrich", "ettrich () trolltech ! com", "GPL", @@ -484,6 +520,22 @@ contributers = [ "25 February 2005", u"New graphics handling scheme and more"), + contributer(u"Dov Feldstern", + "dfeldstern () fastimap ! com", + "GPL", + "Re: Farsi support re-submission plus a little more", + "m=118064913824836", + "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", @@ -492,6 +544,14 @@ contributers = [ "31 March 2005", u"Maintainer of the OS X port(s)"), + contributer(u"José Ramom Flores d'as Seixas", + "fa2ramon () usc ! es", + "GPL", + "Re: Galician translation", + "m=116136920230072", + "20 October 2006", + u"Galician documentation and localization"), + contributer(u"John Michael Floyd", "jmf () pwd ! nsw ! gov ! au", "", @@ -500,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", @@ -514,7 +582,15 @@ contributers = [ "Re: [PATCH] BibTeX annotation support", "m=111130799028250", "20 March 2005", - u""), + 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", @@ -524,13 +600,21 @@ contributers = [ "30 March 2005", u"Bug fixes"), + contributer(u"Ignacio García", + "ignacio.garcia () tele2 ! es", + "GPL", + "Re: es_EmbeddedObjects", + "m=117079592919653", + "06 February 2007", + u"Spanish translation of documentations"), + contributer(u"Michael Gerz", "michael.gerz () teststep ! org", "GPL", "Re: The LyX licence", "m=110909251110103", "22 February 2005", - u"lots of bug reports, German localization, bug fixes"), + u"Change tracking, German localization, bug fixes"), contributer(u"Stefano Ghirlanda", "stefano.ghirlanda () unibo ! it", @@ -549,7 +633,7 @@ contributers = [ u"Improvements to Koma-Script classes"), contributer(u"Hartmut Haase", - "hha4491 () atomstromfrei ! de", + "hha4491 () web ! de", "GPL", "Re: The LyX licence", "m=110915427710167", @@ -563,6 +647,14 @@ contributers = [ "m=110916171925288", "23 February 2005", u"Norwegian documentation and localization"), + + contributer(u"Richard Heck", + "rgheck () comcast ! net", + "GPL", + "GPL Statement", + "m=117501689204059", + "27 March 2007", + u"Layout modules, BibTeX code, various bugs"), contributer(u"Bennett Helm", "bennett.helm () fandm ! edu", @@ -596,6 +688,14 @@ contributers = [ "30 March 2005", u"Fixes to literate programming support"), + contributer(u"Marius Ionescu", + "felijohn () gmail ! com", + "GPL", + "permission to licence", + "m=115935958330941", + "27 September 2006", + u"Romanian localization"), + contributer(u"Bernhard Iselborn", "bernhard.iselborn () sap ! com", "GPL", @@ -604,6 +704,14 @@ contributers = [ "5 April 2005", u"Some minor bug-fixes, FAQ, linuxdoc sgml support"), + contributer(u"Masanori Iwami", + "masa.iwm () gmail ! com", + "GPL", + "Re: [patch] Addition of input method support", + "m=117541512517453", + "1 April 2007", + u"Development of CJK language support"), + contributer(u"Michal Jaegermann", "michal () ellpspace ! math ! ualberta ! ca", "GPL", @@ -612,6 +720,14 @@ contributers = [ "22 February 2005", u"Fix to a very hard-to-find egcs bug that crashed LyX on alpha architecture"), + contributer(u"Harshula Jayasuriya", + "harshula () gmail ! com", + "GPL", + "Re: Bug in export to DocBook", + "m=116884249725701", + "15 January 2007", + u"Fix docbook generation of nested lists"), + contributer(u"David L. Johnson", "david.johnson () lehigh ! edu", "GPL", @@ -658,7 +774,15 @@ contributers = [ "blanket-permission", "m=111054675600338", "11 March 2005", - u""), + u"Gtk reference insertion dialog"), + + contributer(u"Kostantino", + "ciclope10 () alice ! it", + "GPL", + "Permission granted", + "m=115513400621782", + "9 August 2006", + u"Italian localization of the interface"), contributer(u"Michael Koziarski", "koziarski () gmail ! com", @@ -676,6 +800,14 @@ contributers = [ "", u"Hungarian translation and bind file for menu shortcuts"), + contributer(u"Peter Kümmel", + "syntheticpp () gmx ! net", + "GPL", + "License", + "m=114968828021007", + "7 June 2006", + u"Qt4 coding, CMake build system, bug fixing, testing, clean ups, and profiling"), + contributer(u"Bernd Kümmerlen", "bkuemmer () gmx ! net", "GPL", @@ -701,12 +833,12 @@ contributers = [ u"Xforms dialogs and GUI related code"), contributer(u"Jean-Marc Lasgouttes", - "jean-marc.lasgouttes () inria ! fr", + "lasgouttes () lyx ! org", "GPL", "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", @@ -748,13 +880,29 @@ contributers = [ "28 March 2005", u"Added native support for \makebox to mathed. Several bug fixes, both to the source code and to the llncs layout file"), + contributer(u"Tomasz Łuczak", + "tlu () technodat ! com ! pl", + "GPL", + "Re: [Cvslog] lyx-devel po/: ChangeLog pl.po lib/: CREDITS", + "m=113580483406067", + "28 December 2005", + u"Polish translation and mw* layouts files"), + + contributer(u"Hangzai Luo", + "memcache () gmail ! com", + "GPL", + "Re: [patch] tex2lyx crash when full path is given from commandline on Win32", + "m=118326161706627", + "1 July 2007", + u"Bugfixes"), + contributer(u"José Matos", "jamatos () fc ! up ! pt", "GPL", "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", @@ -766,12 +914,28 @@ contributers = [ contributer(u"Tino Meinen", "a.t.meinen () chello ! nl", - "", - "", - "", - "", + "GPL", + "Re: Licensing your contributions to LyX", + "m=113078277722316", + "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", @@ -820,13 +984,29 @@ 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", + "GPL", + "Re: czech translation", + "m=115522417204086", + "10 August 2006", + u"Czech translation, support for the LaTeX package hyperref"), + contributer(u'Bo Peng', "ben.bob () gmail ! com", "GPL", "Re: Python version of configure script (preview version)", "m=112681895510418", "15 September 2005", - u"Conversion of lib/configure to Python"), + 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", @@ -916,6 +1096,14 @@ contributers = [ "22 February 2005", u"provided hollywood and broadway classes for writing screen scripts and plays"), + contributer(u"Bernhard Reiter", + "ockham () gmx ! net", + "GPL", + "Re: RFC: GThesaurus.C et al.", + "m=112912017013984", + "12 October 2005", + u"Gtk frontend"), + contributer(u"Ruurd Reitsma", "rareitsma () yahoo ! com", "GPL", @@ -948,6 +1136,38 @@ contributers = [ "22 February 2005", u"The driving force behind, and maintainer of, the LyX wiki wiki.\nSwedish translation of the Windows installer"), + contributer(u"Bernhard Roider", + "bernhard.roider () sonnenkinder ! org", + "GPL", + "Re: [PATCH] immediatly display saved filename in tab", + "m=117009852211669", + "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", + "The New Hebrew Translation of the Introduction", + "m=116172457024967", + "24 October 2006", + u"Hebrew translation"), + + contributer(u"Szõke Sándor", + "alex () lyx ! hu", + "GPL", + "Contribution to LyX", + "m=113449408830523", + "13 December 2005", + u"Hungarian translation"), + contributer(u"Janus Sandsgaard", "janus () janus ! dk", "GPL", @@ -956,13 +1176,13 @@ contributers = [ "10 June 2005", u"Danish translation of the Windows installer"), - contributer(u"Eulogio Serradilla Rodríguez", - "eulogio.sr () terra ! es", + contributer(u"Stefan Schimanski", + "sts () 1stein ! org", "GPL", - "Re: The LyX licence", - "m=110915313018478", - "23 February 2005", - u"contribution to the spanish internationalization"), + "GPL statement", + "m=117541472517274", + "1 April 2007", + u"font improvements, bug fixes"), contributer(u"Hubert Schreier", "schreier () sc ! edu", @@ -980,6 +1200,14 @@ contributers = [ "", u"international support and kbmaps for slovak, czech, german, ... wysiwyg figure"), + contributer(u"Eulogio Serradilla Rodríguez", + "eulogio.sr () terra ! es", + "GPL", + "Re: The LyX licence", + "m=110915313018478", + "23 February 2005", + u"contribution to the spanish internationalization"), + contributer(u"Miyata Shigeru", "miyata () kusm ! kyoto-u ! ac ! jp", "", @@ -1018,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", @@ -1042,7 +1270,7 @@ contributers = [ "Re: The LyX licence", "m=111833345825278", "9 June 2005", - u"German translation of the Windows installer"), + u"Current documentation maintainer, Windows installer, bug fixes"), contributer(u"David Suárez de Lis", "excalibor () iname ! com", @@ -1100,6 +1328,14 @@ contributers = [ "23 February 2005", u"turkish kbmaps"), + contributer(u"Mostafa Vahedi", + "vahedi58 () yahoo ! com", + "GPL", + "Re: improving Arabic-like language support", + "m=117769964731842", + "27 April 2007", + u"Farsi support and translations"), + contributer(u"Marko Vendelin", "markov () ioc ! ee", "GPL", @@ -1108,6 +1344,14 @@ contributers = [ "22 February 2005", u"Gnome frontend"), + contributer(u"Joost Verburg", + "joostverburg () users ! sourceforge ! net", + "GPL", + "Re: New Windows Installer", + "m=114957884100403", + "6 June 2006", + u"A new and improved Windows installer"), + contributer(u"Martin Vermeer", "martin.vermeer () hut ! fi", "GPL", @@ -1122,7 +1366,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 plain text export support; iletter and dinbrief support"), contributer(u"Pauli Virtanen", "pauli.virtanen () hut ! fi", @@ -1196,6 +1440,22 @@ contributers = [ "28 February 2005", u"Gtk frontend"), + contributer(u"Koji Yokota", + "yokota () res ! otaru-uc ! ac ! jp", + "GPL", + "Re: [PATCH] po/ja.po: Japanese message file for 1.5.0 (merged from", + "m=118033214223720", + "28 May 2007", + u"Japanese translation"), + + contributer(u"Abdelrazak Younes", + "younes.a () free ! fr", + "GPL", + "Re: [Patch] RFQ: ParagraphList Rewrite", + "m=113993670602439", + "14 February 2006", + u"Qt4 frontend, editing optimisations"), + contributer(u"Henner Zeller", "henner.zeller () freiheit ! com", "GPL", @@ -1204,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", "", @@ -1215,3 +1491,4 @@ contributers = [ if __name__ == "__main__": main(sys.argv, contributers) +