[Scummvm-git-logs] scummvm-tools master -> 2c138b11a17d2f07f570ec2522a193700f6c3ca0

sev- sev at scummvm.org
Mon Apr 9 19:51:40 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-tools' repo located at https://github.com/scummvm/scummvm-tools .

Summary:
2c138b11a1 TOOLS: Added script for converting Russian talktxt.txt


Commit: 2c138b11a17d2f07f570ec2522a193700f6c3ca0
    https://github.com/scummvm/scummvm-tools/commit/2c138b11a17d2f07f570ec2522a193700f6c3ca0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2018-04-09T19:51:34+02:00

Commit Message:
TOOLS: Added script for converting Russian talktxt.txt

Changed paths:
  A engines/prince/convert-ru.pl


diff --git a/engines/prince/convert-ru.pl b/engines/prince/convert-ru.pl
new file mode 100644
index 0000000..5995be5
--- /dev/null
+++ b/engines/prince/convert-ru.pl
@@ -0,0 +1,24 @@
+#!perl
+
+# Convert Russian talktxt.txt to UTF-8
+
+use utf8;
+
+binmode STDOUT, ":utf8";
+
+my $skip = 0;
+
+while (<>) {
+	if (/^[#@]/ or $skip) {
+		print;
+		next;
+	}
+
+	if (/^nj b dsqltn.$/) {  # After this phrase we have German
+		$skip = 1;
+	}
+
+	tr /qwertyuiopasdfghjklzxcvbnm\x85\xb3\xca\xa5\xea\xe6/йцукенгшщзфывапролдячсмитьхюэжбъ/;
+	tr /QWERTYUIOPASDFGHJKLZXCVBNM\x82\x7f\x83\x81\x84/ЙЦУКЕНГШЩЗФЫВАПРОЛДЯЧСМИТЬЭХБЖЮ/;
+	print;
+}





More information about the Scummvm-git-logs mailing list