-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Hyphenation is undone by Jabref #2712
Comments
@j0hannes For the text displayed in the main table, JabRef converts LaTeX to unicode. We implemented this because users complained that However, this is only for the visual part. When I enter your example in the entry editor in the current master branch, the |
I tried it with the current master branch (a1f4101) and it doesn't work like that. You can reproduce the error by
The result is that as soon as it has been opened by Jabref the |
I can't reproduce this with standard settings. Are you using "save actions" which contain a "Latex to unicode" conversion (see |
Sorry, but I cannot reproduce your problem. I also tried this with the current master. Opening a file that contains |
@matthiasgeiger that was to clue I was missing. So LaTeX to Unicode does not only render special character such as |
@j0hannes Yes, sort of. It does not eliminate the formatting without substitution, though. It replaces the formatting with its Unicode equivalent. Very recently (only in the 4.0 branch), we replaced our custom and incomplete logic for that with a quite sophisticated library that processes almost everything LaTeX. You can test what it is capable of here: http://latex2unicode.herokuapp.com/ So, since the underlying problem has been clarified, I guess this can be closed? |
In this case that would be U+00AD (soft hyphen). I don't know if any LaTeX component can handle the soft hyphen character, but in any case that would require Jabref (or the library) to insert it in the first place instead of deleting it. I would say it is still an issue. You cannot have your special characters converted and your formatting preserved. |
Can you summarize that? It is not easy to follow here. As far as I understand, the formatting is preserved using unicode. In LaTeX my-word means, that the hyphenation is my-word, but it should be written as myword. I hope, that JabRef does not delete There are even more shorthands: http://tex.stackexchange.com/q/321063/9075 |
@koppor It is preserved in the bib file as before, unless the user explicitly configures JabRef to replace LaTeX with unicode on save, as @j0hannes did. To actually see the soft hyphen, you need to use a font that displays it. In the web interface of latex2unicode or in my Miketex environment, it is not visible for example. |
@koppor The LaTeX to Unicode filter removes any |
Yes, I get the issue. I very much like the auto conversion. I convert my
biblatex database automatically to UTF-8. I don't think, pdflatex supports
the special UTF-8 char. Thus, the conversion is not useful.
Thus, I am very much in favour to disable this conversion during save. For
the table, it is OK. Well, to ease implementation, I would just also drop
this conversion during display at the entry table. Very much like what we
did at _.
Workarounds:
- JabRef should never do UTF8 conversion during save.
- Use LaTeX's hyphenation command
- Add the hyphenation command to the preamle of the bibtex file. Wasn't
@Preamble the thing to do?
As this seems to be easy to make and a high need on your side: Could you
please do a similar conversion as Jörg did in
#2711?
Am 06.04.2017 6:04 nachm. schrieb "j0hannes" <notifications@github.com>:
… @koppor <https://github.com/koppor> The LaTeX to Unicode filter removes
any \-. That's why you can't have Unicode conversion if you rely on
manual hyphenation.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2712 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABTafpp_OgZ7d2Ltg1RvxDMLgvKoKkT0ks5rtQ0EgaJpZM4M0vO0>
.
|
Any progress on this? |
JabRef version 4.0.0-dev on Arch via Jabref-git from AUR
Steps to reproduce:
And the
\-
is gone.The only error I find - most likely not related:
The text was updated successfully, but these errors were encountered: