GUI: U32: Update credits.pl script to not write ascii string

- Also generate new credits file to reflect above changes
- Remove ascii checks from about dialog
This commit is contained in:
aryanrawlani28 2020-06-29 00:21:15 +05:30 committed by Eugene Sandulenko
parent b6278f3400
commit cec0985d5a
3 changed files with 1 additions and 88 deletions

View File

@ -329,19 +329,11 @@ sub begin_section {
if ($section_level eq 0) {
# TODO: Would be nice to have a 'fat' or 'large' mode for
# headlines...
my $ascii_title = html_entities_to_ascii($title);
$title = html_entities_to_cpp($title);
if ($ascii_title ne $title) {
print '"A1""'.$ascii_title.'",' . "\n";
}
print '"C1""'.$title.'",' . "\n";
print '"",' . "\n";
} else {
my $ascii_title = html_entities_to_ascii($title);
$title = html_entities_to_cpp($title);
if ($ascii_title ne $title) {
print '"A1""'.$ascii_title.'",' . "\n";
}
print '"C1""'.$title.'",' . "\n";
}
} elsif ($mode eq "XML-DOC") {
@ -504,12 +496,7 @@ sub add_person {
}
} elsif ($mode eq "CPP") {
$name = $nick if $name eq "";
my $ascii_name = html_entities_to_ascii($name);
$name = html_entities_to_cpp($name);
if ($ascii_name ne $name) {
print '"A0""'.$ascii_name.'",' . "\n";
}
print '"C0""'.$name.'",' . "\n";
# Print desc wrapped

View File

@ -152,22 +152,8 @@ void AboutDialog::addLine(const U32String &str) {
strBeginItr += 2;
U32String renderStr(strBeginItr, str.end());
static Common::U32String asciiStr;
if (format[0] == 'A') {
bool useAscii = false;
#ifdef USE_TRANSLATION
useAscii = TransMan.getCurrentCharset().equals("ASCII");
#endif
if (useAscii)
asciiStr = renderStr;
return;
}
U32StringArray wrappedLines;
if (!asciiStr.empty()) {
g_gui.getFont().wordWrapText(asciiStr, _w - 2 * _xOff, wrappedLines);
asciiStr.clear();
} else
g_gui.getFont().wordWrapText(renderStr, _w - 2 * _xOff, wrappedLines);
g_gui.getFont().wordWrapText(renderStr, _w - 2 * _xOff, wrappedLines);
for (U32StringArray::const_iterator i = wrappedLines.begin(); i != wrappedLines.end(); ++i) {
_lines.push_back(format + *i);

View File

@ -6,7 +6,6 @@ static const char *credits[] = {
"C0""Eugene Sandulenko",
"",
"C1""PR Office",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C2""Public Relations Officer, Project Administrator",
"C0""Eugene Sandulenko",
@ -22,7 +21,6 @@ static const char *credits[] = {
"",
"C1""Engine Teams",
"C1""SCUMM",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"C0""James Brown",
"C2""(retired)",
@ -51,7 +49,6 @@ static const char *credits[] = {
"C0""Eugene Sandulenko",
"",
"C1""Access",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"",
@ -72,7 +69,6 @@ static const char *credits[] = {
"C2""(retired)",
"",
"C1""AGOS",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"C0""Paul Gilbert",
"C0""Travis Howell",
@ -82,9 +78,7 @@ static const char *credits[] = {
"C2""(retired)",
"",
"C1""Avalanche",
"A0""Peter Bozso",
"C0""Peter Bozs\363",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"",
"C1""BBVS",
@ -97,14 +91,11 @@ static const char *credits[] = {
"C0""Eugene Sandulenko",
"",
"C1""CGE",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"",
"C1""CGE2",
"A0""Peter Bozso",
"C0""Peter Bozs\363",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"",
@ -142,9 +133,7 @@ static const char *credits[] = {
"C0""Tobia Tesan",
"",
"C1""DM",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"A0""Bendeguz Nagy",
"C0""Bendeg\372z Nagy",
"",
"C1""Draci",
@ -165,7 +154,6 @@ static const char *credits[] = {
"C0""Thierry Crozat",
"",
"C1""DreamWeb",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"C0""Bertrand Augereau",
"C0""Filippos Karapetis",
@ -189,14 +177,11 @@ static const char *credits[] = {
"C2""TADS interpreter",
"",
"C1""Gnap",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Benjamin Haisch",
"",
"C1""Gob",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Sven Hesse",
"C0""Eugene Sandulenko",
@ -215,12 +200,10 @@ static const char *credits[] = {
"C2""GSoC student",
"",
"C1""Hopkins",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"",
"C1""Hugo",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Oystein Eftevaag",
"C0""Eugene Sandulenko",
@ -230,13 +213,11 @@ static const char *credits[] = {
"C0""Eric Fry",
"",
"C1""Kingdom",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Thomas Fach-Pedersen",
"C0""Hein-Pieter van Braam-Stewart",
"",
"C1""Kyra",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"C2""VQA Player",
"C0""Oystein Eftevaag",
@ -247,7 +228,6 @@ static const char *credits[] = {
"C2""(retired)",
"",
"C1""Lab",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Filippos Karapetis",
"C0""Willem Jan Palenstijn",
@ -260,7 +240,6 @@ static const char *credits[] = {
"C0""Julien Templier",
"",
"C1""Lilliput",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"",
"C1""Lure",
@ -275,7 +254,6 @@ static const char *credits[] = {
"C0""Filippos Karapetis",
"",
"C1""MADS",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"C0""Filippos Karapetis",
@ -291,14 +269,11 @@ static const char *credits[] = {
"C0""David Fioramonti",
"",
"C1""Mortevielle",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"",
"C1""MutationOfJB",
"A0""Lubomir Remak",
"C0""Lubom\355r Rem\341k",
"A0""Miroslav Remak",
"C0""Miroslav Rem\341k",
"",
"C1""Neverhood",
@ -326,7 +301,6 @@ static const char *credits[] = {
"C1""Prince",
"C0""Eugene Sandulenko",
"C0""Lukasz Watka",
"A0""Kamil Zbrog",
"C0""Kamil Zbr\363g",
"",
"C1""Queen",
@ -337,7 +311,6 @@ static const char *credits[] = {
"C0""Joost Peters",
"",
"C1""SAGA",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"C0""Daniel Balsom",
"C2""Original engine reimplementation author (retired)",
@ -364,7 +337,6 @@ static const char *credits[] = {
"C0""Martin Kiewitz",
"",
"C1""Sky",
"A0""Robert Goeffringmann",
"C0""Robert G\366ffringmann",
"C2""(retired)",
"C0""Oliver Kiehl",
@ -373,7 +345,6 @@ static const char *credits[] = {
"",
"C1""Supernova",
"C0""Joseph-Eugene Winzer",
"A0""Jaromir Wysoglad",
"C0""Jarom\355r Wysoglad",
"C0""Thierry Crozat",
"",
@ -382,12 +353,10 @@ static const char *credits[] = {
"C2""PSX version support",
"C0""Thierry Crozat",
"C2""Mac version support",
"A0""Robert Goeffringmann",
"C0""Robert G\366ffringmann",
"C2""(retired)",
"",
"C1""Sword2",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"C0""Fabio Battaglia",
"C2""PSX version support",
@ -395,7 +364,6 @@ static const char *credits[] = {
"C2""(retired)",
"",
"C1""Sword2.5",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"C0""Paul Gilbert",
"C0""Max Horn",
@ -409,7 +377,6 @@ static const char *credits[] = {
"C0""Vladimir Menshakov",
"",
"C1""Tinsel",
"A0""Torbjorn Andersson",
"C0""Torbj\366rn Andersson",
"C0""Fabio Battaglia",
"C2""PSX version support",
@ -430,7 +397,6 @@ static const char *credits[] = {
"C0""Filippos Karapetis",
"",
"C1""Tony",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"C0""Alyssa Milburn",
@ -438,13 +404,11 @@ static const char *credits[] = {
"C1""Toon",
"C0""Sylvain Dupont",
"",
"A1""Touche",
"C1""Touch\351",
"C0""Gregory Montoir",
"C2""(retired)",
"",
"C1""TsAGE",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"",
@ -456,7 +420,6 @@ static const char *credits[] = {
"C0""Paul Gilbert",
"C0""Matthew Duggan",
"C0""Matthew Jimenez",
"A0""Daniel c. Wuerl",
"C0""Daniel c. W\374rl",
"C2""(Nuvie)",
"C0""Eric Fry",
@ -469,7 +432,6 @@ static const char *credits[] = {
"C2""(Nuvie)",
"C0""Malignant Manor",
"C2""(Nuvie)",
"A0""Markus Niemistoe",
"C0""Markus Niemist\366",
"C2""(Nuvie)",
"C0""Michael Fink",
@ -496,7 +458,6 @@ static const char *credits[] = {
"C2""(Pentagram)",
"",
"C1""Voyeur",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C0""Paul Gilbert",
"",
@ -504,7 +465,6 @@ static const char *credits[] = {
"C0""Eugene Sandulenko",
"",
"C1""Wintermute",
"A0""Einar Johan T. Somaaen",
"C0""Einar Johan T. S\370m\345en",
"C0""Tobia Tesan",
"",
@ -538,7 +498,6 @@ static const char *credits[] = {
"",
"C1""iPhone / iPad",
"C0""Oystein Eftevaag",
"A0""Vincent Benony",
"C0""Vincent B\351nony",
"C0""Thierry Crozat",
"",
@ -577,7 +536,6 @@ static const char *credits[] = {
"C2""(retired)",
"",
"C1""PlayStation 2",
"A0""Robert Goeffringmann",
"C0""Robert G\366ffringmann",
"C2""(retired)",
"C0""Max Lingua",
@ -639,7 +597,6 @@ static const char *credits[] = {
"C2""Heavily improved de-/encoder for DXA videos",
"C0""Jochen Hoenicke",
"C2""Speaker & PCjr sound support, AdLib work (retired)",
"A0""Daniel ter Laan",
"C0""Dani\353l ter Laan",
"C2""Restoring original Drascula tracks, and writing convert_dxa.bat",
"C0""Chris Page",
@ -706,11 +663,9 @@ static const char *credits[] = {
"",
"C1""Packages",
"C1""AmigaOS 4",
"A0""Hans-Joerg Frieden",
"C0""Hans-J\366rg Frieden",
"C2""(retired)",
"C0""Hubert Maier",
"A0""Juha Niemimaki",
"C0""Juha Niemim\344ki",
"C2""(retired)",
"",
@ -745,7 +700,6 @@ static const char *credits[] = {
"",
"C1""MorphOS",
"C0""Fabien Coeurjoly",
"A0""Ruediger Hanke",
"C0""R\374diger Hanke",
"C2""(retired)",
"",
@ -787,7 +741,6 @@ static const char *credits[] = {
"C0""Jordi Vilalta Prat",
"",
"C1""Czech",
"A0""Zbynik Schwarz",
"C0""Zbyn\354k Schwarz",
"",
"C1""Danish",
@ -816,13 +769,10 @@ static const char *credits[] = {
"C1""Italian",
"C0""Matteo Angelino",
"",
"A1""Norwegian (Bokmaal)",
"C1""Norwegian (Bokm\345l)",
"A0""Einar Johan Somaaen",
"C0""Einar Johan S\370m\345en",
"",
"C1""Norwegian (Nynorsk)",
"A0""Einar Johan Somaaen",
"C0""Einar Johan S\370m\345en",
"",
"C1""Polish",
@ -835,7 +785,6 @@ static const char *credits[] = {
"C0""Eugene Sandulenko",
"",
"C1""Spanish",
"A0""Tomas Maidagan",
"C0""Tom\341s Maidagan",
"C0""Jordi Vilalta Prat",
"",
@ -850,20 +799,16 @@ static const char *credits[] = {
"C1""CGE",
"C0""Dan Serban",
"C2""Soltys English translation",
"A0""Victor Gonzalez",
"C0""V\355ctor Gonz\341lez",
"C2""Soltys Spanish translation",
"A0""Alejandro Gomez de la Munoza",
"C0""Alejandro G\363mez de la Mu\361oza",
"C2""Soltys Spanish translation",
"",
"C1""CGE2",
"A0""Arnaud Boutonne",
"C0""Arnaud Boutonn\351",
"C2""Sfinx English translation",
"C0""Thierry Crozat",
"C2""Sfinx English translation",
"A0""Peter Bozso",
"C0""Peter Bozs\363",
"C2""Sfinx English translation editor",
"C0""Ryan Clark",
@ -887,7 +832,6 @@ static const char *credits[] = {
"",
"",
"C1""Websites (design)",
"A0""Dobo Balazs",
"C0""Dob\363 Bal\341zs",
"C2""Website design",
"C0""William Claydon",
@ -916,7 +860,6 @@ static const char *credits[] = {
"C2""Sound support for C64 version of MM/Zak, Loom PCE support",
"C0""Janne Huttunen",
"C2""V3 actor mask support, Dig/FT SMUSH audio",
"A0""Kovacs Endre Janos",
"C0""Kov\341cs Endre J\341nos",
"C2""Several fixes for Simon1",
"C0""Jeroen Janssen",
@ -945,14 +888,12 @@ static const char *credits[] = {
"C2""Sound support for Amiga SCUMM V2/V3 games, MM NES support",
"C0""Robert Crossfield",
"C2""Improved support for Apple II/C64 versions of MM",
"A0""Andreas Roever",
"C0""Andreas R\366ver",
"C2""Broken Sword I & II MPEG2 cutscene support",
"C0""Edward Rudd",
"C2""Fixes for playing MP3 versions of MI1/Loom audio",
"C0""Daniel Schepler",
"C2""Final MI1 CD music support, initial Ogg Vorbis support",
"A0""Andre Souza",
"C0""Andr\351 Souza",
"C2""SDL-based OpenGL renderer",
"C0""Tom Frost",
@ -1069,7 +1010,6 @@ static const char *credits[] = {
"C2""For deep tech details about C64 Zak & MM",
"C0""Sarien Team",
"C2""Original AGI engine code",
"A0""Jimmi Thogersen",
"C0""Jimmi Th\370gersen",
"C2""For ScummRev, and much obscure code/documentation",
"C0""Tristan Matthews",