ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: ishamid <ishamid@lamar.colostate.edu>
Subject: RE: m-bib issues
Date: Thu, 17 Mar 2005 08:17:09 -0700	[thread overview]
Message-ID: <423A74FD@webmail.colostate.edu> (raw)

>===== Original Message From Taco Hoekwater <taco@elvenkind.com> =====
>> The \startpublication[a= ] option seems to cause m-bib to choke on some
>> accents. Here is an example:
>
>It might be a font thing, because my Context does not complain and
>typesets the \~\i correctly.

Rather, its almost certainly a macro thing, because I've had to 
redefine/create some accents for transliteration, etc. See below. Anyway, 
these accents work fine outside of the \startpublication[a= ] option.

>A log file and/or texexec --version
>information is needed.

Silly me, I was half-sleep when I sent that. Try this:

===================test-bib.tex===================
\setupoutput[pdftex]

\usemodule[bib]

\def\SHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font
    \kern-.0156\dimen0} % compensate for slant/italic in lower accents

\def\h#1{{\oalign{\relax#1\crcr\hidewidth\SHIFT{34}%
    \vbox to.2ex{\hbox{\char'25}\vss}\hidewidth}}}

\def\~#1{{\struttedbox{\accent"7E #1}}}

\def\AHSAI{A\d hs\=a'\~\i}
%\def\AHSAI{A\d hs\=a'\i}

\def\KHAWARIZMI{\h Haw\=arizm\=i}
%\def\KHAWARIZMI{Khaw\=arizm\=i}

\KHAWARIZMI{} (from whom we get `algorithm')

\input test-bib.bbl

\starttext

\cite[ahsaif]

\cite[ahsaijk]

\cite[khawarizmi]

\AHSAI

\KHAWARIZMI

\stoptext
===================================================
==================test-bib.bbl=====================
\startpublication[k=ahsaif,
                  t=book,
                  a=\AHSAI,
                  y=1856,
                  s=\AHSAI1856]
%\author[\v Say\h h]{A\.hmad Ibn Zayni \Al-D\={i}n}[A.]{}{\Ah}
\author[\v Say\h h]{A\.hmad Ibn Zayni \Al-D\={i}n}[A.]{}{\Ah}
\title{\v Sar\.hu \~al-Faw\={a}\'id}
\pubname{n.p.}
\city{Tabriz}
\pubyear{1856}
\stoppublication

\startpublication[k=ahsaijk,
                  t=book,
                  a=\AHSAI,
                  y=1856--59,
                  s=\AHSAI1856--59]
\author[\v Say\h h]{A\.hmad Ibn Zayni \Al-D\={i}n}[A.]{}{\Ah}
\title{Jaw\={a}mi\`u \~al-Kalim}
\pubname{n.p.}
\note{Two volumes}
\city{Tabriz}
\pubyear{1856--59}
\stoppublication

\startpublication[k=khawarizmi,
                  t=book,
                  a=\KHAWARIZMI,
                  y=1856,
                  s=\KHAWARIZMI1856]
%\author[\v Say\h h]{A\.hmad Ibn Zayni \Al-D\={i}n}[A.]{}{\Ah}
\author[\v Say\h h]{A\.hmad Ibn Zayni \Al-D\={i}n}[A.]{}{\Ah}
\title{\v Sar\.hu \~al-Faw\={a}\'id}
\pubname{n.p.}
\city{Tabriz}
\pubyear{1856}
\stoppublication

===================================================
======================log==========================
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3) (format=cont-en 
2005.3.16)  17 MAR 2005 08:33
entering extended mode
\write18 enabled.
 (c:\CONTEXT\texmf-local/web2c/natural.tcx)
**&cont-en test-bib.tex
(./test-bib.tex

ConTeXt  ver: 2005.01.31  fmt: 2005.3.16  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(c:\CONTEXT\texmf-local/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex!
color           : palette rollover is available
system (E-TEX) : [line 878] 
system (E-TEX) : [line 933] 
)
system          : cont-old loaded
(c:\CONTEXT\texmf-local/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(c:\CONTEXT\texmf-local/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys loaded
(c:\CONTEXT\texmf-local/tex/context/user/cont-sys.tex
(c:\CONTEXT\texmf-local/tex/context/base/type-syn.tex)
(c:\CONTEXT\texmf-local/tex/context/base/type-enc.tex)
(c:\CONTEXT\texmf-local/tex/context/base/type-dis.tex)
(c:\CONTEXT\texmf-local/tex/context/base/type-siz.tex)
(c:\CONTEXT\texmf-local/tex/context/base/type-map.tex)
(c:\CONTEXT\texmf-local/tex/context/base/type-spe.tex)
(c:\CONTEXT\texmf-local/tex/context/base/type-exa.tex)
(c:\CONTEXT\texmf-local/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->default:default->1->2:2 
uk->default:default->2->
2:2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 
fr->texnansi:texnansi->5->2
:2 fr->ec:ec->6->2:2 es->default:default->7->2:2 it->texnansi:texnansi->8->2:2 
it->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded
specials        : tex,postscript,rokicki loaded
\openout2 = `test-bib.tui'.

system          : test-bib.top loaded
(./test-bib.top)
\openout0 = `test-bib-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


specials        : loading definition file tpd
(c:\CONTEXT\texmf-local/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(c:\CONTEXT\texmf-local/tex/context/base/spec-fdf.tex <unprotect 3>
system (E-TEX) : [line 2280] \ifcsname 
<protect 3>)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
system          : macros of module bib loaded
(c:\CONTEXT\texmf-local/tex/context/bib/t-bib.tex
system          : macros of module bibltx loaded
(c:\CONTEXT\texmf-local/tex/context/bib/t-bibltx.tex)
publications    : loading formatting style from bibl-apa
(c:\CONTEXT\texmf-local/tex/context/bib/bibl-apa.tex)) (./test-bib.bbl)
(./test-bib.tuo) (./test-bib.tuo) (./test-bib.tuo) (./test-bib.tuo)
(./test-bib.tuo) (./test-bib.tuo) (./test-bib.tuo) (./test-bib.tuo)
(./test-bib.tuo) (./test-bib.tuo) (./test-bib.tuo) (./test-bib.tuo)
(./test-bib.tuo)
fonts           : using map file: texnansi-public-lm.map
fonts           : using map file: original-public-vnr.map
fonts           : using map file: original-public-csr.map
fonts           : using map file: original-public-plr.map
fonts           : using map file: original-public-lm.map
fonts           : using map file: original-ams-euler.map
fonts           : using map file: original-ams-cmr.map
fonts           : using map file: texnansi-base.map
fonts           : using map file: t5-base.map
fonts           : using map file: qx-base.map
fonts           : using map file: 8r-base.map
fonts           : using map file: ec-base.map
fonts           : using map file: ec-public-lm.map
fonts           : using map file: original-base.map
publications    : loading database from test-bib.bbl
(./test-bib.bbl)
systems         : begin file test-bib at line 23
! Undefined control sequence.
\dowithnextbox #1->\long \def \dodowithnextbox
                                               {#1}\afterassignment 
\dododow...

\struttedbox ...trutheight \flushnextbox \egroup }
                                                  \normalhbox 
\~#1->{\struttedbox
                    {\accent "7E #1}}
\getcommacommandsize [#1]->\edef \commacommand {#1
                                                  }\scratchtoks 
\expandafter...

\dobibauthoryear ...acommandsize [\thebibauthors ]
                                                  \@EA \processcommalist 
\@E...

\bibauthoryearsref ...rnative \c!inbetween {\YR }}
                                                  \bibalternative \v!right 
...
l.26
     
? 
! Undefined control sequence.
\dododowithnextbox ->\aftergroup \dodowithnextbox
                                                  
\dowithnextbox ...erassignment \dododowithnextbox
                                                  \setbox \nextbox 
\struttedbox ...trutheight \flushnextbox \egroup }
                                                  \normalhbox 
\~#1->{\struttedbox
                    {\accent "7E #1}}
\getcommacommandsize [#1]->\edef \commacommand {#1
                                                  }\scratchtoks 
\expandafter...

\dobibauthoryear ...acommandsize [\thebibauthors ]
                                                  \@EA \processcommalist 
\@E...
...
l.26
     
? 
! Undefined control sequence.
\dowithnextbox #1->\long \def \dodowithnextbox
                                               {#1}\afterassignment 
\dododow...

\struttedbox ...trutheight \flushnextbox \egroup }
                                                  \normalhbox 
\~#1->{\struttedbox
                    {\accent "7E #1}}
\getcommacommandsize [#1]->\edef \commacommand {#1
                                                  }\scratchtoks 
\expandafter...

\dobibauthoryear ...acommandsize [\thebibauthors ]
                                                  \@EA \processcommalist 
\@E...

\bibauthoryearsref ...rnative \c!inbetween {\YR }}
                                                  \bibalternative \v!right 
...
l.28
     
? 
! Undefined control sequence.
\dododowithnextbox ->\aftergroup \dodowithnextbox
                                                  
\dowithnextbox ...erassignment \dododowithnextbox
                                                  \setbox \nextbox 
\struttedbox ...trutheight \flushnextbox \egroup }
                                                  \normalhbox 
\~#1->{\struttedbox
                    {\accent "7E #1}}
\getcommacommandsize [#1]->\edef \commacommand {#1
                                                  }\scratchtoks 
\expandafter...

\dobibauthoryear ...acommandsize [\thebibauthors ]
                                                  \@EA \processcommalist 
\@E...
...
l.28
     
? 
! Illegal parameter number in definition of \commacommand.
<to be read again>
                   \crcr 
\oalign ...z@skip \lineskip .25ex\ialign {##\crcr
                                                  #1\crcr }}
\h ...x to.2ex{\hbox {\char '25}\vss }\hidewidth }
                                                  }
\KHAWARIZMI ->\h H
                  aw\=arizm\=i
\getcommacommandsize [#1]->\edef \commacommand {#1
                                                  }\scratchtoks 
\expandafter...

\ixbibauthoryear ...acommandsize [\thebibauthors ]
                                                  \xdef \theauthorssize 
{\co...
...
l.30
     
? 
! Illegal parameter number in definition of \commacommand.
<to be read again>
                   \crcr 
\oalign ...z@skip \lineskip .25ex\ialign {##\crcr
                                                  #1\crcr }}
\h ...x to.2ex{\hbox {\char '25}\vss }\hidewidth }
                                                  }
\KHAWARIZMI ->\h H
                  aw\=arizm\=i
\getcommacommandsize [#1]->\edef \commacommand {#1
                                                  }\scratchtoks 
\expandafter...

\dobibauthoryear ...acommandsize [\thebibauthors ]
                                                  \@EA \processcommalist 
\@E...
...
l.30
     
? 
[1.1{c:\CONTEXT\texmf-local/fonts/map/pdftex/context/original-empty.map}{c:\CO
N
TEXT\texmf-local/fonts/map/pdftex/context/texnansi-public-lm.map}{c:\CONTEXT\t
e
xmf-local/fonts/map/pdftex/context/original-public-vnr.map}{c:\CONTEXT\texmf-l
o
cal/fonts/map/pdftex/context/original-public-csr.map}{c:\CONTEXT\texmf-local/f
o
nts/map/pdftex/context/original-public-plr.map}{c:\CONTEXT\texmf-local/fonts/m
a
p/pdftex/context/original-public-lm.map}{c:\CONTEXT\texmf-local/fonts/map/pdft
e
x/context/original-ams-euler.map}{c:\CONTEXT\texmf-local/fonts/map/pdftex/cont
e
xt/original-ams-cmr.map}{c:\CONTEXT\texmf-local/fonts/map/pdftex/context/texna
n
si-base.map}{c:\CONTEXT\texmf-local/fonts/map/pdftex/context/t5-base.map}{c:\C
O
NTEXT\texmf-local/fonts/map/pdftex/context/qx-base.map}{c:\CONTEXT\texmf-local
/
fonts/map/pdftex/context/8r-base.map}{c:\CONTEXT\texmf-local/fonts/map/pdftex/
c
ontext/ec-base.map}{c:\CONTEXT\texmf-local/fonts/map/pdftex/context/ec-public-
l
m.map}{c:\CONTEXT\texmf-local/fonts/map/pdftex/context/original-base.map}]
systems         : end file test-bib at line 35
 ) 
Here is how much of TeX's memory you used:
 1649 strings out of 162969
 25978 string characters out of 664882
 2494205 words of memory out of 3536160
 36350 multiletter control sequences out of 10000+50000
 10284 words of font info for 34 fonts, out of 1000000 for 2000
 104 hyphenation exceptions out of 1000
 44i,17n,49p,220b,364s stack positions out of 5000i,500n,5000p,200000b,40000s
 7 PDF objects out of 300000
 0 named destinations out of 131072
 1 words of extra memory for PDF output out of 65536
<c:\CONTEXT\texmf/fonts/type1/bluesky/cm/cmr12.pfb>
Output written on test-bib.pdf (1 page, 9141 bytes).

===================================================

Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

             reply	other threads:[~2005-03-17 15:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17 15:17 ishamid [this message]
2005-03-17 15:50 ` Taco Hoekwater
  -- strict thread matches above, loose matches on Subject: below --
2005-03-17  6:59 ishamid
2005-03-17 11:25 ` Taco Hoekwater

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=423A74FD@webmail.colostate.edu \
    --to=ishamid@lamar.colostate.edu \
    --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).