forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a title guess method to get "better" title (JabRef#12018)
* Add title guess method Add title guess method * fix unit test fix unit test * update unit test to JDK 21 style update unit test to JDK 21 style * update unit test update unit test * update get title by area update get title by area * remove StringUtils.isBlank and add @AllowedToUseAwt remove StringUtils.isBlank and add @AllowedToUseAwt * add unit test ToDo:find a minimal pdf for test * change to get title by font size change to get title by font size add more unittest * RemoveTestPrefix RemoveTestPrefix * temp fix the unit test I should change the pdf used in importTwiceWorksAsExpected, or my code need to deal with the paper with same font size in AUTHOR and TITLE? * fix the unit test and open rewrite issue fix the unit test and open rewrite issue * remove commented code remove commented code * Add 5 more unittest case Add 5 more unittest case * resolve all comments so far 1. revert the temp change of unit test to original one. 2. all of title's character should stay together, add a `isFarAway` method to it to pass the unit test for hello world case. 3. change guess title variable name form old version `titleByPosition` to `titleByFontSize` 4. remove all commented code. 5. Add a `@VisibleForTesting` to `getEntryFromPDFContent`. 6. rewrite the javaDoc for `getEntryFromPDFContent` 7. fix the logic issue for setting title. * remove Blank line at start of block remove Blank line at start of block * rename and replace unit test file rename and replace unit test file * add bib and readme.md add bib and readme.md * Update CHANGELOG.md * rename the file to pass CI rename the file to pass CI * address all comments address all comments * fix the file name in unit test fix the file name in unit test --------- Co-authored-by: Oliver Kopp <[email protected]>
- Loading branch information
Showing
12 changed files
with
285 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.