2015-09-30 09:50:12 +01:00
|
|
|
from __future__ import print_function, division, absolute_import
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import fontTools.feaLib.ast as ast
|
|
|
|
|
|
|
|
|
|
|
|
class VoltFile(ast.Block):
|
|
|
|
def __init__(self):
|
|
|
|
ast.Block.__init__(self, location=None)
|
|
|
|
|
|
|
|
class GlyphDefinition(ast.Statement):
|
|
|
|
def __init__(self, location, name, gid, gunicode, gtype, components):
|
|
|
|
ast.Statement.__init__(self,location)
|
|
|
|
self.name = name
|
|
|
|
self.id = gid
|
|
|
|
self.unicode = gunicode
|
|
|
|
self.type = gtype
|
|
|
|
self.components = components
|
2015-09-30 14:06:51 +01:00
|
|
|
|
|
|
|
class GroupDefinition(ast.Statement):
|
2015-09-30 22:21:51 +01:00
|
|
|
def __init__(self, location, name, glyphs, groups, ranges):
|
2015-09-30 14:06:51 +01:00
|
|
|
ast.Statement.__init__(self,location)
|
|
|
|
self.name = name
|
2015-09-30 22:21:51 +01:00
|
|
|
self.enum = {"glyphs": glyphs,
|
|
|
|
"groups": groups,
|
|
|
|
"ranges": ranges}
|