Lines Matching refs:doc
75 doc = self.parse(
80 c1 = doc.statements[0]
81 c2 = doc.statements[1].statements[1]
87 self.assertEqual(doc.statements[1].name, "test")
90 doc = self.parse("""\
93 c1 = doc.statements[0]
99 doc = self.parse(
103 anchor = doc.statements[0].statements[0].entryAnchor
112 doc = self.parse(
116 anchor = doc.statements[0].statements[0].entryAnchor
125 doc = self.parse(
131 anchor = doc.statements[0].statements[0].entryAnchor
140 doc = self.parse(
144 anchor = doc.statements[0].statements[0].exitAnchor
148 doc = self.parse(
153 anchor = doc.statements[0].statements[1].entryAnchor
203 doc = self.parse("table GDEF {Attach [a e] 2;} GDEF;")
204 s = doc.statements[0].statements[0]
228 doc = self.parse("feature aalt { feature salt; } aalt;")
229 ref = doc.statements[0].statements[0]
255 doc = self.parse("table head {FontRevision 2.5;} head;")
256 s = doc.statements[0].statements[0]
298 doc = self.parse(
303 self.assertEqual(doc.statements[-1].glyphSet(),
420 doc = self.parse("table GDEF {GlyphClassDef [b],[l],[m],[C c];} GDEF;")
421 s = doc.statements[0].statements[0]
429 doc = self.parse("table GDEF {GlyphClassDef ,,,;} GDEF;")
430 s = doc.statements[0].statements[0]
437 doc = self.parse("feature test {ignore pos e t' c, q u' u' x;} test;")
438 sub = doc.statements[0].statements[0]
449 doc = self.parse(
453 sub = doc.statements[0].statements[0]
469 doc = self.parse("feature test {ignore sub e t' c, q u' u' x;} test;")
470 sub = doc.statements[0].statements[0]
481 doc = self.parse(
485 sub = doc.statements[0].statements[0]
501 doc = self.parse("""\
507 s1, s2, s3 = doc.statements
518 doc = self.parse("""\
521 s1 = doc.statements[0]
527 doc = self.parse("feature test {language DEU;} test;")
528 s = doc.statements[0].statements[0]
535 doc = self.parse("feature test {language DEU exclude_dflt;} test;")
536 s = doc.statements[0].statements[0]
543 doc = self.parse("feature test {"
546 s = doc.statements[0].statements[0]
553 doc = self.parse("feature test {language DEU include_dflt;} test;")
554 s = doc.statements[0].statements[0]
561 doc = self.parse("feature test {"
564 s = doc.statements[0].statements[0]
577 doc = self.parse("table GDEF{LigatureCaretByIndex [c_t f_i] 2;}GDEF;")
578 s = doc.statements[0].statements[0]
584 doc = self.parse("table GDEF{LigatureCaretByIndex f_f_i 3 7;}GDEF;")
585 s = doc.statements[0].statements[0]
591 doc = self.parse("table GDEF {LigatureCaretByPos [c_t f_i] 7;} GDEF;")
592 s = doc.statements[0].statements[0]
598 doc = self.parse("table GDEF {LigatureCaretByPos f_i 400 380;} GDEF;")
599 s = doc.statements[0].statements[0]
622 doc = self.parse("feature liga {"
627 [liga] = doc.statements
634 doc = self.parse("feature vkrn {"
639 [vkrn] = doc.statements
746 doc = self.parse("feature kern {pos one <1 2 3 4>;} kern;")
747 pos = doc.statements[0].statements[0]
754 doc = self.parse("feature kern {pos [one two] -300;} kern;")
755 pos = doc.statements[0].statements[0]
762 doc = self.parse("feature vkrn {pos [one two] -300;} vkrn;")
763 pos = doc.statements[0].statements[0]
770 doc = self.parse("feature f {pos one'1 two'2 [five six]'56;} f;")
771 pos = doc.statements[0].statements[0]
794 doc = self.parse("feature kern {pos [A B] [T Y]' 20 comma;} kern;")
795 pos = doc.statements[0].statements[0]
804 doc = self.parse("feature kern {pos [A B] [T Y]' comma 20;} kern;")
805 pos = doc.statements[0].statements[0]
814 doc = self.parse("feature kern {pos [A B] [T Y]' comma <0 0 0 0>;} kern;")
815 pos = doc.statements[0].statements[0]
824 doc = self.parse("feature kern {"
827 pos = doc.statements[0].statements[0]
836 doc = self.parse("feature kern {"
839 pos = doc.statements[0].statements[0]
848 doc = self.parse("feature kern {"
851 pos = doc.statements[0].statements[0]
862 doc = self.parse("feature kern {"
865 pos = doc.statements[0].statements[0]
875 doc = self.parse("feature kern {"
878 pos = doc.statements[0].statements[0]
887 doc = self.parse("feature kern {"
890 pos = doc.statements[0].statements[0]
899 doc = self.parse("feature kern {"
902 pos = doc.statements[0].statements[0]
918 doc = self.parse(
927 pos = doc.statements[-1].statements[0]
954 doc = self.parse(
969 pos = doc.statements[-1].statements[0]
1000 doc = self.parse(
1005 pos = doc.statements[-1].statements[0]
1031 doc = self.parse(
1036 lookup1, lookup2 = doc.statements[0:2]
1037 pos = doc.statements[-1].statements[0]
1055 doc = self.parse("markClass [acute grave] <anchor 350 3> @MARKS;")
1056 mc = doc.statements[0]
1063 doc = self.parse(
1065 name = doc.statements[0].statements[0]
1075 doc = self.parse(r'table name { nameid 9 "Back\005cslash"; } name;')
1076 name = doc.statements[0].statements[0]
1081 doc = self.parse(
1083 name = doc.statements[0].statements[0]
1088 doc = self.parse(r'table name { nameid 9 "Carrot \D83E\DD55"; } name;')
1089 name = doc.statements[0].statements[0]
1094 doc = self.parse(
1096 name = doc.statements[0].statements[0]
1107 doc = self.parse(
1109 name = doc.statements[0].statements[0]
1123 doc = self.parse("feature test {rsub a [b B] c' d [e E] by C;} test;")
1124 rsub = doc.statements[0].statements[0]
1132 doc = self.parse(r"feature test {rsub \1 [\2 \3] \4' \5 by \6;} test;")
1133 rsub = doc.statements[0].statements[0]
1142 doc = self.parse(
1146 rsub = doc.statements[0].statements[0]
1156 doc = self.parse(
1160 rsub = doc.statements[0].statements[0]
1192 doc = self.parse("feature test {script cyrl;} test;")
1193 s = doc.statements[0].statements[0]
1204 doc = self.parse("feature smcp {substitute a by a.sc;} smcp;")
1205 sub = doc.statements[0].statements[0]
1212 doc = self.parse("feature test {sub [A a] d' [C] by d.alt;} test;")
1213 sub = doc.statements[0].statements[0]
1220 doc = self.parse(r"feature smcp {substitute \12345 by \78987;} smcp;")
1221 sub = doc.statements[0].statements[0]
1228 doc = self.parse(
1232 sub = doc.statements[0].statements[0]
1242 doc = self.parse(
1246 sub = doc.statements[0].statements[0]
1256 doc = self.parse(
1260 sub = doc.statements[0].statements[0]
1272 doc = self.parse(
1276 sub = doc.statements[0].statements[0]
1301 doc = self.parse("lookup Look {substitute f_f_i by f f i;} Look;")
1302 sub = doc.statements[0].statements[0]
1308 doc = self.parse("lookup L {sub [A-C] f_f_i' [X-Z] by f f i;} L;")
1309 sub = doc.statements[0].statements[0]
1315 doc = self.parse("lookup L {sub f_f_i' by f f i;} L;")
1316 sub = doc.statements[0].statements[0]
1367 doc = self.parse("lookup Look {"
1372 statements = doc.statements[0].statements
1379 doc = self.parse("feature test {"
1382 sub = doc.statements[0].statements[0]
1390 doc = self.parse("feature test {"
1393 sub = doc.statements[0].statements[0]
1401 doc = self.parse(r"feature test {"
1404 sub = doc.statements[0].statements[0]
1412 doc = self.parse("feature test {"
1416 [glyphclass, sub] = doc.statements[0].statements
1425 doc = self.parse("feature liga {substitute f f i by f_f_i;} liga;")
1426 sub = doc.statements[0].statements[0]
1434 doc = self.parse("feature F {substitute A B f' i' Z by f_i;} F;")
1435 sub = doc.statements[0].statements[0]
1443 doc = Parser(self.getpath("spec5fi1.fea"), GLYPHNAMES).parse()
1444 [_, _, _, langsys, ligs, sub, feature] = doc.statements
1455 doc = self.parse("feature test {subtable;} test;")
1456 s = doc.statements[0].statements[0]
1466 doc = self.parse("table %s { # Comment\n } %s;" % (table, table))
1467 comment = doc.statements[0].statements[0]
1477 doc = self.parse("feature liga {valueRecordDef 123 foo;} liga;")
1478 valuedef = doc.statements[0].statements[0]
1492 doc = self.parse("feature vkrn {valueRecordDef 123 foo;} vkrn;")
1493 valuedef = doc.statements[0].statements[0]
1507 doc = self.parse("feature liga {valueRecordDef 0 foo;} liga;")
1508 valuedef = doc.statements[0].statements[0]
1522 doc = self.parse("feature vkrn {valueRecordDef 0 foo;} vkrn;")
1523 valuedef = doc.statements[0].statements[0]
1538 doc = self.parse(
1540 value = doc.statements[0].statements[0].value
1546 doc = self.parse("feature liga {valueRecordDef <1 2 3 4> foo;} liga;")
1547 valuedef = doc.statements[0].statements[0]
1561 doc = self.parse("feature liga {valueRecordDef <0 0 0 0> foo;} liga;")
1562 valuedef = doc.statements[0].statements[0]
1576 doc = self.parse(
1586 value = doc.statements[0].statements[0].value
1600 doc = self.parse("feature test {valueRecordDef <NULL> foo;} test;")
1601 value = doc.statements[0].statements[0].value
1606 doc = self.parse("valueRecordDef <1 2 3 4> foo;"
1608 value = doc.statements[1].statements[0].value
1662 doc = self.parse("feature test {;} test;")
1663 self.assertFalse(doc.statements[0].statements)
1664 doc = self.parse(";;;")
1665 self.assertFalse(doc.statements)
1667 doc = self.parse("table %s { ;;; } %s;" % (table, table))
1668 self.assertEqual(doc.statements[0].statements, [])