JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.64k stars 2.59k forks source link

Improve BibTeX-from-PDF import #11999

Open koppor opened 1 month ago

koppor commented 1 month ago

!! This is more an issue to experiment with heuristics. How can a machine with "traditional" (non-AI) code create useful information. !!

When importing the PDF se2paper.pdf

one gets following BibTeX entry


@InProceedings{How,
  author   = {On How and We Can and Teach and Exploring New and Ways in and Professional Software and Development for Students},
  title    = {Microsoft Word - ieee_on_how_we_teach_jul_01.docx},
  abstract = {β€” Requirements and approaches for introductory
courses in software development at universities differ II. SETTING THE STAGE: SOFTWARE DEVELOPMENT AT 
considerably. There seems to be little consensus on which HDM 
languages are a good fit, which methodologies lead to the best 
...
  file     = {:C\:/Users/koppor/Downloads/se2paper-1.pdf:PDF},
}

However, the title should be better:

Image

The properties of the file show

Image


Tasks:

  1. If title is "better" from the text importer, the title from the properties should not be used (class org.jabref.logic.importer.fileformat.PdfMergeMetadataImporter#importDatabase(java.nio.file.Path))
  2. Improve abstract parsing. Maybe stripper.setSortByPosition(true); needs to be removed from org.jabref.logic.importer.fileformat.PdfContentImporter#getFirstPageContents. Maybe, two methods need to be done to be able to parse the title (depending on positon) and parsing the abstract (more on content)

Hint:

leaf-soba commented 1 month ago

I want to take this issue.

koppor commented 1 month ago

/assign @leaf-soba

github-actions[bot] commented 1 month ago

πŸ‘‹ Hey @,

Thanks for your interest in this issue! πŸŽ‰

Newcomers, we're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly.

In case you encounter failing tests during development, please check our developer FAQs!

Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback.

⚠ Note that this issue will become unassigned if it isn't closed within days.

πŸ”§ A maintainer can also add the **** label to prevent it from being unassigned automatically.

Happy coding! πŸš€

leaf-soba commented 2 weeks ago

I want to check the next step is https://github.com/JabRef/jabref/issues/12139, or get a correct author/abstract?