-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Latex to Unicode in author field fails #2063
Comments
Confirmed. Will take a look at it. |
Ah, I found the problem: For some reason I don't know there exist 2 Variants of these character, However, JabRef only supports the first one: I will try to edit the second character as well |
@oscargus is the expert here 😄 |
The problem is theoretically easy to fix, but practically we have the problem that the mappings are stored in a HashMap and we have no chance to add a double entry. Fuu.. I hate HashMaps sometimes. |
Refs JabRef#145, #1215 |
@koppor Sure. I found that piece of code. However,
Both versions are valid. The question is: Do we find a solution to support multiple variants or do we stick with just one variant and then do nothing? The current behaviour is more or less removing the character if no conversion possible |
I think you can just add a new entry to the |
That was may inital idea, too: However the point is, we have a HashMap later on:
public static final Map<String, String> LATEX_UNICODE_CONVERSION_MAP = new HashMap<>();
And unicode Number is the key.. Problem: We have now 1 Unicode Number -> 2 Values. |
But this map has the latex code as the key and unicode as the value, see
|
Okay, I tried the approach using @tobiasdiez approach and in theory it should work. However, through debugging I noticed that the CleanLatex String methods removes all kind of slashes and braces which result in getting the same strippedLatex key...
|
Yes, the key here used in the lookup will/should be |
Related #2458 I had the very same problem in the above issue: The cleanLaTeX method stripping away important information. Ultimately the problem is not so much the maps, but rather the way in which |
We integrated a new library for performing the conversion in #2532: latex2unicode. As far as I have tested in the UI, the problems described here are solved now, so I am closing this issue. Feel free to reopen in case the problem reappears! |
Is now also tested with 9eef09c |
JabRef 3.7dev--snapshot--2016-09-25--master--40df60b
windows 10 10.0 amd64
Java 1.8.0_101
The text was updated successfully, but these errors were encountered: