示例#1
0
 def __init__(self, userVars, filenum=0):
     if self.__class__ is FileItem:
         # The base class should not be instantiated.
         raise NotImplementedError
     Syncable.__init__(self, userVars)
     self.filenum = filenum
     self.filepath = ""
示例#2
0
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.fileList = FileItemList(LingExFileItem, self.userVars)
     self.showMorphLine1 = True
     self.showMorphLine2 = False
     self.separateMorphColumns = False
     self.SFM_baseline_word1 = True  # typically the \tx line
 def __init__(self, style_from, userVars, varNum=0):
     """
     :param style_from: StyleItem being converted from
     :param userVars: for persistent storage
     :param varNum: a user variable number unique to this change
     """
     StyleInfo.__init__(self)
     Syncable.__init__(self, userVars)
     self.styleItem = style_from
     self.varNum = varNum  # for storage in user variables
     self.converter = ConverterSettings(userVars)
     self.converted_data = dict()  # key inputString, value convertedString
     self.remove_custom_formatting = True
示例#4
0
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.langtag = ""
     self.outfile = ""
     self.word = ""  # word-forming punctuation list
     self.type = "none"  # script type
     self.font = ""
     self.langname = ""
     self.dict = ""
     self.affix = ""
     self.version = ""
     self.dicttype = ""
     self.publisher = ""
     self.puburl = ""
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.langtag = ""
     self.outfile = ""
     self.word = ""  # word-forming punctuation list
     self.type = ''
     self.font = ""  # TODO: multiple can be given
     self.langname = ""
     self.dict = ""
     self.affix = ""
     self.normalize = ''
     self.version = ""
     self.dicttype = ""
     self.publisher = ""
     self.puburl = ""
示例#6
0
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.methodFrames = True
     self.methodTables = True
     self.makeOuterTable = True
     self.insertNumbering = True
     self.showWordLine1 = True
     self.showWordLine2 = False
     self.showMorphLine1 = True
     self.showMorphLine2 = False
     self.separateMorphColumns = True
     self.showPartOfSpeech = True
     self.POS_aboveGloss = False
     self.freeTransInQuotes = False
     self.startingOuterRowHeight = 2
     self.tableBottomMargin = 0.13
     self.numberingColumnWidth = 7
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.convName = ""
     self.forward = True  # left to right
     self.normForm = 0  # for normalization
示例#8
0
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.grabType = self.UNSPECIFIED
     self.whichOne = ""  # for example "\tx"
     self.fontType = ""  # needed when grabType is WhatToGrab.FONT
     self.prefix = ""  # user var prefix
示例#9
0
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.sortOrder = list(ColumnOrder.COLUMNS.keys())
     self.rowData = [""] * len(self.COLUMNS)
     self.rowTuple = ()
示例#10
0
 def __init__(self, fileItemClass, userVars):
     """:param fileItemClass: type of items in self.itemList"""
     ItemList.__init__(self)
     Syncable.__init__(self, userVars)
     self.fileItemClass = fileItemClass
 def __init__(self, unoObjs, userVars):
     ItemList.__init__(self)
     Syncable.__init__(self, userVars)
     self.msgbox = MessageBox(unoObjs)
示例#12
0
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.showBrackets = True
     self.phonemicLeftmost = True
示例#13
0
 def __init__(self, userVars):
     Syncable.__init__(self, userVars)
     self.filepath = ""
     self.phoneticWS = ""  # writing system
     self.isLexemePhonetic = False
     self.refNumIn = "Any"  # look in any of the possible locations