• Home
  • Raw
  • Download

Lines Matching full:lines

97 def parseScriptList(lines, featureMap=None):  argument
100 with lines.between('script table'):
101 for line in lines:
147 def parseFeatureList(lines, lookupMap=None, featureMap=None): argument
150 with lines.between('feature table'):
151 for line in lines:
176 def parseLookupFlags(lines): argument
187 while lines.peeks()[0].lower() in allFlags:
188 line = next(lines)
208 def parseSingleSubst(lines, font, _lookupMap=None): argument
210 for line in lines:
216 def parseMultiple(lines, font, _lookupMap=None): argument
218 for line in lines:
223 def parseAlternate(lines, font, _lookupMap=None): argument
225 for line in lines:
230 def parseLigature(lines, font, _lookupMap=None): argument
232 for line in lines:
238 def parseSinglePos(lines, font, _lookupMap=None): argument
240 for line in lines:
252 def parsePair(lines, font, _lookupMap=None): argument
255 typ = lines.peeks()[0].split()[0].lower()
259 for line in lines:
297 while lines.peeks()[0].endswith("class definition begin"):
298 typ = lines.peek()[0][:-len("class definition begin")].lower()
304 classDefs[idx] = parseClassDef(lines, font, klass=klass)
313 for line in lines:
340 def parseKernset(lines, font, _lookupMap=None): argument
341 typ = lines.peeks()[0].split()[0].lower()
343 with lines.until(("firstclass definition begin", "secondclass definition begin")):
344 return parsePair(lines, font)
345 return parsePair(lines, font)
357 def parseCursive(lines, font, _lookupMap=None): argument
359 for line in lines:
417 def parseMarkToSomething(lines, font, c): argument
428 for line in lines:
499 def parseMarkToBase(lines, font, _lookupMap=None): argument
500 return parseMarkToSomething(lines, font, MarkToBaseHelper())
501 def parseMarkToMark(lines, font, _lookupMap=None): argument
502 return parseMarkToSomething(lines, font, MarkToMarkHelper())
503 def parseMarkToLigature(lines, font, _lookupMap=None): argument
504 return parseMarkToSomething(lines, font, MarkToLigatureHelper())
647 def parseClassDef(lines, font, klass=ot.ClassDef): argument
649 with lines.between('class definition'):
650 for line in lines:
664 def parseCoverage(lines, font, klass=ot.Coverage): argument
666 with lines.between('coverage definition'):
667 for line in lines:
697 def parseContext(lines, font, Type, lookupMap=None): argument
699 typ = lines.peeks()[0].split()[0].lower()
705 for line in lines:
720 while lines.peeks()[0].endswith("class definition begin"):
721 typ = lines.peek()[0][:-len("class definition begin")].lower()
733 classDefs[idx] = parseClassDef(lines, font, klass=klass)
736 for line in lines:
751 while lines.peeks()[0].endswith("coverage definition begin"):
752 typ = lines.peek()[0][:-len("coverage definition begin")].lower()
763 coverages[idx].append(parseCoverage(lines, font, klass=klass))
765 lines = list(lines)
766 assert len(lines) == 1
767 line = lines[0]
776 def parseContextSubst(lines, font, lookupMap=None): argument
777 return parseContext(lines, font, "ContextSubst", lookupMap=lookupMap)
778 def parseContextPos(lines, font, lookupMap=None): argument
779 return parseContext(lines, font, "ContextPos", lookupMap=lookupMap)
780 def parseChainedSubst(lines, font, lookupMap=None): argument
781 return parseContext(lines, font, "ChainContextSubst", lookupMap=lookupMap)
782 def parseChainedPos(lines, font, lookupMap=None): argument
783 return parseContext(lines, font, "ChainContextPos", lookupMap=lookupMap)
785 def parseReverseChainedSubst(lines, font, _lookupMap=None): argument
789 while lines.peeks()[0].endswith("coverage definition begin"):
790 typ = lines.peek()[0][:-len("coverage definition begin")].lower()
795 coverages[idx].append(parseCoverage(lines, font, klass=klass))
801 for line in lines:
810 def parseLookup(lines, tableTag, font, lookupMap=None): argument
811 line = lines.expect('lookup')
815 lookup.LookupFlag,filterset = parseLookupFlags(lines)
841 with lines.until('lookup end'):
844 while lines.peek():
845 with lines.until(('% subtable', 'subtable end')):
846 while lines.peek():
847 subtable = parseLookupSubTable(lines, font, lookupMap)
850 if lines.peeks()[0] in ('% subtable', 'subtable end'):
851 next(lines)
852 lines.expect('lookup end')
862 def parseGSUBGPOS(lines, font, tableTag): argument
873 lambda lines: parseScriptList (lines, featureMap)),
876 lambda lines: parseFeatureList (lines, lookupMap, featureMap)),
883 while lines.peek() is not None:
884 typ = lines.peek()[0].lower()
886 log.debug('Skipping %s', lines.peek())
887 next(lines)
894 _, name, _ = lines.peek()
895 lookup = parseLookup(lines, tableTag, font, lookupMap)
904 setattr(self, attr, parser(lines))
914 def parseGSUB(lines, font): argument
915 return parseGSUBGPOS(lines, font, 'GSUB')
916 def parseGPOS(lines, font): argument
917 return parseGSUBGPOS(lines, font, 'GPOS')
919 def parseAttachList(lines, font): argument
921 with lines.between('attachment list'):
922 for line in lines:
928 def parseCaretList(lines, font): argument
930 with lines.between('carets'):
931 for line in lines:
949 def parseMarkFilteringSets(lines, font): argument
951 with lines.between('set definition'):
952 for line in lines:
962 def parseGDEF(lines, font): argument
969 lambda lines, font: parseClassDef(lines, font, klass=ot.GlyphClassDef)),
976 lambda lines, font: parseClassDef(lines, font, klass=ot.MarkAttachClassDef)),
982 while lines.peek() is not None:
983 typ = lines.peek()[0].lower()
986 next(lines)
990 setattr(self, attr, parser(lines, font))
995 def parseCmap(lines, font): argument
999 while lines.peek() is not None:
1000 lines.expect('cmap subtable %d' % len(tables))
1002 parseCmapId(lines, field)
1009 line = next(lines)
1012 line = next(lines)
1018 def parseCmapId(lines, field): argument
1019 line = next(lines)
1023 def parseTable(lines, font, tableTag=None): argument
1025 line = lines.peeks()
1032 next(lines)
1046 }[tableTag](lines, font)
1052 lines = iter(f)
1057 self.lines = iter(lines)
1068 line = self.line = next(self.lines)
1081 # Skip comments and empty lines
1163 lines = Tokenizer(f)
1164 return parseTable(lines, font, tableTag=tableTag)