Re: [NTG-context] Translations of "Context: an excursion"

2005-03-23 Thread Maurice Diamantini
Le 23 mars 05, à 08:56, Hans Hagen a écrit :
indeed, btw, it will be an interesting challenge to keep translations 
in sync
To keep several translations in sync, it should be one and only one 
document
reference (english (or french? ;-) )
The worst thing would be if some chapter (e.g. using the standard 
amsl/nath
package) were in advance in one translation over some other chapter
("using the standard bib package" or "the prefered TABLE package",
or "context 2 html translation", ...)

Also probably, it would be better to have some uptodate doc witch were
only partialy translated, than having a full but outdated french doc.

Another (long term) remarks/questions:
I think the "Context: an excursion" is the better context doc out there
(seems more practicle for begining than the reference book, for now)
But will be this true in the future ?
- what will contains the future book already mentioned here?
- when could it be expected?
- will the Context reference manuel be updated?
- which context doc will exists 3 years later?
 - one (or more?) commercial english context book
 - one multitranslation "excursion" free books
 - numerous, very specialised "myWay" documents
 - if the current "reference manual" book is not to be upgrade
   then the "Context: an excursion" will be that.
 - a automatic generate reference documentation, based on
   the context tex code??
Translating such a documentation is a great (and eavy) job,
but it can't be done without some stategic considerations.
-- Maurice

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


Re: [NTG-context] bug in latest ConTeXt (confirmed)

2005-03-23 Thread Hans Hagen
ishamid wrote:
lines all over the place in my work that compiled fine with the old ConTeX, 
and I suspect that XeTeX may be responsible. Is there a way to completely 
isolate the new stuff because I'm going to lose a lot of time trying to track 
down every situation where my previously well-behaved stuff now gives errors 
because of this.
just put \endinput atthe topmost lin eof supp-dir.tex and remake the format
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


RE: [NTG-context] bug in latest ConTeXt (confirmed)

2005-03-23 Thread ishamid
>= Original Message From Hans Hagen <[EMAIL PROTECTED]> =
>> Sounds like supp-dir needs a no-Omega check, as well. Hans?
>
>attached for testing, i dunny what the pardir equivalents are for \beginL and
>\beginR -)

Not to belabor this, but I'm getting

### simple group (level 1) entered at line

lines all over the place in my work that compiled fine with the old ConTeX, 
and I suspect that XeTeX may be responsible. Is there a way to completely 
isolate the new stuff because I'm going to lose a lot of time trying to track 
down every situation where my previously well-behaved stuff now gives errors 
because of this.

This has been a really frustrating week...

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] 5 major problems with mswincontext.zip

2005-03-23 Thread ishamid
>= Original Message From Hans Hagen <[EMAIL PROTECTED]> =
>> 1. Zapf Chancery has disappeared (the other free fonts in showfonts.pdf
still
>> work):

>strange indeed, it looks like the files are corrupted (very small tfm/vf
files);
>  you can regenerate the metrics with:
>
>texmfstart texfont.pl type-tmf.dat --en=texnansi --ven=urw -col=zapfchan

ok, it works now:-)

Thnx
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] 5 major problems with mswincontext.zip

2005-03-23 Thread ishamid
>= Original Message From Hans Hagen <[EMAIL PROTECTED]> =
>ishamid wrote:
>
>> 2. aleph is still searching its format in the wrong directory; its format 
is
>> properly installed in
>> \texmf-mswin/web2c/aleph/
>
>can you try what happens when you add the following lines to your texmf.cnf 
file
>
>(you can edit the file with: texmfstart --direct scite kpse:texmf.cnf)
>
>TEXFORMATS.xetex   = $TEXFORMATS/{xetex,}//
>TEXFORMATS.aleph   = $TEXFORMATS/{aleph,}//
>TEXFORMATS.pdftex  = $TEXFORMATS/{pdftex,}//
>TEXFORMATS.pdfetex = $TEXFORMATS/{pdfetex,}//

Regenerated the formats after editing 
\texmf-local\web2c\texmf.cnf

Unfortunately it still gives the same error. Please advise;->

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] bug in latest ConTeXt (confirmed)

2005-03-23 Thread ishamid
>= Original Message From Hans Hagen <[EMAIL PROTECTED]> =
>> Sounds like supp-dir needs a no-Omega check, as well. Hans?
>
>attached for testing, i dunny what the pardir equivalents are for \beginL and
>\beginR -)

