Discussion:
coding of umlaut
Wolfgang Engelmann
2014-10-14 12:42:16 UTC
Permalink
Hello,

I must have done something wrong with the encoding of my bib file; I am
getting instead of mutated vowels a combination of characters both in
the lyx file as well as in the pdf output (see attached). I am using
Jabref as the reference manager and Kubuntu.
Is this a matter of the setting in the jabref, and which one, or of the
setting in lyx, and which one?

Wolfgang
<http://dict.leo.org/#/search=vowel&searchLoc=0&resultOrder=basic&multiwordShowSingle=on>
Jürgen Spitzmüller
2014-10-14 12:52:02 UTC
Permalink
Post by Wolfgang Engelmann
I must have done something wrong with the encoding of my bib file; I am
getting instead of mutated vowels a combination of characters both in the
lyx file as well as in the pdf output (see attached). I am using Jabref as
the reference manager and Kubuntu.
Is this a matter of the setting in the jabref, and which one, or of the
setting in lyx, and which one?
It looks line you use utf8 encoding for the bib file. I suggest you use
latin9 or whatever your document uses, instead (traditional bibtex and
bibtex8 cannot deal with utf8 encoding properly, anyway).

JÃŒrgen
Post by Wolfgang Engelmann
Wolfgang
<http://dict.leo.org/#/search=vowel&searchLoc=0&resultOrder=basic&multiwordShowSingle=on>
Wolfgang Engelmann
2014-10-14 13:08:39 UTC
Permalink
Thanks, Jürgen.

In Jabref I have set
options>preferences>general>default encoding>
UT > ok
but it still gives me the wrong u-Umlaut
What should I do?

Wolfgang
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
I must have done something wrong with the encoding of my bib file; I am
getting instead of mutated vowels a combination of characters both in the
lyx file as well as in the pdf output (see attached). I am using Jabref as
the reference manager and Kubuntu.
Is this a matter of the setting in the jabref, and which one, or of the
setting in lyx, and which one?
It looks line you use utf8 encoding for the bib file. I suggest you use
latin9 or whatever your document uses, instead (traditional bibtex and
bibtex8 cannot deal with utf8 encoding properly, anyway).
Jürgen
Post by Wolfgang Engelmann
Wolfgang
<http://dict.leo.org/#/search=vowel&searchLoc=0&resultOrder=basic&multiwordShowSingle=on>
Wolfgang Engelmann
2014-10-14 13:20:12 UTC
Permalink
Post by Wolfgang Engelmann
Thanks, Jürgen.
In Jabref I have set
options>preferences>general>default encoding>
UT > ok
should of course be UTF8
If I insert the reference in my LyX document by clicking on the LyX
icon, I get already the non-Umlaut.
BibTeX source in Jabref looks alright.
Might the error be in some wrong setting in LyX?
Post by Wolfgang Engelmann
but it still gives me the wrong u-Umlaut
What should I do?
Wolfgang
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
I must have done something wrong with the encoding of my bib file; I am
getting instead of mutated vowels a combination of characters both in the
lyx file as well as in the pdf output (see attached). I am using Jabref as
the reference manager and Kubuntu.
Is this a matter of the setting in the jabref, and which one, or of the
setting in lyx, and which one?
It looks line you use utf8 encoding for the bib file. I suggest you use
latin9 or whatever your document uses, instead (traditional bibtex and
bibtex8 cannot deal with utf8 encoding properly, anyway).
Jürgen
Post by Wolfgang Engelmann
Wolfgang
<http://dict.leo.org/#/search=vowel&searchLoc=0&resultOrder=basic&multiwordShowSingle=on>
Jürgen Spitzmüller
2014-10-14 13:23:29 UTC
Permalink
Post by Wolfgang Engelmann
Thanks, JÃŒrgen.
In Jabref I have set
options>preferences>general>default encoding>
UT > ok
should of course be UTF8
If I insert the reference in my LyX document by clicking on the LyX icon,
I get already the non-Umlaut.
BibTeX source in Jabref looks alright.
Might the error be in some wrong setting in LyX?
No. As I wrote, you need to set it to latin9 (ISO8859_15), not UTF8. At
least as long as you are not using biblatex/biber.

