Merge pull request #3779 from opentx/mhotar/fullczcharset

Reduced anf full cz charset for Horus and the others
This commit is contained in:
Bertrand Songis
2016-09-09 21:51:13 +02:00
committed by GitHub
20 changed files with 69 additions and 33 deletions
+2 -1
View File
@@ -13,11 +13,12 @@ for f in glob.glob("fonts/*.ttf"):
chars_en = u""" !"#$%&'()*+,-./0123456789:;<=>?°ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz~|≥→←↑↓↗↘↙↖△"""
chars_fr = u"""éèàîç"""
chars_de = u"""ÄäÖöÜüß"""
chars_cz = u"""ěščřžýáíéňóůúďťĚŠČŘŽÝÁÍÉŇÓÚŮĎŤ"""
COUNT_EXTRA_CHARS = 12
chars_extra = u"".join([chr(1+i) for i in range(COUNT_EXTRA_CHARS)])
chars = chars_en + chars_extra + chars_fr + chars_de
chars = chars_en + chars_extra + chars_fr + chars_de + chars_cz
def createFontBitmap(filename, fontname, fontsize, fontbold, foreground, background, coordsfile=True):
+32 -1
View File
@@ -6,7 +6,7 @@ import argparse
import codecs
import sys
translations = {'cz': [('\\200', u'á'),
translations = {'cz_reduced': [('\\200', u'á'),
('\\201', u'č'),
('\\201', u'Č'),
('\\202', u'é'),
@@ -28,6 +28,37 @@ translations = {'cz': [('\\200', u'á'),
('\\217', u'Ž'),
('\\220', u'É')],
'cz': [('\\200', u'ě'),
('\\201', u'š'),
('\\202', u'č'),
('\\203', u'ř'),
('\\204', u'ž'),
('\\205', u'ý'),
('\\206', u'á'),
('\\207', u'í'),
('\\210', u'é'),
('\\211', u'ň'),
('\\212', u'ó'),
('\\213', u'ů'),
('\\214', u'ú'),
('\\215', u'ď'),
('\\216', u'ť'),
('\\217', u'Ě'),
('\\220', u'Š'),
('\\221', u'Č'),
('\\222', u'Ř'),
('\\223', u'Ž'),
('\\224', u'Ý'),
('\\225', u'Á'),
('\\226', u'Í'),
('\\227', u'É'),
('\\230', u'Ň'),
('\\231', u'Ó'),
('\\232', u'Ú'),
('\\233', u'Ů'),
('\\234', u'Ď'),
('\\235', u'Ť')],
'de': [('\\200', u'Ä'),
('\\201', u'ä'),
('\\202', u'Ö'),