where the arguments are the names of the generated files.
'''
-import codecs, sys
+import codecs, sys, textwrap
def xml_escape(s):
s = s.replace("&", "&")
address = address.replace(" ! ", ".")
contact = "%s@%s" % (ename, address)
result.append('@iE-mail: %s\n' % contact)
- result.append(' %s\n' % self.credit)
+ result.append(' %s\n' % self.credit.replace('\n', '\n '))
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):
def usage(prog_name):
- return "Usage: %s <CREDITS> <credits.php> <blanket-permission.php" % prog_name
+ return "Usage: %s <CREDITS> <credits.php> <blanket-permission.php>" % prog_name
def collate_incomplete(contributers):
missing_licence.append(contributer.name)
return '''WARNING!
-The following contributers to not have a CREDITS entry:
+The following contributers do not have a CREDITS entry:
%s
These ones have no explicit licence statement:
// Full name of this file (relative path from LyX home page)
$file_full="about/%s";
-include("start.php3");
+include("start.php");
?>
''' % ( title, file )
def footer():
return '''
<?php
-include("end.php3");
+include("end.php");
?>
'''
echo "
<dt>
- <b>${name}</b>";
+ <b>${name}</b>
+";
if (isset($email) && $email != "")
echo " <i><${email}></i>";
-echo " </dt>
+$msg = ereg_replace("\\n *", "\\n ", ltrim($msg));
+
+echo "
+ </dt>
<dd>
${msg}
</dd>";
mailing list. Thanks.
</p>
-<dl>
-<?php''')
+<dl><?php''')
+
+ wrapper = textwrap.TextWrapper(width=60, subsequent_indent=" ")
for contributer in contributers:
if len(contributer.credit) != 0:
- results.append(contributer.as_php_credits())
+ results.append(contributer.as_php_credits(wrapper))
results.append('''?>
Gnu General Public Licence</a>, version 2 or later.
</p>
-<dl>
-<?php''')
+<dl><?php''')
for contributer in contributers:
if contributer.licence == "GPL":
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)
"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"Yves Bastide",
"yves.bastide () irisa ! fr",
"GPL",
"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",
"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",
"",
u"Catalan translation"),
+ contributer(u"Humberto Nicolás Castejón",
+ "beconico () gmail ! com",
+ "GPL",
+ "Re: The LyX licence",
+ "m=111833854105023",
+ "9 June 2005",
+ u"Spanish translation of the Windows installer"),
+
contributer(u"Matěj Cepl",
"matej () ceplovi ! cz",
"GPL",
"30 March 2005",
u"Bug fixes"),
+ 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"),
+
contributer(u"Claudio Coco",
- "lacocio () iol ! it",
- "",
- "",
- "",
- "",
+ "lacocio () libero ! it",
+ "GPL",
+ "Agreement to GNU General Public licence",
+ "m=113749629514591",
+ "17 January 2006",
u"Italian translation"),
contributer(u"Matthias Kalle Dalheimer",
"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",
"31 March 2005",
u"Maintainer of the OS X port(s)"),
- contributer(u"Eitan Frachtenberg",
- "sky8an () gmail ! com",
+ contributer(u"José Ramom Flores d'as Seixas",
+ "fa2ramon () usc ! es",
"GPL",
- "Re: [PATCH] BibTeX annotation support",
- "m=111130799028250",
- "20 March 2005",
- u""),
+ "Re: Galician translation",
+ "m=116136920230072",
+ "20 October 2006",
+ u"Galician documentation and localization"),
contributer(u"John Michael Floyd",
"jmf () pwd ! nsw ! gov ! au",
"",
u"Bug fix to the spellchecker"),
+ contributer(u"Enrico Forestieri",
+ "forenr () tlc ! unipr ! it",
+ "GPL",
+ "Re: lyxpreview2ppm.py",
+ "m=111894292115287",
+ "16 June 2005",
+ u"Italian translation of the Windows installer"),
+
+ contributer(u"Eitan Frachtenberg",
+ "sky8an () gmail ! com",
+ "GPL",
+ "Re: [PATCH] BibTeX annotation support",
+ "m=111130799028250",
+ "20 March 2005",
+ u"BibTeX annotation support"),
+
contributer(u"Edscott Wilson Garcia",
"edscott () xfce ! org",
"GPL",
"30 March 2005",
u"Bug fixes"),
+ contributer(u"Michael Gerz",
+ "michael.gerz () teststep ! org",
+ "GPL",
+ "Re: The LyX licence",
+ "m=110909251110103",
+ "22 February 2005",
+ u"Change tracking, German localization, bug fixes"),
+
contributer(u"Stefano Ghirlanda",
"stefano.ghirlanda () unibo ! it",
"GPL",
"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",
"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",
"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",
"",
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",
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",
"Re: Licensing of tex2lyx (and perhaps LyX itself?)",
"m=110899657530749",
"21 February 2005",
- u"Qt2 frontend GUI-I-fication of several popups"),
+ u"Qt2 frontend GUI-I-fication of several popups.\nDutch translation of the Windows installer"),
contributer(u"John Levon",
"levon () movementarian ! org",
"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"José Matos",
"jamatos () fc ! up ! pt",
"GPL",
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"Iñaki Larrañaga Murgoitio",
"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",
"25 February 2005",
u"Support for kluwer and ijmpd document classes"),
+ contributer(u'Sanda Pavel',
+ "ps () ucw !cz",
+ "GPL",
+ "Re: czech translation",
+ "m=115522417204086",
+ "10 august 2006",
+ u"Czech translation"),
+
+ 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 all shell scripts to Python, session, view-source, auto-view features and scons build system."),
+
contributer(u"Joacim Persson",
"sp2joap1 () ida ! his ! se",
"",
"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",
"",
"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",
u"Creator of the native port of LyX to Windows"),
contributer(u"Bernd Rellermeyer",
- "100.41728 () germanynet ! de",
- "",
- "",
- "",
- "",
+ "bernd.rellermeyer () arcor ! de",
+ "GPL",
+ "Re: The LyX licence",
+ "m=111317142419908",
+ "10 April 2005",
u"Support for Koma-Script family of classes"),
contributer(u"Michael Ressler",
"Re: The LyX licence",
"m=110910933124056",
"22 February 2005",
- u"The driving force behind, and maintainer of, the LyX wiki wiki."),
+ u"The driving force behind, and maintainer of, the LyX wiki wiki.\nSwedish translation of the Windows installer"),
+
+ 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",
+ "Re: The LyX licence",
+ "m=111839355328045",
+ "10 June 2005",
+ u"Danish translation of the Windows installer"),
contributer(u"Eulogio Serradilla Rodríguez",
"eulogio.sr () terra ! es",
"23 February 2005",
u"contribution to the spanish internationalization"),
- contributer(u"Michael Schmitt",
- "michael.schmitt () teststep ! org",
- "GPL",
- "Re: The LyX licence",
- "m=110909251110103",
- "22 February 2005",
- u"lots of bug reports and purify runs"),
-
contributer(u"Hubert Schreier",
"schreier () sc ! edu",
"",
"24 February 2005",
u"fix bugs with error insets placement"),
+ contributer(u"Uwe Stöhr",
+ "uwestoehr () web ! de",
+ "GPL",
+ "Re: The LyX licence",
+ "m=111833345825278",
+ "9 June 2005",
+ u"German translation of the Windows installer"),
+
contributer(u"David Suárez de Lis",
"excalibor () iname ! com",
"",
"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",
"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",
"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",
"28 February 2005",
u"Gtk frontend"),
+ 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",
"",
u"bug reports and small fixes") ]
-
if __name__ == "__main__":
main(sys.argv, contributers)