Permalink
Browse files

Added characters for language names to generated fonts

So that the game can display "Français" when running Chinese, for
example.
  • Loading branch information...
hagabaka committed Jan 3, 2013
1 parent 20294ab commit 6a18ce6f88f99b166fed34fe5f2feec6a3963082
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,9 +7,12 @@
# all languages need these characters for missing translations and
# untranslatable strings
add = ['a'..'z', 'A'..'Z', '0'..'9',
- ' `~!#$%^&*()-_=+[]{};:",.<>/?|→←↑↓'.chars].map(&:to_a).reduce(&:+) +
+ ' `~!#$%^&*()-_=+[]{};:",.<>/?|→←↑↓'.chars,
+ File.read('../../data/languages.cfg').chars
+].map(&:to_a).reduce(&:+) +
-# these don't need glyphs, and will just mess up the font texture
-minus = ["\n"]
+# these don't need glyphs, and/or cause the texture generation scripts
+# to fail
+minus = ["\n" "\\" '@']
STDOUT.write (ARGF.read.chars.to_a.uniq + add - minus).join

0 comments on commit 6a18ce6

Please sign in to comment.