JÃŒrgen
Wolfgang Engelmann
2014-10-14 15:41:15 UTC
Permalink
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
Post by Wolfgang Engelmann
Thanks, Jürgen.
In Jabref I have set
options>preferences>general>default encoding>
UT > ok
should of course be UTF8
If I insert the reference in my LyX document by clicking on the LyX icon,
I get already the non-Umlaut.
BibTeX source in Jabref looks alright.
Might the error be in some wrong setting in LyX?
No. As I wrote, you need to set it to latin9 (ISO8859_15), not UTF8. At
least as long as you are not using biblatex/biber.
Jürgen
With

ISO8859_15

I still do not get the correct Umlaut into my lyx document. I also saved
this document under a different name, but no improvement. Did I get it
right, it is a matter of my bibfile encoding, not of lyx? I use bibtex.
Thanks again, and sorry

Wolfgang
Jürgen Spitzmüller
2014-10-14 16:01:25 UTC
Permalink
Post by Jürgen Spitzmüller
With
ISO8859_15
I still do not get the correct Umlaut into my lyx document. I also saved
this document under a different name, but no improvement.
If you open the bib file with a text editor and set the editor's encoding
to ISO8859_15, does it contain the correct glyph? It might have happened
that the bib file was saved with a scrambled encoding.
Post by Jürgen Spitzmüller
Did I get it right, it is a matter of my bibfile encoding, not of lyx? I
use bibtex.
Yes.

JÃŒrgen
Post by Jürgen Spitzmüller
Thanks again, and sorry
Wolfgang
Wolfgang Engelmann
2014-10-14 16:31:15 UTC
Permalink
Post by Jürgen Spitzmüller
Post by Jürgen Spitzmüller
With
ISO8859_15
I still do not get the correct Umlaut into my lyx document. I also saved
this document under a different name, but no improvement.
If you open the bib file with a text editor and set the editor's encoding
to ISO8859_15, does it contain the correct glyph? It might have happened
that the bib file was saved with a scrambled encoding.
Yes, that worked. Does perhaps somebody know why setting the bib file in
Jabref to

ISO8859_15

does not work?

Wolfgang
Post by Jürgen Spitzmüller
Post by Jürgen Spitzmüller
Did I get it right, it is a matter of my bibfile encoding, not of lyx? I
use bibtex.
Yes.
Jürgen
Post by Jürgen Spitzmüller
Thanks again, and sorry
Wolfgang
Jürgen Lange
2014-10-14 18:10:39 UTC
Permalink
Am 14.10.2014, 18:31 Uhr, schrieb Wolfgang Engelmann =
Post by Jürgen Spitzmüller
With
ISO8859_15
I still do not get the correct Umlaut into my lyx document. I also =
saved
this document under a different name, but no improvement.
If you open the bib file with a text editor and set the editor's =
encoding
to ISO8859_15, does it contain the correct glyph? It might have happe=
ned
that the bib file was saved with a scrambled encoding.
Yes, that worked. Does perhaps somebody know why setting the bib file =
in =
Jabref to
ISO8859_15
does not work?
Wolfgang
Post by Jürgen Spitzmüller
Did I get it right, it is a matter of my bibfile encoding, not of ly=
x? =
Post by Jürgen Spitzmüller
I
use bibtex.
Yes.
J=FCrgen
Post by Jürgen Spitzmüller
Thanks again, and sorry
Wolfgang
You should try coding "Standard-Zeichenkodierung: Cp1252" in JabRef. =

Umlaute where displayed correct in Lyx.

