Lines Matching refs:rest
120 rest = line[pos:].strip()
124 self.parsechar(rest)
126 self.parsekernpair(rest)
128 self.parsecomposite(rest)
130 self.parseattr(word, rest)
132 def parsechar(self, rest): argument
133 m = charRE.match(rest)
135 raise error("syntax error in AFM file: " + repr(rest))
138 things.append(rest[fr:to])
144 def parsekernpair(self, rest): argument
145 m = kernRE.match(rest)
147 raise error("syntax error in AFM file: " + repr(rest))
150 things.append(rest[fr:to])
155 def parseattr(self, word, rest): argument
157 l, b, r, t = [int(thing) for thing in rest.split()]
160 self._comments.append(rest)
163 value = int(rest)
165 self._attrs[word] = rest
169 def parsecomposite(self, rest): argument
170 m = compositeRE.match(rest)
172 raise error("syntax error in AFM file: " + repr(rest))
175 rest = rest[m.regs[0][1]:]
178 m = componentRE.match(rest)
180 raise error("syntax error in AFM file: " + repr(rest))
185 rest = rest[m.regs[0][1]:]
186 if not rest: