Skip to content

Fix latex2unicode and unicode2latex#6155

Closed
koppor wants to merge 6 commits into
masterfrom
fix-5547
Closed

Fix latex2unicode and unicode2latex#6155
koppor wants to merge 6 commits into
masterfrom
fix-5547

Conversation

@koppor

@koppor koppor commented Mar 22, 2020

Copy link
Copy Markdown
Member

Begin to fix #5547

Together with @calixtus

Still work in progess. Early draft - just to save our work if my machine crashes.

  • Change in CHANGELOG.md described (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for bigger UI changes)
  • Checked documentation: Is the information available and up to date? If not: Issue created at https://github.com/JabRef/user-documentation/issues.

@tobiasdiez tobiasdiez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uiii, replacing the latex2unicode library may turn out to be a big project (especially to get the more advanced parsing to work). Anyway, please also add the test from https://github.com/tomtung/latex2unicode/blob/master/src/test/scala/com/github/tomtung/latex2unicode/Latex2UnicodeTest.scala as our tests are not as extensive.

@Siedlerchr

Copy link
Copy Markdown
Member

Why not port the Scala stuff to plain Java?

@koppor

koppor commented Mar 22, 2020

Copy link
Copy Markdown
Member Author

This is a very early PR and we are in the middle of discussing. We did not finish it. We (especially me) thought, it would be a good idea to push the changes here in the case of data loss.

We are currently in the process of understanding @oscargus's code. We aim for latex -> unicode and unicode -> latex working. They do not cover the same set of functionality. In the case of plain symbols, the unicode -> latex converter seems to cover more.

We really look into the latex2unicode code, but had not the time to port everything. We're just at the beginning.

Sorry for not explaining in the description. The time was up and I wanted to persist the work we achieved so far.

@koppor koppor changed the title [WIP] Fix latex2unicode and unicode2latex Fix latex2unicode and unicode2latex Apr 23, 2020
@koppor

koppor commented May 26, 2020

Copy link
Copy Markdown
Member Author

For the ADR:

@calixtus calixtus closed this Jul 21, 2020
@calixtus

Copy link
Copy Markdown
Member

Since this PR was not moving forward and we didn't ha a good idea yet how to move on, were closing this for now.

@koppor koppor deleted the fix-5547 branch August 2, 2020 19:16
@koppor

koppor commented Jan 4, 2021

Copy link
Copy Markdown
Member Author

This could maybe solve #7291.

@koppor

koppor commented Jan 4, 2021

Copy link
Copy Markdown
Member Author

Tests should also include #2500 (comment) and #2498 and #2458

@koppor koppor added the status: freeze Issues posponed to a (much) later future label Jan 4, 2021
@koppor

koppor commented Feb 1, 2021

Copy link
Copy Markdown
Member Author

This could have fixed #3644.

@calixtus

Copy link
Copy Markdown
Member

Possible solution strategy: create a simple parser for simple latex text formatting and use a hashmap (sadly we were not able to see a clear systematic in the unicode char tables)

@koppor

koppor commented Mar 21, 2022

Copy link
Copy Markdown
Member Author

Missing \mkbibquote{}, \enquote{}, \mkbibemph{}, and \emph{}. See https://discourse.jabref.org/t/recognize-quotation-commands/3296/3 for a discussion.

@calixtus

Copy link
Copy Markdown
Member

@koppor

koppor commented Jun 25, 2022

Copy link
Copy Markdown
Member Author

koppor pushed a commit that referenced this pull request Aug 1, 2022
c750b6e APA: Put conditional event-title logic in a macro (#6161)
a87414f Remove month from association-for-compuational-linguistics.csl (#6158)
6153db0 Remove issue numbers from BJOC style (#6155)
e231ea3 Bug fix for `event` regression (#6154)
0dab651 Add event-title to other APA styles (#6153)
698cf1c APA: `event-title` and conditional `event` (#6152)
58d3f8f Update vancouver-author-date.csl (#6148)
f1638a9 add substitute to Vancouver author date (#6147)
39fede5 Update associacao-brasileira-de-normas-tecnicas.csl (#6138)
fde7695 Include chapter title (#6140)
1e3d8b4 Update n.d. abbreivation for DGP style (#6136)
ebb728b suffix '.' after first group; changed e-mail (#6135)
eed4f07 Update and rename sciences-po-ecole-doctorale-note-french.csl to scie… (#6127)
f194647 Delete TU Dresden Medizin as requested by library (#6131)
d8423d8 Create entomological-review.csl (#6120)
064a394 Create australasian-journal-of-philosophy.csl (#6063)
a998ded Add composer.json (#5668)
37083c9 Update copernicus-publications.csl (#6062)
694c97b Create chaucer review (#6061)
625a424 Create haffner-style-manual.csl (#6054)
8b7224b make annals-of-allergy-asthma-and-immunology independent (#6041)
710748c Create university-of-pretoria-harvard-theology-religion.csl (#6106)
d16dffd Create health-physics.csl (#6040)
ca9e184 Update style-manual-australian-government.csl (#6119)
e412277 Create chemical-engineering-technology.csl (#6039)
bebdb48 Create bibliothek-forschung-und-praxis.csl (#6038)
29e49cd Update nature.csl (#6117)
891897d fix short title for SBL (#6118)

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: c750b6e
@koppor

koppor commented Sep 1, 2022

Copy link
Copy Markdown
Member Author

Related work: https://www.ctan.org/pkg/texaccents

@koppor

koppor commented Dec 5, 2022

Copy link
Copy Markdown
Member Author

@koppor koppor restored the fix-5547 branch May 12, 2023 22:03
@koppor

koppor commented May 15, 2023

Copy link
Copy Markdown
Member Author

@koppor

koppor commented Oct 12, 2023

Copy link
Copy Markdown
Member Author

Readings on Unicode https://tonsky.me/blog/unicode/ (via @Siedlerchr)

@koppor

koppor commented Nov 21, 2023

Copy link
Copy Markdown
Member Author

@koppor

koppor commented Mar 17, 2025

Copy link
Copy Markdown
Member Author

Main reason of this PR:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: big status: freeze Issues posponed to a (much) later future

Projects

Status: Free to take

Development

Successfully merging this pull request may close these issues.

LaTeX to Unicode and vice versa has stopped working

4 participants