Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

made minor changes

  • Loading branch information...
commit 9ff3421381f74125a174e1ac8f921effd0124fbe 1 parent ed2c56a
nagi authored
View
4 fontcreator/config.cfg
@@ -14,10 +14,10 @@ FEATURE_FILE = misc/mongolbichig.fea
# base font
BASE_FONT = resources/DejaVuSans.sfd
# place where glyphs are
-GLYPHS_DIR = /tmp/svgs
+GLYPHS_DIR = /tmp/glyphs
[Mongol useg]
USEG_ATOM = misc/useg_zurlaga_atom
USEG_DESC = misc/useg_zurlaga_desc
-ATOM_FOLDER = /tmp/atoms
+ATOM_FOLDER = ../../mongoluseg/sudar
GLYPH_OUT = /tmp/glyphs
View
22 fontcreator/misc/useg_zurlaga_desc
@@ -11,11 +11,11 @@
# "титэм -10 шүд" гэдэг нь титмийн араас шүд залгахдаа арван цэгээр
# зөрүүлж нийлүүлэхийг зааж өгч байна.
# ---------------------------------------------------------------
-uni1800
-uni1800.var1
-uni1800.var2
-uni1800.var3
-uni1800.var4
+uni1800 = NOT_READY
+uni1800.var1 = NOT_READY
+uni1800.var2 = NOT_READY
+uni1800.var3 = NOT_READY
+uni1800.var4 = NOT_READY
uni1801 = v_4_points
uni1802 = one_point
uni1803 = v_points
@@ -24,14 +24,14 @@ uni1805 = mgl_point
uni1806 = нуруу
uni1807 = нуруу шүд
uni1807.medi = шүд
-uni1808
-uni1809
+uni1808 = NOT_READY
+uni1809 = NOT_READY
uni180A = нуруу
uni180A.mark = нуруу
-uni180B
-uni180C
-uni180D
-uni180E
+uni180B = NOT_READY
+uni180C = NOT_READY
+uni180D = NOT_READY
+uni180E = NOT_READY
uni1810 = number0
uni1811 = number1
uni1812 = number2
View
14 fontcreator/mongoluseg.py
@@ -57,10 +57,12 @@ def useg_uusge(Atoms, Desc, AFolder, OFolder):
if li == [] or Stopped == True:
Missed[Name] = " is not created!"
print Name, " is not created!"
+ createByCopy(AFolder, OFolder, "soyombo.svg", Name + '.svg')
continue
if NotCreated != []:
Missed[Name] = NotCreated
#print Name, " is NOT CREATED: ", NotCreated
+ createByCopy(AFolder, OFolder, "soyombo.svg", Name + '.svg')
continue
Cmd = 'svg_stack.py ' + " --margin -10 ".join(li) + ' > ' + OFolder +'/'+Name + '.svg'
Cmd1 = Cmd.split(' ')
@@ -73,6 +75,18 @@ def useg_uusge(Atoms, Desc, AFolder, OFolder):
for Key in Missed.keys():
print Key, ' : ', Missed[Key]
+def createByCopy(AFolder, OFolder, NameA, NameB):
+ AFile = AFolder + '/' + NameA
+ BFile = OFolder + '/' + NameB
+ copyGlyph(AFile, BFile)
+
+def copyGlyph(A, B):
+ Cmd = 'cp ' + A + ' ' + B
+ if not subprocess.call(Cmd, shell=True) == 0:
+ print "Not Created: " + Cmd
+ else:
+ print B, " is copied succesfully!"
+
def isNumber(Str):
if Str.startswith("-") or Str.startswith("+"):
return Str[1:].isdigit()
Please sign in to comment.
Something went wrong with that request. Please try again.