Provide details about mtrl/words l10n to translators
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Fri, 13 Jun 2008 16:02:26 +0000 (16:02 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Fri, 13 Jun 2008 16:02:26 +0000 (16:02 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@2306 78b8d119-cf0a-0410-b17c-f493084dd1d7

data/mtrl/words-lv.png
po/mtrl.pot
scripts/gen-words.sh [new file with mode: 0644]

index f2adce4..beccf6a 100644 (file)
Binary files a/data/mtrl/words-lv.png and b/data/mtrl/words-lv.png differ
index b953c4e..b620664 100644 (file)
@@ -8,6 +8,16 @@
 #. the original texture <mtrl>.<ext> to <mtrl>-<lang-code>.<ext> and modify it)
 #. and translate the material name to match (from <mtrl> to
 #. <mtrl>-<lang-code>).
+#.
+#. Author's comments on the original mtrl/words texture:
+#.
+#. "Courier New, 40pt, bold. The words are centered in cells of 256x64 pixels.
+#. For the vertical centering, the x-height is used as the reference. Some
+#. manual corrections were made; for example, the hyphen in 'Fall-out' was
+#. shortened in order to increase the margin on each side of the word."
+#.
+#. Those on GNU+Linux having the ImageMagick program suite installed may find
+#. the provided scripts/gen-words.sh shell script useful.
 msgid "mtrl/words"
 msgstr ""
 
diff --git a/scripts/gen-words.sh b/scripts/gen-words.sh
new file mode 100644 (file)
index 0000000..75705dc
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+LANG=lv
+
+Ball="Bumba"
+Goal="Mērķis"
+Coin="Monēta"
+Switch="Slēdzis"
+Texture="Tekstūra"
+FallOut="Kritiens"
+
+FONT=FreeMono-Negreta
+PTSIZE=56
+DENSITY=70
+
+convert \
+    \( -size 256x64 xc:transparent -font $FONT -pointsize $PTSIZE \
+        -density $DENSITY -channel A -gravity Center \) \
+    \( -clone 0 -annotate +0+0 "$Ball"    \) \
+    \( -clone 0 -annotate +0+0 "$Goal"    \) \
+    \( -clone 0 -annotate +0+0 "$Coin"    \) \
+    \( -clone 0 -annotate +0+0 "$Switch"  \) \
+    \( -clone 0 -annotate +0+0 "$Texture" \) \
+    \( -clone 0 -annotate +0+0 "$FallOut" \) \
+    -delete 0 -append \
+    -gravity North -background transparent -extent 256x512 \
+    -depth 8 words-$LANG.png
+