Greeting
J=FCrgen Lange
Guenter Milde
2014-10-16 17:23:23 UTC
Permalink
[-- Type: text/plain, Encoding: quoted-printable --]
Post by Wolfgang Engelmann
I must have done something wrong with the encoding of my bib file; I am
getting instead of mutated vowels a combination of characters both in the
lyx file as well as in the pdf output (see attached). I am using Jabref as
the reference manager and Kubuntu.
Is this a matter of the setting in the jabref, and which one, or of the
setting in lyx, and which one?
It looks line you use utf8 encoding for the bib file. I suggest you use
latin9 or whatever your document uses, instead (traditional bibtex and
bibtex8 cannot deal with utf8 encoding properly, anyway).
I suggest to use ASCII with LICR (LaTeX internal character representation)
macros like {G{\"u}nter Milde}. This has the advantage, that you can use the
bib-file with documents in different encodings.

Maybe Jabref supports exporting the bib-file in ASCII with LICRs.
(BTW: LyX does support ASCII for the LaTeX export).

Günter
Wolfgang Engelmann
2014-10-18 07:55:09 UTC
Permalink
Post by Guenter Milde
[-- Type: text/plain, Encoding: quoted-printable --]
Post by Wolfgang Engelmann
I must have done something wrong with the encoding of my bib file; I am
getting instead of mutated vowels a combination of characters both in the
lyx file as well as in the pdf output (see attached). I am using Jabref as
the reference manager and Kubuntu.
Is this a matter of the setting in the jabref, and which one, or of the
setting in lyx, and which one?
It looks line you use utf8 encoding for the bib file. I suggest you use
latin9 or whatever your document uses, instead (traditional bibtex and
bibtex8 cannot deal with utf8 encoding properly, anyway).
I suggest to use ASCII with LICR (LaTeX internal character representation)
macros like {G{\"u}nter Milde}. This has the advantage, that you can use the
bib-file with documents in different encodings.
Maybe Jabref supports exporting the bib-file in ASCII with LICRs.
(BTW: LyX does support ASCII for the LaTeX export).
GÃŒnter
I finally managed to solve the Umlaut issue with the help of this list.
I thought it might help to give a short summary.

/Note/: This is only of interest for those using long reference lists
(>100, lets say).

I am collecting my references (biosciences) by using Medline in the Web
search facility of Jabref.
Under options>preferences>default encoding I select ISO8859_15.
After having selected the references, I put those which come with a
warning re coding in a separate bib-file
Important: do NOT accept the proposal to change the coding.
I end up with two bib files, one of which contains the problematic
entrances.
I open this file with an editor such as Jedit in which I have also set
the coding to ISO8859_15 by
Extras>file options>character encoding.
The wrong coded characters are highlighted and can be changed to correct
ones (e.g. a long - to --).
In the lyx document I include BOTH files under bibtex generated
bibliography.
If my lyx file does not give a pdf output because of fatal errors as
shown in the terminal and the
error output (which is often difficult to interpret and to trace down to
the place where they occur,
especially if citations are concerned), I remove the bibtex generated
bibliography box.
If the pdf output is now working, I reenter the bibliography box but
with the (hopefully) correct bib file only.
If the output is now correct, I have to check again the bib file with
the problematic entrances.
Otherwise I have to check the "correct" file too.

Thanks to all those being helpful and patient
Wolfgang
Jürgen Spitzmüller
2014-10-18 13:16:10 UTC
Permalink
Post by Wolfgang Engelmann
I open this file with an editor such as Jedit in which I have also set
the coding to ISO8859_15 by
Extras>file options>character encoding.
The wrong coded characters are highlighted and can be changed to correct
ones (e.g. a long - to --).
Note that it i probably easier and less error-prone to use a tool such as
recode to change the encoding of the file from utf8 to latin9 in the first
place:

http://wiki.lyx.org/BibTeX/Tips#toc1

Jürgen
Wolfgang Engelmann
2014-10-18 14:59:27 UTC
Permalink
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
I open this file with an editor such as Jedit in which I have also set
the coding to ISO8859_15 by
Extras>file options>character encoding.
The wrong coded characters are highlighted and can be changed to correct
ones (e.g. a long - to --).
Note that it i probably easier and less error-prone to use a tool such as
recode to change the encoding of the file from utf8 to latin9 in the first
http://wiki.lyx.org/BibTeX/Tips#toc1
Jürgen
|Thats of course much easier. Would the command for conversion from
UTF-8 to |

ISO8859_15 be:

|recode -d u8..l9 myFile.bib > myNewFile.bib

Wolfgang
|
Jürgen Spitzmüller
2014-10-18 15:16:31 UTC
Permalink
Post by Wolfgang Engelmann
|Thats of course much easier. Would the command for conversion from
UTF-8 to |
|recode -d u8..l9 myFile.bib > myNewFile.bib
Yes. u8 is the shortcut for utf-8, l9 for latin9.

Jürgen
Guenter Milde
2014-10-20 15:24:50 UTC
Permalink
Post by Jürgen Spitzmüller
Post by Wolfgang Engelmann
|Thats of course much easier. Would the command for conversion from
UTF-8 to |
|recode -d u8..l9 myFile.bib > myNewFile.bib
Yes. u8 is the shortcut for utf-8, l9 for latin9.
But, then it is also easy to change it to LaTeX-ASCII

recode -d u8..LaTeX myFile.bib > myNewFile.bib

with the advantage, that you can use the bib file also with UTF-8-encoded
documents.

Günter

Continue reading on narkive:
Loading...