[Pkg-isocodes-devel] [iso-codes] 02/04: Add script to convert latin Tatar into cyrillic Tatar

Tobias Quathamer toddy at alioth.debian.org
Fri Nov 1 23:28:53 UTC 2013


This is an automated email from the git hooks/post-receive script.

toddy pushed a commit to branch master
in repository iso-codes.

commit e595bb54ce8ae5473d5fbbc2e6a7e9e625ab694b
Author: Tobias Quathamer <toddy at debian.org>
Date:   Sat Nov 2 00:10:19 2013 +0100

    Add script to convert latin Tatar into cyrillic Tatar
---
 ChangeLog              |    2 ++
 configure.ac           |    1 +
 recode-tt-cyrillic.sed |   80 ++++++++++++++++++++++++++++++++++++++++++++++++
 rules.make             |    3 +-
 4 files changed, 85 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 2e35902..dd426f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@ iso-codes 3.XX
   * Rename all tt.po files to tt at iqtelif.po. The Tatar translations
     use the latin script, which is specified with the modifier @iqtelif.
     Thanks to Mike FABIAN for the bug report. Closes: alioth#314422.
+  * Add sed script to convert latin Tatar into cyrillic Tatar. The
+    converted translations are named tt.po.
 
 
 iso-codes 3.48
diff --git a/configure.ac b/configure.ac
index be74d85..78397d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,7 @@ AC_PROG_MAKE_SET
 
 AC_PATH_PROG([MSGMERGE],[msgmerge])
 AC_PATH_PROG([MSGFMT],[msgfmt])
+AC_PATH_PROG([MSGFILTER],[msgfilter])
 AC_PATH_PROG([RECODE_SR_LATIN],[recode-sr-latin])
 AC_MSG_CHECKING([if $MSGFMT is GNU msgfmt])
 gnu_msgfmt=no
diff --git a/recode-tt-cyrillic.sed b/recode-tt-cyrillic.sed
new file mode 100644
index 0000000..9605ae1
--- /dev/null
+++ b/recode-tt-cyrillic.sed
@@ -0,0 +1,80 @@
+# Double characters
+s/Ya/Я/g
+s/ya/я/g
+s/Yo/Ё/g
+s/yo/ё/
+s/Yu/Ю/g
+s/yu/ю/g
+s/Ts/Ц/g
+s/ts/ц/g
+s/Şç/Щ/g
+s/şç/щ/g
+# Single characters
+s/A/А/g
+s/a/а/g
+s/Ä/Ә/g
+s/ä/ә/g
+s/B/Б/g
+s/b/б/g
+s/V/В/g
+s/v/в/g
+s/Ğ/Г/g
+s/ğ/г/g
+s/D/Д/g
+s/d/д/g
+s/E/Е/g
+s/e/е/g
+s/J/Ж/g
+s/j/ж/g
+s/C/Җ/g
+s/c/җ/g
+s/Z/З/g
+s/z/з/g
+s/I/И/g
+s/i/и/g
+s/Y/Й/g
+s/y/й/g
+s/K/К/g
+s/k/к/g
+s/Q/К/g
+s/q/к/g
+s/L/Л/g
+s/l/л/g
+s/M/М/g
+s/m/м/g
+s/N/Н/g
+s/n/н/g
+s/Ñ/Ң/g
+s/ñ/ң/g
+s/O/О/g
+s/o/о/g
+s/Ö/Ө/g
+s/ö/ө/g
+s/P/П/g
+s/p/п/g
+s/R/Р/g
+s/r/р/g
+s/S/С/g
+s/s/с/g
+s/T/Т/g
+s/t/т/g
+s/U/У/g
+s/u/у/g
+s/Ü/Ү/g
+s/ü/ү/g
+s/F/Ф/g
+s/f/ф/g
+s/X/Х/g
+s/x/х/g
+s/H/Һ/g
+s/h/һ/g
+s/Ç/Ч/g
+s/ç/ч/g
+s/Ş/Ш/g
+s/ş/ш/g
+# Note: The upper I without dot cannot be transliterated, it's already used above.
+# s/I/Ы/g
+s/ı/ы/g
+# The following cyrillic chars are already used for "V" and "v", so not unique.
+s/W/В/g
+s/w/в/g
diff --git a/rules.make b/rules.make
index 1fe75fb..3b7aa18 100644
--- a/rules.make
+++ b/rules.make
@@ -24,8 +24,9 @@ update-po:
 		msgattrib --no-obsolete tmpfile > $$pofile; \
 		sed -i -e 's/^\"Project-Id-Version: iso.*/\"Project-Id-Version: $(DOMAIN)\\n\"/' $$pofile; \
 	done
-	$(RECODE_SR_LATIN) < sr.po > sr at latin.po
 	rm -f tmpfile
+	if [ -f sr.po ] ; then $(RECODE_SR_LATIN) < sr.po > sr at latin.po ; fi
+	if [ -f tt at iqtelif.po ] ; then $(MSGFILTER) --keep-header sed -f $(top_srcdir)/recode-tt-cyrillic.sed < tt at iqtelif.po > tt.po ; fi
 
 localedir = $(datadir)/locale
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-isocodes/iso-codes.git



More information about the Pkg-isocodes-devel mailing list