Kosta Welke wrote:
> > Kosta Welke wrote:
> > > I just tried adding a chinese character using {\fontspec{Sazanami
> > > Mincho}猫} into the BibTeX and it worked flawlessly.
> >
> > However, this does not fix the sorting problem.
>
> Well if we're happy with 'sort by unicode number', sorting utf8
> byte-by-byte should be fine (i think).

To see what I mean, try the attached bib files. Use \nocite* in the document 
to get all entries and see how BibTeX sorts the entry with the name "Bär" 
wrongly in the utf8-encoded file (the name "Bär" must be sorted right after 
"Baar" and before "Bauman").

Bibtex8 does this specific case right, because the latin1 glyphs have the same 
code points in unicode. However, bibtex8 will scream and bail out at the first 
multibyte character it finds. I guess sorting on non-latin1 glyphs will be 
just random.

Jürgen
@Article{Baa08,
  Author         = {Baar, Hans},
  Title          = {Something},
  Journal        = {Somewhere},
  year           = 2008
}

@Article{Bar08,
  Author         = {Bär, Peter},
  Title          = {Something else},
  Journal        = {Somewhere else},
  year           = 2008
}

@Article{Bau08,
  Author         = {Bauman, Charles},
  Title          = {And yet something else},
  Journal        = {At a third place},
  year           = 2008
}

@Article{Bux08,
  Author         = {Buxtehude, Dietrich},
  Title          = {And a fourth something else},
  Journal        = {At a fourth location},
  year           = 2008
}

@Article{Baa08,
  Author         = {Baar, Hans},
  Title          = {Something},
  Journal        = {Somewhere},
  year           = 2008
}

@Article{Bar08,
  Author         = {B\"ar, Peter},
  Title          = {Something else},
  Journal        = {Somewhere else},
  year           = 2008
}

@Article{Bau08,
  Author         = {Bauman, Charles},
  Title          = {And yet something else},
  Journal        = {At a third place},
  year           = 2008
}

@Article{Bux08,
  Author         = {Buxtehude, Dietrich},
  Title          = {And a fourth something else},
  Journal        = {At a fourth location},
  year           = 2008
}

Reply via email to