ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Julian Becker <becker.julian@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: undefined control sequence bug with German umlaut in bibliography
Date: Sat, 4 Jun 2011 11:23:22 +0200	[thread overview]
Message-ID: <BANLkTi=0HKzbGU+j+OxaWTeYLCdbFZ5m9g@mail.gmail.com> (raw)
In-Reply-To: <BANLkTim24G5rO-pmt5wMGzsTy4bdyg-1_Q@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 4008 bytes --]

I can also add that in the first case with the author name "Träger", the
generated bbl-file looks messed up and (Notepad++ doesn't recognize the
encoding as UTF8. Changing the encoding to UTF8 manually shows the complete
names "Träger" correctly, but the abbreviations (what should have been
"Trä06") seem to be messed up.

I'm not familiar with the intricacies and details of UTF8 encoding, but is
it possible that there is a byte missing from the "ä" which has been cut off
during the abbreviation process?

The abbreviated "Trä06" seems to be incorrectly encoded (in hexadecimal) as:
54 C3 A4 30 36,
while it should be: 54 72 C3 A4 30 36.

So in the abbreviation process, the encoding of some characters over several
bytes seems to be neglected.

I attached the bbl-files for both cases to this e-mail, since I don't know,
what would happen to the encoding, if I just pasted them as plain text here.

Julian


2011/6/4 Julian Becker <becker.julian@gmail.com>

> Thank you everybody for your answers.  Writing Tr{\"a}ger as Thomas
> suggested works well, but unfortunately, I'm using Mendeley Desktop for the
> management of my bibtex file and I can't seem to be able to influence the
> way in which it encodes the special characters.
>
> @Mojca: Indeed, it also fails if I just write "Träger" in UTF-8 encoding
> (however, "Schräger" works just fine. All combinations where the "ä" is at
> the third place of the word seem to fail.). The error message is similar but
> slightly different now. The log file shows the following:
> ---------------
> system > begin file test.tex at line 3
> publications > loading database from test.bbl
> (test.bbl
> ! String contains an invalid utf-8 sequence.
> l.1 \setuppublicationlist[samplesize={Tr
> Ã06},totalnumber=1]
> A funny symbol that I can't read has just been (re)read.
> Just continue, I'll change it to 0xFFFD.
>
> ! String contains an invalid utf-8 sequence.
> l.5 n=1,s=Tr
> Ã06]
> A funny symbol that I can't read has just been (re)read.
> Just continue, I'll change it to 0xFFFD.
>
> ! String contains an invalid utf-8 sequence.
> \doifassignmentelse ...gnmentelse \detokenize {#1}
> =@@\@end@ \expandafter \se...
> \dostartpublication ... ->\doifassignmentelse {#1}
> {\getparameters [\??pb ][k...
> l.9 \stoppublication
>
> A funny symbol that I can't read has just been (re)read.
> Just continue, I'll change it to 0xFFFD.
>
> )
> -----------------------
>
> Julian
>
>
> 2011/6/4 Pontus Lurcock <pont@talvi.net>
>
>> On Fri 03 Jun 2011, Thomas A. Schmitz wrote:
>>
>> > But I admit it's not easy to know that, bibtex documentation is a
>> > real mess
>>
>> Patience please! ‘This document will be expanded when BibTEX version
>> 1.00 comes out’ -- BIBTEXing, February 8, 1988.
>>
>> :-)
>>
>> Pont
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>>
>> ___________________________________________________________________________________
>>
>
>
>
> --
> Julian Becker
> Institut für Angewandte Physik, R.123
> Westfälische Wilhelms-Universität Münster
> Corrensstr. 2/4
> 48149 Münster / Westfalen
> Tel. 0251 83-3 61 53
> Mob. 0151 599 848 29
> e-mail: j_beck16@uni-muenster.de
>
> "Keep thy heart with all diligence; for it is the wellspring of life."
>



-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_beck16@uni-muenster.de

"Keep thy heart with all diligence; for it is the wellspring of life."

[-- Attachment #1.2: Type: text/html, Size: 5755 bytes --]

[-- Attachment #2: testA.bbl --]
[-- Type: application/octet-stream, Size: 212 bytes --]

\setuppublicationlist[samplesize={TrÃ06},totalnumber=1]

\startpublication[k=Entry1,t=misc,
a={{Träger}},y=2006,
n=1,s=TrÃ06]
\author[]{D}[D.]{}{Träger}
\pubyear{2006}
\title{{Some Document}}
\stoppublication


[-- Attachment #3: testB.bbl --]
[-- Type: application/octet-stream, Size: 216 bytes --]

\setuppublicationlist[samplesize={Sch06},totalnumber=1]

\startpublication[k=Entry1,t=misc,
a={{Schräger}},y=2006,
n=1,s=Sch06]
\author[]{D}[D.]{}{Schräger}
\pubyear{2006}
\title{{Some Document}}
\stoppublication


[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2011-06-04  9:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-03 18:38 Julian Becker
2011-06-03 19:03 ` Thomas A. Schmitz
2011-06-04  0:31   ` Pontus Lurcock
2011-06-04  8:43     ` Julian Becker
2011-06-04  9:23       ` Julian Becker [this message]
2011-06-04  9:26         ` Taco Hoekwater
2011-06-07  7:42           ` Ulrike Fischer
2011-06-04 10:07         ` Pontus Lurcock
2011-06-04 10:32           ` Julian Becker
2011-06-06 10:11           ` Arthur Reutenauer
2011-06-06 10:29             ` Pontus Lurcock
2011-06-06 10:44               ` Arthur Reutenauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=0HKzbGU+j+OxaWTeYLCdbFZ5m9g@mail.gmail.com' \
    --to=becker.julian@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).