-
Notifications
You must be signed in to change notification settings - Fork 11
Table extraction #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Table extraction #58
Conversation
words from tables removed from pdfText. table text split into lines. table initialization changed.
| */ | ||
| fun getTables(path: String): List<Table>{ | ||
|
|
||
| val workingDirPath = System.getProperty("user.home") + "/map" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| when (direction) { | ||
| LEFT -> sideTexts.removeAt(1) | ||
| RIGHT -> sideTexts.removeAt(0) | ||
| else -> {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| <properties> | ||
| <java.version>11</java.version> | ||
| <kotlin.version>1.5.31</kotlin.version> | ||
| <kotlin.version>1.6.21</kotlin.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| when (direction) { | ||
| Direction.LEFT -> sideWords.removeAt(1) | ||
| Direction.RIGHT -> sideWords.removeAt(0) | ||
| else -> {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
|
|
||
| data class Cell( | ||
| val page: Int, | ||
| val cellText: MutableList<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| RULE_LITLINK, | ||
| TABLE_RULE, | ||
|
|
||
| /*RULE_LITLINK, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
|
|
||
| data class Line(val index: Int, val page: Int, val documentIndex: Int, | ||
| val text: List<Word>, var area: PDFArea? = null | ||
| val text: List<Word>, var area: PDFArea? = null, var endPosition: Coordinate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| }.getRule() | ||
|
|
||
| val TABLE_RULE = TableRuleBuilder() | ||
| .called("Все клетки") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| import os | ||
| import sys | ||
| from pathlib import Path | ||
| sys.path.insert(0, '../src') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| import io.kotest.inspectors.forAll | ||
| import io.kotest.matchers.shouldBe | ||
|
|
||
| /* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
No description provided.