Evaluate the content of all pages to return the total sum of conditions solving. If necessary, the builder for solving specific text conditions, such as run length of text and overflow of text boxes, is found by the current self.view.b. >>> doc = Document(name='TestD
(self, score=None)
| 1386 | # C O N D I T I O N S |
| 1387 | |
| 1388 | def solve(self, score=None): |
| 1389 | """Evaluate the content of all pages to return the total sum of |
| 1390 | conditions solving. If necessary, the builder for solving specific text |
| 1391 | conditions, such as run length of text and overflow of text boxes, is |
| 1392 | found by the current self.view.b. |
| 1393 | |
| 1394 | >>> doc = Document(name='TestDoc', w=300, h=400, autoPages=2, padding=(30, 40, 50, 60)) |
| 1395 | >>> score = doc.solve() |
| 1396 | >>> score |
| 1397 | Score: 0 Fails: 0 |
| 1398 | """ |
| 1399 | score = Score() |
| 1400 | |
| 1401 | for pn, pnPages in sorted(self.pages.items()): |
| 1402 | for page in pnPages: # List of pages with identical pn, step through the pages. |
| 1403 | page.solve(score) |
| 1404 | |
| 1405 | return score |
| 1406 | |
| 1407 | # V I E W S |
| 1408 |