ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* m-bib issues
@ 2005-03-17  6:59 ishamid
  2005-03-17 11:25 ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: ishamid @ 2005-03-17  6:59 UTC (permalink / raw)


Dear knights of the round table,

I've been using a very old bib module up to now, with lots of personal tweaks, 
workarounds etc. (mission-critical issues--no time 2 deal with painful 
upgrades); now I'm starting fresh with the latest. Here is one issue:

The \startpublication[a= ] option seems to cause m-bib to choke on some 
accents. Here is an example:

============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
=======================================

and here is the accompanying tex file

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

\usemodule[bib]

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

\input test-bib.bbl

\starttext

\cite[ahsaif]

\cite[ahsaijk]

\stoptext
=======================================

In this example the \startpublication[a= ] option chokes on \~.

Any help/chivalry will be appreciated!

Best
Idris

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

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

* Re: m-bib issues
  2005-03-17  6:59 m-bib issues ishamid
@ 2005-03-17 11:25 ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2005-03-17 11:25 UTC (permalink / raw)




ishamid wrote:
> Dear knights of the round table,
> 
> I've been using a very old bib module up to now, with lots of personal tweaks, 
> workarounds etc. (mission-critical issues--no time 2 deal with painful 
> upgrades); now I'm starting fresh with the latest. Here is one issue:
> 
> 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. A log file and/or texexec --version
information is needed.

Side note: the

	\input test-bib.bbl

line is not needed.

Greetings, taco

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

* Re: m-bib issues
  2005-03-17 15:17 ishamid
@ 2005-03-17 15:50 ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2005-03-17 15:50 UTC (permalink / raw)



Ah, I see. Sneakily changing definitions, are you! ;-)

Try this definition instead:

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

Greetings, Taco

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

* RE: m-bib issues
@ 2005-03-17 15:17 ishamid
  2005-03-17 15:50 ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: ishamid @ 2005-03-17 15:17 UTC (permalink / 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

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

end of thread, other threads:[~2005-03-17 15:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-17  6:59 m-bib issues ishamid
2005-03-17 11:25 ` Taco Hoekwater
2005-03-17 15:17 ishamid
2005-03-17 15:50 ` 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).