ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: two problems for bib module
Date: Thu, 22 Jul 2010 17:06:26 +0200	[thread overview]
Message-ID: <4C485E72.5080107@wxs.nl> (raw)
In-Reply-To: <A087CB76-2C1F-4206-B1E3-09C82D32E730@uni-bonn.de>

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

On 22-7-2010 2:27, Thomas A. Schmitz wrote:

> I'm afraid I can't really help you with your problems; I have just a thought on # 2.: at it's core, bibtex is still a 7-bit application. Development on replacements has begun - there's bibtexu, which is in TL2010, there's biber; none of them is quite mature yet. If memory serves right, Hans said that in the future, he wants to bypass bibtex altogether and develop something of his own. So, long story short: if you use Chinese characters in a .bib file, it's hit-or-miss; it's unreliable and may or may not work. There's nothing ConTeXt can do about that as things stand now.

in principle it is possible but i need testers etc etc etc as i never 
use this feature myself

the attached example does not use bibtex at all, the bib file is read 
into mem (could also be an xml file) and it never sees bibtex

there is a bxml-apa.mkiv file that you'l probably recognize ..

\settrue \tracebibtexformat

can be fun too

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: progressive-005.tex --]
[-- Type: text/x-tex; name="progressive-005.tex", Size: 2208 bytes --]

\setuplayout[backspace=1cm,topspace=.5cm,header=.5cm,footer=0cm,width=middle,height=middle]

\setuppapersize[S8][S8]

\starttypescript[serif][zhfont]
    \definefontsynonym[western][name:latinmodernromanregular]
    \definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
    \definefontsynonym[fbsong][western][fallbacks=song]
    \definefontsynonym[Serif][fbsong]
    \definefontsynonym[SerifItalic][fbsong]
\stoptypescript

\starttypescript[myfonts]
    \definetypeface[myfonts][rm][serif][zhfont]
\stoptypescript

\usetypescript[myfonts]
\setupbodyfont[myfonts,rm,11pt]

\starttext

\definebibtexsession  [somebibtex]
\registerbibtexfile   [somebibtex] [cjk.bib]
\preparebibtexsession [somebibtex] [convert,strip]

% \setuplist[somebibtex][before={\blank[medium]},after={\blank[medium]}] % hm

% \settrue \tracebibtexformat

\setupbibtexpublications[somebibtex][before={\blank[small]},after={\blank[small]}]

\startxmlsetups bibtex:bibtex
    \xmlfilter{#1}{/entry/command(bibtex:format)}
\stopxmlsetups

\startxmlsetups bibtex:show
    \xmlshow{#1}
\stopxmlsetups

\applytobibtexsession[somebibtex][bibtex:list]

cite: \bibtexcitation[somebibtex][test-entry] (中国工业生产率的增长与收敛)

% \applytobibtexsession[somebibtex][bibtex:show]

\blank data        ref: \bibtexdataref       [somebibtex][test-entry]\blank
\blank type        ref: \bibtextyperef       [somebibtex][test-entry]\blank
\blank key         ref: \bibtexkeyref        [somebibtex][test-entry]\blank
\blank serial      ref: \bibtexserialref     [somebibtex][test-entry]\blank
\blank url         ref: \bibtexurlref        [somebibtex][test-entry]\blank
\blank doi         ref: \bibtexdoiref        [somebibtex][test-entry]\blank
\blank short       ref: \bibtexshortref      [somebibtex][test-entry]\blank
\blank year        ref: \bibtexyearref       [somebibtex][test-entry]\blank
\blank author      ref: \bibtexauthorref     [somebibtex][test-entry]\blank
\blank authoryear  ref: \bibtexauthoryearref [somebibtex][test-entry]\blank
\blank authoryears ref: \bibtexauthoryearsref[somebibtex][test-entry]\blank

\placebibtexpublications[somebibtex]

\stoptext

[-- Attachment #3: progressive-005.pdf --]
[-- Type: application/pdf, Size: 17456 bytes --]

[-- Attachment #4: cjk.bib --]
[-- Type: text/plain, Size: 249 bytes --]

@article{ test-entry,
  title   = {中国工业生产率的增长与收敛},
  author  = {谢千里,罗斯基,张轶凡},
  journal = {经济学(季刊)},
  volume  = {7},
  number  = {3},
  pages   = {809--826},
  year    = {2008}
}


[-- Attachment #5: Type: text/plain, Size: 486 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:[~2010-07-22 15:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19  8:51 Li Yanrui (李延瑞)
2010-07-22 12:27 ` Thomas A. Schmitz
2010-07-22 15:06   ` Hans Hagen [this message]

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=4C485E72.5080107@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=thomas.schmitz@uni-bonn.de \
    /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).