ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: t-bib cannot do with Chinese.
  2009-03-11  8:33 t-bib cannot do with Chinese Wei-Wei Guo
@ 2009-03-11  8:31 ` Hans Hagen
  2009-03-11  9:17   ` Wei-Wei Guo
  2009-03-11  8:33 ` Taco Hoekwater
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2009-03-11  8:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030"; Format="flowed", Size: 2657 bytes --]

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=
>              0Š20Š20Š20Š286]
> 
> 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 = {ijijÔÓÖ¾¶þ},
>    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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-bib cannot do with Chinese.
  2009-03-11  8:33 t-bib cannot do with Chinese Wei-Wei Guo
  2009-03-11  8:31 ` Hans Hagen
@ 2009-03-11  8:33 ` Taco Hoekwater
  2009-03-11  9:14   ` Wei-Wei Guo
  1 sibling, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2009-03-11  8:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 1481 bytes --]



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=
>              0Š20Š20Š20Š286]
> 
> 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

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* t-bib cannot do with Chinese.
@ 2009-03-11  8:33 Wei-Wei Guo
  2009-03-11  8:31 ` Hans Hagen
  2009-03-11  8:33 ` Taco Hoekwater
  0 siblings, 2 replies; 6+ messages in thread
From: Wei-Wei Guo @ 2009-03-11  8:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030"; Format="flowed", Size: 2079 bytes --]

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=
              0Š20Š20Š20Š286]

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 = {ijijÔÓÖ¾¶þ},
    year = 1986,
    volume = 41,
    number = 7,
    pages = "73--82",
    month = jul,
    note = "This is a full ARTICLE entry",
    language = "chinese"
}

====================================
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-bib cannot do with Chinese.
  2009-03-11  8:33 ` Taco Hoekwater
@ 2009-03-11  9:14   ` Wei-Wei Guo
  2009-03-11  9:26     ` Taco Hoekwater
  0 siblings, 1 reply; 6+ messages in thread
From: Wei-Wei Guo @ 2009-03-11  9:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030"; Format="flowed", Size: 1505 bytes --]

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=
>>              0Š20Š20Š20Š286]
>>
>> 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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-bib cannot do with Chinese.
  2009-03-11  8:31 ` Hans Hagen
@ 2009-03-11  9:17   ` Wei-Wei Guo
  0 siblings, 0 replies; 6+ messages in thread
From: Wei-Wei Guo @ 2009-03-11  9:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030"; Format="flowed", Size: 734 bytes --]

Thanks for replying.

I'm just a ordinary user. Studying another package might be too cost for me. :)


Best wishes,
Wei-Wei


Hans Hagen дµÀ:
> Wei-Wei Guo wrote:
> 
> you might want to look into mlbibtex then (it supports context)
> 
> Hans
> 
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-bib cannot do with Chinese.
  2009-03-11  9:14   ` Wei-Wei Guo
@ 2009-03-11  9:26     ` Taco Hoekwater
  0 siblings, 0 replies; 6+ messages in thread
From: Taco Hoekwater @ 2009-03-11  9:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 1738 bytes --]



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=
>>>              0Š20Š20Š20Š286]
>>>
>>> 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



___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-11  9:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-11  8:33 t-bib cannot do with Chinese Wei-Wei Guo
2009-03-11  8:31 ` Hans Hagen
2009-03-11  9:17   ` Wei-Wei Guo
2009-03-11  8:33 ` Taco Hoekwater
2009-03-11  9:14   ` Wei-Wei Guo
2009-03-11  9:26     ` Taco Hoekwater

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).