Ok, the new supp-dir.tex helps. But there is another problem. Now my following 
macros are messed up (used in our private ar-cont.tex)

\let\beginRL=\leavevmode\startarabictext
\let\endRL=\stoparabictext

\catcode`\<=\active
\catcode`\>=\active

\defineactivecharacter < {\enclosedarabic}
\def\enclosedarabic#1>{\struttedbox{\beginRL#1\endRL}}

Aleph complains that

(\end occurred inside a group at level 2)

### semi simple group (level 2) entered at line 102 (\begingroup)
### simple group (level 1) entered at line 102 ({)
### bottom level

Can you fix the XeTeX macros so that this is no longer affected? I also have 
some otp's that use the \beginRL\endRL syntax; I'm afraid that's all going to 
be negatively affected now...

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] Chapter numbers in the right margin

2005-03-23 Thread Randall Skelton
Many thanks to all who have offerred help with this.  I'll submit
these and a few more examples to the wiki after the Easter break.

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


Re: [NTG-context] 5 major problems with mswincontext.zip

2005-03-23 Thread Hans Hagen
ishamid wrote:
2. aleph is still searching its format in the wrong directory; its format is 
properly installed in 
\texmf-mswin/web2c/aleph/
can you try what happens when you add the following lines to your texmf.cnf 
file
(you can edit the file with: texmfstart --direct scite kpse:texmf.cnf)
TEXFORMATS.xetex   = $TEXFORMATS/{xetex,}//
TEXFORMATS.aleph   = $TEXFORMATS/{aleph,}//
TEXFORMATS.pdftex  = $TEXFORMATS/{pdftex,}//
TEXFORMATS.pdfetex = $TEXFORMATS/{pdfetex,}//
-
  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


Re: [NTG-context] bib: potential range of bibliography styles?

2005-03-23 Thread dw
Excellent, I'll take it up soon!
Regards,
David
On Mar 23, 2005, at 12:43 PM, Taco Hoekwater wrote:
[EMAIL PROTECTED] wrote:
Aside from all the niggling details (which I'm sure could be worked 
out), is this kind of layout in general possible—all citations going 
by year underneath a single instance of the author? …or am I doomed 
to forever make these by hand? ;)
I'd say it is doable, but not trivial. ;-)
You need to use \setupbibtex[sort=author], of course.  I you can
make it come out like below (all that should be doable using just
the documented features of the bib module), then I will help you
'compress' the repeating authors afterwards, ok?
  PEIRCE, Charles S.
  1859. "An Essay on the Limits of Religious Thought Written to Prove 
That We
  Can Reason Upon the Nature of God", MS 53, in W1:37-40

  PEIRCE, Charles S.
  1982. Writings of Charles S. Peirce: a Chronological Edition, ed. 
Max Fisch,
  Peirce Edition Project. Five volumes. (Bloomington: Indiana 
University Press, 1982-98).

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


Re: [NTG-context] bib: potential range of bibliography styles?

2005-03-23 Thread Taco Hoekwater
[EMAIL PROTECTED] wrote:
Aside from all the niggling details (which I'm sure could be worked 
out), is this kind of layout in general possible—all citations going by 
year underneath a single instance of the author? …or am I doomed to 
forever make these by hand? ;)
I'd say it is doable, but not trivial. ;-)
You need to use \setupbibtex[sort=author], of course.  I you can
make it come out like below (all that should be doable using just
the documented features of the bib module), then I will help you
'compress' the repeating authors afterwards, ok?
  PEIRCE, Charles S.
  1859. "An Essay on the Limits of Religious Thought Written to Prove 
That We
  Can Reason Upon the Nature of God", MS 53, in W1:37-40

  PEIRCE, Charles S.
  1982. Writings of Charles S. Peirce: a Chronological Edition, ed. Max 
Fisch,
  Peirce Edition Project. Five volumes. (Bloomington: Indiana 
University Press, 1982-98).

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


[NTG-context] bib: potential range of bibliography styles?

2005-03-23 Thread dw
Greetings all,

I'm leaning towards experimenting with the bib module to see if I can arrive at a usable "Semiotics Society of America" reference section, which is a historically layered style, along the lines of:

---

PEIRCE, Charles S.
1859. "An Essay on the Limits of Religious Thought Written to Prove That We
Can Reason Upon the Nature of God", MS 53, in W1:37-40
1982. Writings of Charles S. Peirce: a Chronological Edition, ed. Max Fisch,
Peirce Edition Project. Five volumes. (Bloomington: Indiana University
Press, 1982-98).

