ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: t-greek module and Latin Modern
@ 2006-05-30 13:16 Alan Bowen
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Bowen @ 2006-05-30 13:16 UTC (permalink / raw)


Hans—

Here is another error message that appeared in compiling a file  that  
re-installs Latin Modern and uses Thomas’ module for ancient Greek.

references      : unknown reference [][fnt:t:1]
references      : unknown reference [][fnt:f:1]
! Font \nullfont has only 7 fontdimen parameters.
<to be read again>
                    \advance
\dohighlow ...#2\textfont 2\else #3ex\fi \advance
                                                   \scratchdimen #4ex  
\kern ....
<argument> ...ednote \v!nextpage \v!previouspage }
                                                   }
\doifreferencefoundelse ...ferencefound #2\else #3
                                                   \fi \egroup  
\doresetgotowh...

\gotobox ...2]} {\hbox {\unknownreference {#2}#1}}
                                                   \referentieinfo {<} 
{#2}\eg...
<argument> ...[\s!fnt :f:\internalfootreference ]}
                                                   \fi \doifelse  
{\noteparame...
...
l.39 \footnote{
                \grk{>'alfa ka`i b~hta}.}
?

The source file (below) was the same as before. The only change is  
that I am now using ConTeXt  ver: 2006.05.28 13:28  fmt: 2006.5.30

Alan

Source file:

\enableregime[mac]

\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\setupfootnotes[align={hz,hanging}]

\setupencoding[default=ec]

\setupbodyfontenvironment[default][em=italic]

\starttypescript[serif][default][size]
\definebodyfont[10.5pt,9.5pt][rm][default]
\definebodyfont[10.5pt,9.5pt][mm][default]
\stoptypescript

\setupfontsynonym[Serif][handling=normal]

\setupbodyfont[modern,10.5pt]

\setupfootnotes[conversion=numbers,
	way=bytext,location=page,rule=on,bodyfont=9.5pt,style=normal]

\usemodule[ancientgreek] 
[font=Alkaios,scale=0.9,altfont=GreekOxoniensis,altscale=0.9]
\setupfontsynonym[Alkaios][handling=grkpure]
\setupfontsynonym[GreekOxoniensis][handling=grkpure]

\def\grk{\localgreek}
\def\altgrk{\localaltgreek}



\starttext

\grk{>'alfa ka`i b~hta}. The cow flew over the Moon.%
%
\footnote{\grk{>'alfa ka`i b~hta}.}

\stoptext

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

* Re: t-greek module and Latin Modern
  2006-05-27 12:25 ` Hans Hagen
@ 2006-05-28 11:22   ` Alan Bowen
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Bowen @ 2006-05-28 11:22 UTC (permalink / raw)


Hans—

I have updated everything, I think, including Thomas’ Greek module.  
Now, in processing a file with Greek, the error messages are like the  
one below:

! Arithmetic overflow.
\dododefineprotrudefactor ...\font \fi \fi \relax
                                                   \rpcode  
\handledfont #1\di...

\dosetpairhandling ...ng \let \char \normalchar }}
                                                   \fi
<inserted text> ...ododefineprotrudefactor ! 0 .2
                                                   \dosetpairhandling  
\dodode...

\next1 ...csname \the \csname \@fha@ #1\endcsname
                                                   \fi
\rawprocesscommaitem ...commalevel \endcsname {#1}
                                                   \expandafter  
\rawprocessco...
<argument> punctuation,a
                         lpha,extended
...
l.67 ...wn >embol'imwn <hmer~wn d/ >ep'ages\-jai.}
                                                    [8.44] \grk 
{<'ojen o>u de...

The setup used in producing this error message is:

\enableregime[mac]

\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\setupfootnotes[align={hz,hanging}]

\setupencoding[default=ec]

\starttypescript[serif][default][size]
\definebodyfont[10.5pt,9.5pt][rm][default]
\definebodyfont[10.5pt,9.5pt][mm][default]
\stoptypescript

\setupfontsynonym[Serif][handling=normal]

\setupbodyfont[modern,10.5pt]

\setupfootnotes[conversion=numbers,
	way=bytext,location=page,rule=on,bodyfont=9.5pt,style=normal]

\usemodule[ancientgreek] 
[font=Alkaios,scale=0.9,altfont=GreekOxoniensis,altscale=0.9]
\setupfontsynonym[Alkaios][handling=grkpure]
\setupfontsynonym[GreekOxoniensis][handling=grkpure]

\def\grk{\localgreek}
\def\altgrk{\localaltgreek}

Alan

On May 27, 2006, at 8:25 AM, Hans Hagen wrote:

> Alan Bowen wrote:
>>
>> *B.*
>> If I *do* reinstall the Latin Modern, I get �Arithmetic overflow
>> errors� when there is Greek in the footnotes. My code for this is:
> hwo does the error message look?
>
> (the metrics of cm and lm are the same but there may be additional  
> glyohs)
>
> 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 mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: t-greek module and Latin Modern
  2006-05-26 17:19 Alan Bowen
@ 2006-05-27 12:25 ` Hans Hagen
  2006-05-28 11:22   ` Alan Bowen
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2006-05-27 12:25 UTC (permalink / raw)


Alan Bowen wrote:
>
> *B.*
> If I *do* reinstall the Latin Modern, I get �Arithmetic overflow 
> errors� when there is Greek in the footnotes. My code for this is:
hwo does the error message look? 

(the metrics of cm and lm are the same but there may be additional glyohs) 

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

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

* t-greek module and Latin Modern
@ 2006-05-26 17:19 Alan Bowen
  2006-05-27 12:25 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Bowen @ 2006-05-26 17:19 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 2289 bytes --]

Hans and all other font wizards—

Thomas and I have been stumped by problem that arises when one re- 
installs Latin Modern (in order to get margin kerning) and uses the t- 
greek module. Thomas suspects that Latin Modern, being a "clone" of  
Computer Modern, comes in different design sizes and uses slightly  
different fonts for different sizes. This setup breaks when the t- 
greek module expects to have a completely scalable font. But this is  
only a guess, as he says.

The problem may be described as follows:

A.
If I do not re-install Latin Modern (and thus forego margin kerning  
and so forth), there is no problem: I can vary the typesize of the  
footnotes and insert Greek at will. I use the following code for this:

\setupencoding[default=ec]

\setupbodyfontenvironment[default][em=italic]

\definebodyfont[10.5pt][rm][default]

\setupbodyfont[modern,10.5pt]
\setupfootnotes[conversion=numbers,
	way=bytext,location=page,rule=on,bodyfont=9.5pt,style=normal]

\usemodule[t-greek]
\setupfontsynonym[Alkaios][handling=grkpure]
\setupfontsynonym[GreekOxoniensis][handling=grkpure]
\setupgreek[font=Alkaios,altfont=GreekOxoniensis,scale=0.9]

B.
If I do reinstall the Latin Modern, I get “Arithmetic overflow  
errors” when there is Greek in the footnotes. My code for this is:

\setupencoding[default=texnansi]

\starttypescript[serif][default][size]
   \definebodyfont[10.5pt][rm][default]	%<<<
   \definebodyfont[10.5pt][mm][default]
\stoptypescript

\setupfontsynonym[Serif][handling=normal]

\usetypescript[modern][texnansi]
\setupbodyfont[modern,10.5pt]
\setupfootnotes[conversion=numbers,
	way=bytext,location=page,rule=on,bodyfont=9.5pt,style=normal]

\usemodule[t-greek]
\setupfontsynonym[GreekOxoniensis][handling=greekpure]
\setupfontsynonym[GreekDioxipe][handling=greekpure]
\setupgreek[font=GreekOxoniensis,scale=1.15]
\setupgreek[altfont=GreekDioxipe,scale=1.15]

But remove the Greek from the notes and all is well.

Note that inserting
      \definebodyfont[10.5pt,9.5pt][rm][default]
at the line	<<<		(above) fails with the same error message even when  
there is no Greek in the footnotes.

If you have any suggestions on this, we would be grateful to receive  
them.

All best, Alan




[-- Attachment #1.2: Type: text/html, Size: 9059 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

end of thread, other threads:[~2006-05-30 13:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-30 13:16 t-greek module and Latin Modern Alan Bowen
  -- strict thread matches above, loose matches on Subject: below --
2006-05-26 17:19 Alan Bowen
2006-05-27 12:25 ` Hans Hagen
2006-05-28 11:22   ` Alan Bowen

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).