Home | History | Annotate | Download | only in tables

Lines Matching refs:conv

546 		for conv in converters:
547 if conv.name == "SubTable":
548 conv = conv.getConverter(reader.globalState.tableType,
550 if conv
551 conv = conv.getConverter(reader.globalState.tableType,
553 if conv.name == "FeatureParams":
554 conv = conv.getConverter(reader["FeatureTag"])
555 if conv.repeat:
557 if conv.repeat in table:
558 countValue = table[conv.repeat]
560 # conv.repeat is a propagated count
561 countValue = reader[conv.repeat]
562 for i in range(countValue + conv.aux):
563 l.append(conv.read(reader, font, table))
564 table[conv.name] = l
566 if conv.aux and not eval(conv.aux, None, table):
568 table[conv.name] = conv.read(reader, font, table)
569 if conv.isPropagated:
570 reader[conv.name] = table[conv.name]
595 for conv in self.getConverters():
596 value = table.get(conv.name)
597 if conv.repeat:
600 countValue = len(value) - conv.aux
601 if conv.repeat in table:
602 CountReference(table, conv.repeat).setValue(countValue)
604 # conv.repeat is a propagated count
605 writer[conv.repeat].setValue(countValue)
607 conv.write(writer, font, table, value[i], i)
608 elif conv.isCount:
616 ref = writer.writeCountReference(table, conv.name)
617 table[conv.name] = None
618 if conv.isPropagated:
619 writer[conv.name] = ref
620 elif conv.isLookupType:
621 ref = writer.writeCountReference(table, conv.name)
622 table[conv.name] = None
625 if conv.aux and not eval(conv.aux, None, table):
627 conv.write(writer, font, table, value)
628 if conv.isPropagated:
629 writer[conv.name] = value
659 for conv in self.getConverters():
660 if conv.repeat:
661 value = getattr(self, conv.name)
664 conv.xmlWrite(xmlWriter, font, item, conv.name,
667 if conv.aux and not eval(conv.aux, None, vars(self)):
669 value = getattr(self, conv.name)
670 conv.xmlWrite(xmlWriter, font, value, conv.name, [])
674 conv = self.getConverterByName(name)
677 value = conv.xmlRead(attrs, content, font)
678 if conv.repeat:
679 seq = getattr(self, conv.name, None)
682 setattr(self, conv.name, seq)
685 setattr(self, conv.name, value)