Functions for wordlist output
(lines, buff, wbbox, block_n, line_n, word_n)
| 18733 | |
| 18734 | |
| 18735 | def JM_append_word(lines, buff, wbbox, block_n, line_n, word_n): |
| 18736 | ''' |
| 18737 | Functions for wordlist output |
| 18738 | ''' |
| 18739 | s = JM_EscapeStrFromBuffer(buff) |
| 18740 | litem = ( |
| 18741 | wbbox.x0, |
| 18742 | wbbox.y0, |
| 18743 | wbbox.x1, |
| 18744 | wbbox.y1, |
| 18745 | s, |
| 18746 | block_n, |
| 18747 | line_n, |
| 18748 | word_n, |
| 18749 | ) |
| 18750 | lines.append(litem) |
| 18751 | return word_n + 1, mupdf.FzRect(mupdf.FzRect.Fixed_EMPTY) # word counter |
| 18752 | |
| 18753 | |
| 18754 | def JM_add_layer_config( pdf, name, creator, ON): |
no test coverage detected
searching dependent graphs…