Dear all, My .tex and .bib files are at the end of the email. The commands I run are context bibtry && context bibtry The first `context bibtry` is ok but no .bbl file generated. The second one complains publications : loading database from bibtry.bbl (bibtry.bbl ! Text line contains an invalid utf-8 sequence. l.22 n=2,s= åååå86] Can t-bib do with Chinese bib entry? or is it just a problem of bibtex? I'm using MkIV(current trunk) and t-bib(march 2, 2009). BTW. Is only absolute path can be used in \setupbibtex? Thanks. Best wishes, Wei-Wei Guo ============ bibtry.tex =========== \usemodule[bib] \setupbibtex[database=~/mytry.bib] \starttext English Bibliogrphy \cite[article-full]. 中文文献 \cite[c-article-full] 。 \completepublications \stoptext ================================== ============= mytry.bib ========== @ARTICLE{article-full, author = {L[eslie] A. Aamport and L[eslie] A. Aamport and L[eslie] A. Aamport and L[eslie] A. Aamport}, title = {The Gnats and Gnus Document Preparation System}, journal = {\mbox{G-Animal's} Journal}, year = 1986, volume = 41, number = 7, pages = "73--83", month = jul, note = "This is a full ARTICLE entry", } @ARTICLE{c-article-full, author = {姓名一 and 姓名二 and 姓名三 and 姓名四}, title = {文章题目}, journal = {某某杂志二}, year = 1986, volume = 41, number = 7, pages = "73--82", month = jul, note = "This is a full ARTICLE entry", language = "chinese" } ====================================
Wei-Wei Guo wrote:
Dear all,
My .tex and .bib files are at the end of the email. The commands I run are
context bibtry && context bibtry
The first `context bibtry` is ok but no .bbl file generated. The second one complains
publications : loading database from bibtry.bbl (bibtry.bbl ! Text line contains an invalid utf-8 sequence. l.22 n=2,s= åååå86]
Can t-bib do with Chinese bib entry? or is it just a problem of bibtex?
I'm using MkIV(current trunk) and t-bib(march 2, 2009).
BTW. Is only absolute path can be used in \setupbibtex?
Thanks.
Best wishes, Wei-Wei Guo
============ bibtry.tex ===========
\usemodule[bib]
\setupbibtex[database=~/mytry.bib]
\starttext
English Bibliogrphy \cite[article-full].
中文文献 \cite[c-article-full] 。
\completepublications
\stoptext
==================================
============= mytry.bib ==========
@ARTICLE{article-full, author = {L[eslie] A. Aamport and L[eslie] A. Aamport and L[eslie] A. Aamport and L[eslie] A. Aamport}, title = {The Gnats and Gnus Document Preparation System}, journal = {\mbox{G-Animal's} Journal}, year = 1986, volume = 41, number = 7, pages = "73--83", month = jul, note = "This is a full ARTICLE entry", }
@ARTICLE{c-article-full, author = {姓名一 and 姓名二 and 姓名三 and 姓名四}, title = {文章题目}, journal = {某某杂志二}, year = 1986, volume = 41, number = 7, pages = "73--82", month = jul, note = "This is a full ARTICLE entry", language = "chinese" }
you might want to look into mlbibtex then (it supports context) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Wei-Wei Guo wrote:
Dear all,
My .tex and .bib files are at the end of the email. The commands I run are
context bibtry && context bibtry
The first `context bibtry` is ok but no .bbl file generated. The second one complains
publications : loading database from bibtry.bbl (bibtry.bbl ! Text line contains an invalid utf-8 sequence. l.22 n=2,s= åååå86]
Can t-bib do with Chinese bib entry? or is it just a problem of bibtex?
The bib module should be able to handle anything as long as it is encoded in utf-8 (especially in mkiv). I have no idea what bibtex does/doesn't accept as input, but I am sure it will not reencode the database for you, so perhaps it is just a simple encoding issue.
BTW. Is only absolute path can be used in \setupbibtex?
No, but bibtex needs BIBINPUTS and BSTINPUTS variables that have to be set up correctly (and probably are not, if you are using garden minimals) Best wishes, Taco
Thanks for answering my questions. Taco Hoekwater 写道:
Wei-Wei Guo wrote:
Dear all,
My .tex and .bib files are at the end of the email. The commands I run are
context bibtry && context bibtry
The first `context bibtry` is ok but no .bbl file generated. The second one complains
publications : loading database from bibtry.bbl (bibtry.bbl ! Text line contains an invalid utf-8 sequence. l.22 n=2,s= åååå86]
Can t-bib do with Chinese bib entry? or is it just a problem of bibtex?
The bib module should be able to handle anything as long as it is encoded in utf-8 (especially in mkiv). I have no idea what bibtex does/doesn't accept as input, but I am sure it will not reencode the database for you, so perhaps it is just a simple encoding issue.
I'm sure that the files are encoded in UTF-8. Do you get any error with the example files posted in my previous email?
Best wishes, Taco
Best wishes, Wei-Wei
Wei-Wei Guo wrote:
Thanks for answering my questions.
Taco Hoekwater 写道:
Wei-Wei Guo wrote:
Dear all,
My .tex and .bib files are at the end of the email. The commands I run are
context bibtry && context bibtry
The first `context bibtry` is ok but no .bbl file generated. The second one complains
publications : loading database from bibtry.bbl (bibtry.bbl ! Text line contains an invalid utf-8 sequence. l.22 n=2,s= åååå86]
Can t-bib do with Chinese bib entry? or is it just a problem of bibtex?
The bib module should be able to handle anything as long as it is encoded in utf-8 (especially in mkiv). I have no idea what bibtex does/doesn't accept as input, but I am sure it will not reencode the database for you, so perhaps it is just a simple encoding issue.
I'm sure that the files are encoded in UTF-8. Do you get any error with the example files posted in my previous email?
I tried now: bibtex outputs rubbish for the 's' key (probably because it takes the first byte of an utf-8 sequence only). You'll have to edit or remove those keys by hand in the generated bbl. Best wishes, Taco
participants (3)
-
Hans Hagen
-
Taco Hoekwater
-
Wei-Wei Guo