]> git.lyx.org Git - lyx.git/blobdiff - lib/generate_contributions.py
Correct index
[lyx.git] / lib / generate_contributions.py
index 17468ef66e028e3913ed4254d2658d77117ea427..94e963f2da2ccf6ed035e05102b007133c3cd3f1 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python3
 # -*- coding: utf-8 -*-
 
 '''
 # -*- coding: utf-8 -*-
 
 '''
@@ -53,7 +53,7 @@ class contributor:
      def as_txt_credits(self):
           result = [ '@b%s\n' % self.name ]
           if len(self.contact) != 0:
      def as_txt_credits(self):
           result = [ '@b%s\n' % self.name ]
           if len(self.contact) != 0:
-               if self.contact.find("http") != -1:
+               if self.contact.find("https") != -1:
                     result.append('@i%s\n' % self.contact)
                else:
                     result.append('@iE-mail: %s\n' % self.contact)
                     result.append('@i%s\n' % self.contact)
                else:
                     result.append('@iE-mail: %s\n' % self.contact)
@@ -163,7 +163,7 @@ $email = str_replace(' () ', '@', $email);
 $email = str_replace(' ! ', '.', $email);
 
 if (isset($email) && $email != "") {
 $email = str_replace(' ! ', '.', $email);
 
 if (isset($email) && $email != "") {
-        if (strncasecmp($email,"http",4) == 0)
+        if (strncasecmp($email,"https",4) == 0)
             $output =$output. "<dt><b>[[${email} | ${name}]]</b>";
          else
             $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
             $output =$output. "<dt><b>[[${email} | ${name}]]</b>";
          else
             $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
@@ -234,7 +234,7 @@ $output=$output. "
 
 if (isset($msg_ref) && $msg_ref != "") {
         $msg_ref = htmlspecialchars("$msg_ref");
 
 if (isset($msg_ref) && $msg_ref != "") {
         $msg_ref = htmlspecialchars("$msg_ref");
-        $output=$output. "[[http://marc.info/?l=lyx-devel&amp;" . ${msg_ref} . "|" . ${msg_title} . "]]";
+        $output=$output. "[[https://marc.info/?l=lyx-devel&amp;" . ${msg_ref} . "|" . ${msg_title} . "]]";
 } else {
         $output=$output. "${msg_title}";
 }
 } else {
         $output=$output. "${msg_title}";
 }
@@ -251,7 +251,7 @@ function blanket_output() {
 $output=$output."<p>
      The following people hereby grant permission to license their
      contributions to LyX under the
 $output=$output."<p>
      The following people hereby grant permission to license their
      contributions to LyX under the
-     [[http://www.opensource.org/licenses/gpl-license.php |
+     [[https://opensource.org/licenses/gpl-license |
      Gnu General Public License]], version 2 or later.
 </p>
 
      Gnu General Public License]], version 2 or later.
 </p>
 
@@ -269,7 +269,7 @@ $output=$output."
 <p>
      The following people hereby grant permission to license their
      contributions to LyX under the
 <p>
      The following people hereby grant permission to license their
      contributions to LyX under the
-     [[http://www.opensource.org/licenses/artistic-license-2.0.php |
+     [[https://opensource.org/licenses/Artistic-2.0 |
      Artistic License 2]].
 </p>
 
      Artistic License 2]].
 </p>
 
@@ -300,28 +300,31 @@ def main(argv, contributors):
          txt_credits_data = unicode(as_txt_credits(contributors)).encode("utf-8")
      else:
          txt_credits_data = str(as_txt_credits(contributors)).encode("utf-8")
          txt_credits_data = unicode(as_txt_credits(contributors)).encode("utf-8")
      else:
          txt_credits_data = str(as_txt_credits(contributors)).encode("utf-8")
-     txt_credits = open(argv[1], "w")
+     txt_credits = open(argv[1], "wb")
+     txt_credits.write(b"# Do not edit this file. It is created by the " \
+         b"script generate_contributions.py\n# and any direct change to " \
+         b"this file will be overwritten.\n")
      txt_credits.write(txt_credits_data)
 
      if sys.version_info[0] < 3:
          php_credits_data = unicode(as_php_credits(contributors, argv[2])).encode("utf-8")
      else:
          php_credits_data = str(as_php_credits(contributors, argv[2])).encode("utf-8")
      txt_credits.write(txt_credits_data)
 
      if sys.version_info[0] < 3:
          php_credits_data = unicode(as_php_credits(contributors, argv[2])).encode("utf-8")
      else:
          php_credits_data = str(as_php_credits(contributors, argv[2])).encode("utf-8")
-     php_credits = open(argv[2], "w")
+     php_credits = open(argv[2], "wb")
      php_credits.write(php_credits_data)
 
      if sys.version_info[0] < 3:
          php_blanket_data = unicode(as_php_blanket(contributors, argv[3])).encode("utf-8")
      else:
          php_blanket_data = str(as_php_blanket(contributors, argv[3])).encode("utf-8")
      php_credits.write(php_credits_data)
 
      if sys.version_info[0] < 3:
          php_blanket_data = unicode(as_php_blanket(contributors, argv[3])).encode("utf-8")
      else:
          php_blanket_data = str(as_php_blanket(contributors, argv[3])).encode("utf-8")
-     php_blanket = open(argv[3], "w")
+     php_blanket = open(argv[3], "wb")
      php_blanket.write(php_blanket_data)
 
      if sys.version_info[0] < 3:
          warning_data =  unicode(collate_incomplete(contributors) + '\n').encode("utf-8")
      else:
          warning_data =  str(collate_incomplete(contributors) + '\n').encode("utf-8")
      php_blanket.write(php_blanket_data)
 
      if sys.version_info[0] < 3:
          warning_data =  unicode(collate_incomplete(contributors) + '\n').encode("utf-8")
      else:
          warning_data =  str(collate_incomplete(contributors) + '\n').encode("utf-8")
-     sys.stderr.write(warning_data)
+     sys.stderr.write(warning_data.decode('utf-8'))
 
 
 # Store the raw data.
 
 
 # Store the raw data.
@@ -469,7 +472,7 @@ contributors = [
                  "The LyX licence",
                  "m=123100818303101",
                  "3 January 2009",
                  "The LyX licence",
                  "m=123100818303101",
                  "3 January 2009",
-                 u"small bugfixes, CMake build system, Slovak translation"),
+                 u"CMake build system, Slovak translation, Advanced search with format"),
 
      contributor(u"Jacob Bishop",
                  "bishop.jacob () gmail ! com",
 
      contributor(u"Jacob Bishop",
                  "bishop.jacob () gmail ! com",
@@ -600,7 +603,7 @@ contributors = [
                  u"Ukrainian translation"),
 
      contributor(u"Tommaso Cucinotta",
                  u"Ukrainian translation"),
 
      contributor(u"Tommaso Cucinotta",
-                 "cucinotta () sssup !it",
+                 "cucinotta () sssup ! it",
                  "GPL",
                  "Re: View Menu proposal",
                  "m=119030065212621",
                  "GPL",
                  "Re: View Menu proposal",
                  "m=119030065212621",
@@ -647,6 +650,14 @@ contributors = [
                  "27 April 2014",
                  u"Chinese (simplified) translations"),
 
                  "27 April 2014",
                  u"Chinese (simplified) translations"),
 
+     contributor(u"Alexander Dunlap",
+                 "alexander.dunlap () gmail ! com",
+                 "GPL",
+                 "licensing statement",
+                 "m=151914230920804",
+                 "20 February 2018",
+                 u"Improvement to recent files support"),
+
      contributor(u"Anders Ekberg",
                  "anek () chalmers ! se",
                  "GPL",
      contributor(u"Anders Ekberg",
                  "anek () chalmers ! se",
                  "GPL",
@@ -735,6 +746,14 @@ contributors = [
                  "16 June 2005",
                  u"Italian translations, many bug fixes and features"),
 
                  "16 June 2005",
                  u"Italian translations, many bug fixes and features"),
 
+     contributor(u"Gilbert J. M. Forkel",
+                 "gilbert () erlangen ! ccc ! de",
+                 "GPL",
+                 "GPL",
+                 "m=153286983821872",
+                 "29 July 2018",
+                 u"Bug fixes"),
+
      contributor(u"Eitan Frachtenberg",
                  "sky8an () gmail ! com",
                  "GPL",
      contributor(u"Eitan Frachtenberg",
                  "sky8an () gmail ! com",
                  "GPL",
@@ -871,8 +890,8 @@ contributors = [
                  "23 December 2016",
                  u"File opening enhancement"),
 
                  "23 December 2016",
                  u"File opening enhancement"),
 
-     contributor(u"Richard Heck",
-                 "rgheck () comcast ! net",
+     contributor(u"Richard Kimberly Heck",
+                 "rikiheck () lyx ! org",
                  "GPL",
                  "GPL Statement",
                  "m=117501689204059",
                  "GPL",
                  "GPL Statement",
                  "m=117501689204059",
@@ -927,6 +946,14 @@ contributors = [
                  "6 October 2013",
                  u"Dialog usability fix"),
 
                  "6 October 2013",
                  u"Dialog usability fix"),
 
+     contributor(u"Winfred Huang",
+                 "tone90999 () hotmail ! com",
+                 "GPL",
+                 "License for Chinese translation",
+                 "m=153274007430136",
+                 "28 July 2018",
+                 u"Simplified Chinese Localization"),
+
      contributor(u"John Hudson",
                  "j.r.hudson () virginmedia ! com",
                  "GPL",
      contributor(u"John Hudson",
                  "j.r.hudson () virginmedia ! com",
                  "GPL",
@@ -991,6 +1018,14 @@ contributors = [
                  "22 February 2005",
                  u"Public relations, feedback, documentation and support"),
 
                  "22 February 2005",
                  u"Public relations, feedback, documentation and support"),
 
+     contributor(u"Joice Joseph",
+                 "joicey () yandex ! com",
+                 "GPL",
+                 "Re: patch: added document language malayalam",
+                 "m=155214496414909",
+                 "9 March 2019",
+                 u"Support for Malayalam"),
+
      contributor(u"Robert van der Kamp",
                  "robnet () wxs ! nl",
                  "GPL",
      contributor(u"Robert van der Kamp",
                  "robnet () wxs ! nl",
                  "GPL",
@@ -1024,7 +1059,7 @@ contributors = [
                  u"Original name that is now two characters shorter"),
 
      contributor(u"KDE Artists",
                  u"Original name that is now two characters shorter"),
 
      contributor(u"KDE Artists",
-                 "http://artist.kde.org/",
+                 "",
                  "",
                  "",
                  "",
                  "",
                  "",
                  "",
@@ -1112,7 +1147,7 @@ contributors = [
                  u"Initial version of the koma-script textclasses"),
 
      contributor(u"Joel Kulesza",
                  u"Initial version of the koma-script textclasses"),
 
      contributor(u"Joel Kulesza",
-                 "jkulesza () gmail ! com>",
+                 "jkulesza () gmail ! com",
                  "GPL",
                  "License to Publish Work",
                  "m=147735429207382",
                  "GPL",
                  "License to Publish Work",
                  "m=147735429207382",
@@ -1184,7 +1219,7 @@ contributors = [
                  u"Added native support for \makebox to mathed. Several bug fixes, both to the source code and to the llncs layout file"),
 
      contributor(u"LibreOffice Team",
                  u"Added native support for \makebox to mathed. Several bug fixes, both to the source code and to the llncs layout file"),
 
      contributor(u"LibreOffice Team",
-                 "http://www.libreoffice.org/",
+                 "https://www.libreoffice.org/",
                  "LGPL",
                  "",
                  "",
                  "LGPL",
                  "",
                  "",
@@ -1208,7 +1243,7 @@ contributors = [
                  u"Bugfixes"),
 
      contributor(u"Mohamed Magdy",
                  u"Bugfixes"),
 
      contributor(u"Mohamed Magdy",
-                 "physicist2010 () gmail ! com>",
+                 "physicist2010 () gmail ! com",
                  "GPL",
                  "A permission to use my Arabic-Translation for LyX?",
                  "m=126877445318267",
                  "GPL",
                  "A permission to use my Arabic-Translation for LyX?",
                  "m=126877445318267",
@@ -1352,7 +1387,7 @@ contributors = [
                  u"config. handling enhancements, bugfixes, printer enhancements path mingling"),
 
      contributor(u"Jens Nöckel",
                  u"config. handling enhancements, bugfixes, printer enhancements path mingling"),
 
      contributor(u"Jens Nöckel",
-                 "noeckel () uoregon !edu",
+                 "noeckel () uoregon ! edu",
                  "GPL",
                  "GPL statement",
                  "m=128485749516885",
                  "GPL",
                  "GPL statement",
                  "m=128485749516885",
@@ -1360,7 +1395,7 @@ contributors = [
                  u"Mac OS X enhancements"),
 
      contributor(u"Rob Oakes",
                  u"Mac OS X enhancements"),
 
      contributor(u"Rob Oakes",
-                 "lyx-devel () oak-tree ! us>",
+                 "lyx-devel () oak-tree ! us",
                  "GPL",
                  "Outline Contributions",
                  "m=124615188102843",
                  "GPL",
                  "Outline Contributions",
                  "m=124615188102843",
@@ -1368,7 +1403,7 @@ contributors = [
                  u"Improvements to the outliner."),
 
      contributor(u"Oxygen Team",
                  u"Improvements to the outliner."),
 
      contributor(u"Oxygen Team",
-                 "http://www.oxygen-icons.org/",
+                 "https://techbase.kde.org/Projects/Oxygen",
                  "LGPL",
                  "",
                  "",
                  "LGPL",
                  "",
                  "",
@@ -1383,6 +1418,14 @@ contributors = [
                  "30 March 2005",
                  u"Support for two-column figure (figure*) and table (table*) environments.  Fixed minibuffer entry of floats."),
 
                  "30 March 2005",
                  u"Support for two-column figure (figure*) and table (table*) environments.  Fixed minibuffer entry of floats."),
 
+     contributor(u"Isaac Oscar Gariano",
+                 "IsaacOscar () live ! com ! au",
+                 "GPL",
+                 "Re: [PATCH] Make math autocorrrect work with more than 2 chars",
+                 "m=155874284418501",
+                 "25 May 2019",
+                 u"Improvements to math autocorrect"),
+
      contributor(u"Gilad Orr",
                  "giladorr () gmail ! com",
                  "GPL",
      contributor(u"Gilad Orr",
                  "giladorr () gmail ! com",
                  "GPL",
@@ -1639,6 +1682,14 @@ contributors = [
                  "29 January 2007",
                  u"Various bug fixes"),
 
                  "29 January 2007",
                  u"Various bug fixes"),
 
+     contributor(u"Michael Roitzsch",
+                 "reactorcontrol () icloud ! com",
+                 "GPL",
+                 "Re: TeXFiles.py compatibility with Nix on macOS",
+                 "m=156146891826580",
+                 "25 June 2019",
+                 u"Fixes for the Nix package manager"),
+
      contributor(u"Jim Rotmalm",
                  "jim.rotmalm () gmail ! com",
                  "GPL",
      contributor(u"Jim Rotmalm",
                  "jim.rotmalm () gmail ! com",
                  "GPL",
@@ -1839,6 +1890,14 @@ contributors = [
                  "9 June 2005",
                  u"Current documentation maintainer, Windows installer, bug fixes"),
 
                  "9 June 2005",
                  u"Current documentation maintainer, Windows installer, bug fixes"),
 
+     contributor(u"Niko Strijbol",
+                 "strijbol ! niko () gmail ! com",
+                 "GPL",
+                 "License agreement (cf. Dutch translations)",
+                 "m=156107304318577",
+                 "20 June 2019",
+                 u"Dutch translation of the user interface"),
+
      contributor(u"David Suárez de Lis",
                  "excalibor () iname ! com",
                  "",
      contributor(u"David Suárez de Lis",
                  "excalibor () iname ! com",
                  "",
@@ -1951,6 +2010,14 @@ contributors = [
                  "22 February 2005",
                  u"support for optional argument in sections/captions svjour/svjog, egs and llncs document classes. Lot of bug hunting (and fixing!)"),
 
                  "22 February 2005",
                  u"support for optional argument in sections/captions svjour/svjog, egs and llncs document classes. Lot of bug hunting (and fixing!)"),
 
+     contributor(u"Veselin",
+                 "vveesskkoo () gmail ! com",
+                 "GPL",
+                 "Re: po/bg.po update",
+                 "m=155531922001223",
+                 "15 April 2019",
+                 u"Bulgarian localization"),
+
      contributor(u"Jürgen Vigna",
                  "jug () lyx ! org",
                  "GPL",
      contributor(u"Jürgen Vigna",
                  "jug () lyx ! org",
                  "GPL",
@@ -2031,12 +2098,12 @@ contributors = [
                  "",
                  u"Maintainer of the @lists.lyx.org mailing-lists"),
 
                  "",
                  u"Maintainer of the @lists.lyx.org mailing-lists"),
 
-     contributor(u"Serge Winitzki",
-                 "winitzki () erebus ! phys ! cwru ! edu",
-                 "",
-                 "",
-                 "",
-                 "",
+     contributor(u"Sergei Winitzki",
+                 "winitzki () gmail ! com",
+                 "GPL",
+                 "Re: patch to include latest supported programming languages in listings.tex",
+                 "m=155530602429557",
+                 "15 April 2019",
                  u"updates to the Scientific Word bindings"),
 
      contributor(u"Stephan Witt",
                  u"updates to the Scientific Word bindings"),
 
      contributor(u"Stephan Witt",
@@ -2047,6 +2114,14 @@ contributors = [
                  "22 February 2005",
                  u"support for CVS revision control, native spell checker interface for Mac OS"),
 
                  "22 February 2005",
                  u"support for CVS revision control, native spell checker interface for Mac OS"),
 
+     contributor(u"Jürgen Womser-Schütz",
+                 "jws1954 () gmx ! de",
+                 "GPL",
+                 "Re: Bug #11484",
+                 "m=154990590319314",
+                 "11 February 2019",
+                 u"Improvements to the Include File dialog"),
+
      contributor(u"Russ Woodroofe",
                  "paranoia () math ! cornell ! edu",
                  "GPL",
      contributor(u"Russ Woodroofe",
                  "paranoia () math ! cornell ! edu",
                  "GPL",