RE: [NTG-context] m-bib issues

2005-03-17 Thread ishamid
= Original Message From Taco Hoekwater [EMAIL PROTECTED] =
 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{\accent7E #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: 

sane accents [was RE: [NTG-context] m-bib issues]

2005-03-17 Thread ishamid
Dear fellow conspirators,
 
Is there a saner way to define the following accent using ConTeXt's framework:

\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{\accent7E #1}}}

In my own work, the tilda is used over (upper and lower case) `h', `t', and 
`i', and the lower crescent is only used under (upper and lower case) `h'. lmr 
does not have the latter case and I still have a couple of issues with lmr so 
I'd like to maintain control over a few accents for now.

Best
Idris

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] m-bib issues

2005-03-17 Thread Taco Hoekwater
Ah, I see. Sneakily changing definitions, are you! ;-)
Try this definition instead:
  \protected \def\~#1{{\struttedbox{\accent7E #1}}}
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: sane accents [was RE: [NTG-context] m-bib issues]

2005-03-17 Thread Hans Hagen
ishamid wrote:
Dear fellow conspirators,
 
Is there a saner way to define the following accent using ConTeXt's framework:

\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{\accent7E #1}}}
less encoding dependent:
  \unexpanded\def\~{\struttedbox{\texttilde#1}}
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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] m-bib issues

2005-03-16 Thread ishamid
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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context