TEILHARD de Chardin, Pr. P.
1961. (posthumously). Hymn of the Universe (New York: Harper & Row 
Torchbooks, English Edition, 1965).
1957. (posthumously). The Divine Milieu (New York: Harper & Row Colophon
Books Edition, 1968). 

---


Aside from all the niggling details (which I'm sure could be worked out), is this kind of layout in general possible—all citations going by year underneath a single instance of the author? …or am I doomed to forever make these by hand? ;)

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


Re: [NTG-context] 5 major problems with mswincontext.zip

2005-03-23 Thread Hans Hagen
ishamid wrote:
Dear conglomerate,
Ok, I've installed mswincontext.zip, dated 3-16, refreshed fndb, 
set  UseEnginePath   to  true
and so forth.

4 Problems:
1. Zapf Chancery has disappeared (the other free fonts in showfonts.pdf still 
work):

==
\definetypeface [zapf] [cg] [calligraphy] [chancery]
\switchtotypeface [zapf] [12pt,cg]
Zapf Chancery
\input tufte.tex
==
strange indeed, it looks like the files are corrupted (very small tfm/vf files); 
 you can regenerate the metrics with:

texmfstart texfont.pl type-tmf.dat --en=texnansi --ven=urw -col=zapfchan
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


Re: [NTG-context] Chapter numbers in the right margin

2005-03-23 Thread luigi.scarso
Hans Hagen wrote:
in addition to other answers
Sorry, mybe the time or a my bad day, i don't understand
Do you refer to  my answers ?
If yes
(please submit to wiki)
how to ?
(a my bad day,maybe tomorrow will be better)
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bold item separator?

2005-03-23 Thread Hans Hagen
[EMAIL PROTECTED] wrote:
Greetings,
I can't seem to get an itemize list to have *bold* item separators, 
namely the "R" — UC Roman Numeral series. I bet it's really obvious 
*grinding teeth*. Anyone give me a clue?
well, instead of grinding my teeth (since i dunno understand your requirement 
-), i show a few settings

\starttext
\setupitemize[stopper={\bf.}]
\startitemize[A]
\item test
\item test
\stopitemize
\setupitemize[stopper=!]
\startitemize[A]
\item test
\item test
\stopitemize
\setupitemize[stopper=.,style=bold]
\startitemize[A]
\item test
\item test
\stopitemize
\stoptext
-
  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


Re: [NTG-context] Going crazy with font conversion (diaeresis)!

2005-03-23 Thread Hans Hagen
Adam Lindsay wrote:
On 22 Mar 2005, at 16:14, Steffen Wolfrum wrote:
Your result looks promising - but duplicating your way showed me my  
command line limits:

$ afm2pl -p `kpsewhich texnansi.enc` HelveticaNeue.afm
afm2pl: fatal: default.lig not found.

Yeah, Gerben doesn't include that file that afm2pl expects. A quick  
google revealed:
http://www.tug.org/ftp/texlive/Contents/testinstalled/texmf/fonts/lig/ 
afm2pl/default.lig

...which I copied to the working directory. It should be included in  
gwTeX.
afaik there is also a bug in afm2pl i.e. it does not look at the right spit for 
the lig file

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


Re: [NTG-context] Chapter numbers in the right margin

2005-03-23 Thread Hans Hagen
Randall Skelton wrote:
Use textcommand only for text, numbercommand only for number,
command for both;
you can see some examples in sectionVariations in titles .

Thanks for the reply.
The problem with separating the text and number is that the space
separating the text and number still appears in the chapter text.  On
a similar note, why doesn't  'show makeup' display the right margin
number?
\def\MyChapterNumberText#1{ 
  \inright{\begingroup 
\midaligned{#1}
  \endgroup}
}

\def\MyChapterText#1{
  \begingroup 
\leftaligned{#1}
  \endgroup
}

\setuphead
   [Topic, chapter]
   [numbercommand=\MyChapterNumberText,
textcommand=\MyChapterText,
numberstyle={\switchtobodyfont[48pt]},
textstyle={\switchtobodyfont[12pt]},
color=black,
number=yes,
page=right,
continue=no,
header=empty,
before=\vbox to 3cm\bgroup,
after=\vss\egroup]
\starttext
%\showmakeup
\chapter{This is a Chapter Title}
\input tufte
\section{This is a section title}
\input tufte \par \input knuth \par
\subsection{This is a sub-section title}
\input tufte \par \input knuth \par
\stoptext
in addition to other answers (please submit to wiki)
 no need for dunny \begingroups and spaces
\def\MyChapterNumberText#1%
  {\inright{\midaligned{#1}}}
\def\MyChapterText#1%
  {\leftaligned{#1}}
 set distance to 0pt (distance between number and text)
\setuphead
   [Topic,chapter]
   [numbercommand=\MyChapterNumberText,
textcommand=\MyChapterText,
numberstyle={\switchtobodyfont[48pt]},
textstyle={\switchtobodyfont[12pt]},
color=black,
number=yes,
page=right,
continue=no,
header=empty,
distance=0pt, % no number before it
before=\vbox to 3cm\bgroup,
after=\vss\egroup]
 an alternativ eis to set alternative=command and alike, but more fun is to 
hook in your own handler

 undocumented -)
\definemarginline[MyOuter] [location=outer,width=\outermarginwidth]
\def\MyPlaceHead#1#2{\vbox{\MyOuter{\midaligned{#1}}#2}}
\defineheadplacement[MyHead][vertical]#1#2{\MyPlaceHead{#1}{#2}}
\setuphead[chapter][alternative=MyHead]
 you rexample
\starttext
\showframe
\chapter{This is a Chapter Title}
\input tufte
\section{This is a section title}
\input tufte \par \input knuth \par
\subsection{This is a sub-section title}
\input tufte \par \input knuth \par
\stoptext

-
  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


Re: [NTG-context] Columnsets problems

2005-03-23 Thread Hans Hagen
Gilles Pérez-Lambert wrote:
Hello,
Following Hans's presentation on ConTeXt in EuroTeX 2005, I started to use 
columnsets. I'm really really impressed. Columnsets are easy to set up and 
wonderfully powerful.
Nevertheless, I have some problems with columnsets... On the page:
http://typo.free.fr/context/
you'll find the source file (Bogues.tex) and the output (Bogues.pdf)
or a zip file of them.
Some info on my config:
   texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2005.03.16
   cont-en : ver: 2005.03.16  fmt: 2005.3.19  mes: english
   cont-nl : ver: 2005.01.31  fmt: 2005.3.19  mes: dutch
Pages
on the
Bogues.pdf  Description
--  
1   When a title (here: \Article{Le titre})
is inside a columnsetspan, header=empty
doesn't work.
you probably means 'high'
well, that's kind of tricky and i need to look into that carefully
below is another way of doing it (OTRSET patch)
6   The right column continues in the footer.
10  Same problem.
17  a line from the left column is reported on
the right column even if there is room for
it on the left column.
dunno, have to look into it (quite tricky to sync things in column sets; 
stretching tex to the limit)

By the way, always in a columnsets context, is there a way to completely forbid floats on certain pages?
no, should be doabla (so remind me later)
I didn't find a way to tell placefigure not to allow figures to be renumbered during the placement. In other words, is there a possibility the follow the order in which I declare the figure, even if a page is less optimal like this...
see patch below
\unprotect
% % % %
\setupfloats
  [\c!numbering=\v!yes]
\def\dofloatreference
  {\doifnot\@@bknumbering\v!nocheck
 {\doglobal\increment\numberedfloat
  \expanded{\writeutilitycommand
{\noexpand\twopassentry
{\s!float}%
{\numberedfloat}%
{\hetnummer}
\def\redofloatorder#1%
  {\doifnot\@@bknumbering\v!nocheck
 {\doglobal\increment\nofplacedfloats\relax
  \gettwopassdata\s!float
  \iftwopassdatafound
\doifnot\hetnummer\twopassdata
  {\edef\oldhetnummer{\hetnummer}%
   \xdef\hetnummer{\twopassdata}%
   \showmessage\m!floatblocks1{\nofplacedfloats,#1 
\oldhetnummer,\hetnummer}}%
  \fi}}

% % % %
\def\OTRSETskipstart
  {\scratchcounter\executeifdefined{\??mc\OTRSETidentifier\c!start}\zerocount
   \ifcase\scratchcounter\else
 \advance\scratchcounter\plusone
 \doOTRSETsetgridcells
   {\copy\placeholderboxe}
   \plusone\plusone\nofcolumns\scratchcounter
   \null}%
   \fi}
\def\OTRSETsetvsize % snap per sectie (gap here?)
  {\ifcollectingcontent \else % can be assigndimen
\OTRSETskipstart
 \OTRSETcheckinsert % added
 \OTRSETsetfreecells\mofcolumns\columnfirstcell
 \ifsomefreecolumncells
   \global\vsize\columnfreecells\lineheight
   \ifinotr % else problems with floats, see extreme
 \global\pagegoal\vsize % niet nodig, tenzij binnen otr
   \fi
   \synchronizeoutput % fails on example
  % \allowbreak % hm
 \fi
 \synchronizenotes
   \fi}
\def\OTRSETdoflushfloats
  {\bgroup
   \def\OTRSETsavebox##1{\!!doneafalse}%
   \doloop
 {\ifsomefloatwaiting
\OTRSETskipstart
\dogetfloat
\ifdim\wd\floatbox>\zeropoint
  \!!doneatrue
  \dp\floatbox\zeropoint
  \OTRSETstoreincolumnslot{TBLR}\floatbox
  \if!!donea
   %\message{[flu]}%
  \else
\OTRSETresavebox\floatbox
\exitloop
  \fi
\else
 %\message{[err]}% happens but why?
\fi
  \else
\exitloop
  \fi}
   \egroup}
\protect
\setuplayout
  [grid=yes,
   header=0pt,
   height=middle,
   width=middle]
\showgrid
\setupfloats[numbering=nocheck]
\definecolumnset [first] [n=2,start=0]
\definecolumnset [next]  [n=2,start=3]
\setuptexttexts[\vbox to \textheight{\topskipcorrection \hsize\makeupwidth left 
\hfill right\vfill}]

\setuphead[chapter][text=empty]
\starttext
\startcolumnset[first,next]
  \placefigure[btrl]{}{}
  \placefigure[tblr]{}{}
  \chapter{thuan} \dorecurse{25}{\recurselevel: \input thuan \endgraf}
\stopcolumnset
\startcolumnset[first,next]
  \chapter{thuan} \dorecurse{25}{\recurselevel: \input thuan \endgraf}
\stopcolumnset
\startcolumnset[first,next]
  \chapter{thuan} \dorecurse{25}{\input thuan \endgraf\placefigure{}{}}
\stopcolumnset
\stoptext
-
  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
  

Re: [NTG-context] bug in latest ConTeXt (confirmed)

2005-03-23 Thread Hans Hagen
Adam Lindsay wrote:
ishamid said this at Tue, 22 Mar 2005 18:30:48 -0700:

! Undefined control sequence.
\pardir #1#2#3->\global \TeXXeTstate
   \plusone \if #2L\chardef 
\inlinedirecti...
l.1 \pardir TLT

Oops, I think I recognize this.
This came about when Hans and I were trying to introduce some very basic
imitations of Omega's bidi support, prompted by XeTeX's Unicode
capabilities. Unfortunately, it rests on an eTeX check--not a problem
with Omega, but with Aleph, it means we clobber the \pardir primitives!
Oops, indeed.
Sounds like supp-dir needs a no-Omega check, as well. Hans?
attached for testing, i dunny what the pardir equivalents are for \beginL and 
\beginR -)

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
-


supp-dir.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Going crazy with font conversion (macron)!

2005-03-23 Thread Steffen Wolfrum
Adam Lindsay <[EMAIL PROTECTED]> wrote:
 It means that there's no \omacron in texnansi (or the other major
 western encodings used for TeX fonts), and you're asking ConTeXt to
 synthesise it from an 'o' and a 'textmacron'. It wouldn't surprise me
 one bit to hear that the Mac handles combining accents differently from
 TeX, and so the converted font's metrics is going to result in mistakes
 in building text accents.
 Interpretation: you're using artificial test cases to verify the font
 installation. Stick to what you need and know, and you'll probably end
 up with a character in the encoding.
No! I do need \omacron as I am typesetting the German translation of 
a Indian Yoga book ... with lots of Sanskrit (in latin alphabet plus 
all those diacritical accents)!


 If you do need \omacron and the like, then you could hand-tune macros
 that accommodate the specific font--see Idris's recent thread on
 accents, or you could cook up an "expert" encoding (since MacOSX's
 Helvetica does include that character) like Vit, and switch to that
 encoding when you need the character, or you could even go with a big
 unicode font install. I'll be documenting that process sometime.
That would be quite interesting.
(But for now I leave this workshop and use the HelveticaNeue to go on.)
Thank you,
Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Going crazy with font conversion (macron)!

2005-03-23 Thread Adam Lindsay
On 23 Mar 2005, at 11:54, Steffen Wolfrum wrote:
Well, then the tilde moves in its right position.
But the macron stays left.
A font wizard knows what that means?!
It means that there's no \omacron in texnansi (or the other major 
western encodings used for TeX fonts), and you're asking ConTeXt to 
synthesise it from an 'o' and a 'textmacron'. It wouldn't surprise me 
one bit to hear that the Mac handles combining accents differently from 
TeX, and so the converted font's metrics is going to result in mistakes 
in building text accents.

Interpretation: you're using artificial test cases to verify the font 
installation. Stick to what you need and know, and you'll probably end 
up with a character in the encoding.

If you do need \omacron and the like, then you could hand-tune macros 
that accommodate the specific font--see Idris's recent thread on 
accents, or you could cook up an "expert" encoding (since MacOSX's 
Helvetica does include that character) like Vit, and switch to that 
encoding when you need the character, or you could even go with a big 
unicode font install. I'll be documenting that process sometime.

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


Re: [NTG-context] Going crazy with font conversion (macron)!

2005-03-23 Thread Steffen Wolfrum
Adam Lindsay <[EMAIL PROTECTED]> wrote:
 Hum. I haven't tried to replicate that here, but that looks like it
 might be an encoding problem: ConTeXt doesn't know that you're using a
 texnansi encoding, so it synthesises the characters using the
 definitions in enco-def. Is the above file the only way you tested it?
No, also with other conversion and in other files it is the same.
 Does this help?
 \loadmapline[+Helvetica Helvetica " TeXnANSIEncoding ReEncodeFont "
 
 \starttext
 \definedfont[texnansi-Helvetica]
 R\d{o} R{\=o} R\~o
 \stoptext

Well, then the tilde moves in its right position.
But the macron stays left.
A font wizard knows what that means?!
Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Going crazy with font conversion (diaeresis)!

2005-03-23 Thread Adam Lindsay
On 22 Mar 2005, at 20:40, Steffen Wolfrum wrote:
Now it works. Very nice and clear ways to get it.
But both goodies don't work with OSX's Helvetica.dfont
If you try it with the .ttf you'll get:
Error: pdfetex (file Helvetica.ttf): can't find table `OS/2'
 ==> Fatal error occurred, the output PDF file is not finished!
Yes, I've run into that before: Apple doesn't include some 
"compatibility" tables (that TeX-centric utilities rely upon) in some 
of their platform fonts. I haven't found a good way to work with those 
TTFs.

And if instead you use the .pfb
then you'll get the misplaced macrons and tildes that I've reported.
Just try this:
\loadmapline[+Helvetica Helvetica " TeXnANSIEncoding
ReEncodeFont " 
\showfont[Helvetica] R\d{o} R{\=o} R\~o
\page\showcharacters
\stoptext
Hum. I haven't tried to replicate that here, but that looks like it 
might be an encoding problem: ConTeXt doesn't know that you're using a 
texnansi encoding, so it synthesises the characters using the 
definitions in enco-def. Is the above file the only way you tested it?

Does this help?
\loadmapline[+Helvetica Helvetica " TeXnANSIEncoding ReEncodeFont " 

\definefontsynonym[texnansi-Helvetica][Helvetica][encoding=texnansi]

\starttext
\definedfont[texnansi-Helvetica]
R\d{o} R{\=o} R\~o
\stoptext

I know the HelveticaNeue is more beautiful ... but nevertheless it 
would be interesting why there is the above error (and how it can be 
solved).
I do think you're being greedy, but I have to admit I'm curious, too!
adam
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bug in latest ConTeXt (confirmed)

2005-03-23 Thread Adam Lindsay
ishamid said this at Tue, 22 Mar 2005 18:30:48 -0700:

>! Undefined control sequence.
>\pardir #1#2#3->\global \TeXXeTstate
> \plusone \if #2L\chardef 
>\inlinedirecti...
>l.1 \pardir TLT

Oops, I think I recognize this.
This came about when Hans and I were trying to introduce some very basic
imitations of Omega's bidi support, prompted by XeTeX's Unicode
capabilities. Unfortunately, it rests on an eTeX check--not a problem
with Omega, but with Aleph, it means we clobber the \pardir primitives!
Oops, indeed.

Sounds like supp-dir needs a no-Omega check, as well. Hans?

adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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