ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Font problems (special characters, URW)
@ 2002-04-19  5:24 Ville Voipio
  2002-04-20 23:23 ` Hans Hagen
  2002-04-23 18:11 ` Patrick Gundlach
  0 siblings, 2 replies; 8+ messages in thread
From: Ville Voipio @ 2002-04-19  5:24 UTC (permalink / raw)


Hello!

I have a working TeX installation, everything seems to work fine with
LaTeX. However, I have some font problems with ConTeXt:

1. When I use local special characters (ä, "a, a-umlaut), they do not
print with the CM font. texexec complains about missing letters. However,
LaTeX handles them well (apart from using Type 3 fonts). The fonts in the
PDF file created by ConTeXt are otherwise ok, type 1 fonts are in used.
What is the missing spell I have forgotten from my file?

2. Actually, I would like to use Times/Helvetica and other Base14 fonts
instead of CM. When I try to do this, texexec complains about missing font
files. I do not have the real Adobe fonts (poor as I am) but I do have the
URW fonts installed instead in the /texmf/ tree. How can I use them in
ConTeXt?

My environment is Windows NT, and I use MiKTeX 2.10 (full install).

I am sorry if these questions are real FAQ questions, but I could not find
the right FAQ!

TIA,

- Ville


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

* Re: Font problems (special characters, URW)
  2002-04-19  5:24 Font problems (special characters, URW) Ville Voipio
@ 2002-04-20 23:23 ` Hans Hagen
  2002-04-23 18:11 ` Patrick Gundlach
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2002-04-20 23:23 UTC (permalink / raw)
  Cc: ntg-context

At 08:24 AM 4/19/2002 +0300, you wrote:

>Hello!
>
>I have a working TeX installation, everything seems to work fine with
>LaTeX. However, I have some font problems with ConTeXt:
>
>1. When I use local special characters (ä, "a, a-umlaut), they do not
>print with the CM font. texexec complains about missing letters. However,
>LaTeX handles them well (apart from using Type 3 fonts). The fonts in the
>PDF file created by ConTeXt are otherwise ok, type 1 fonts are in used.
>What is the missing spell I have forgotten from my file?
>
>2. Actually, I would like to use Times/Helvetica and other Base14 fonts
>instead of CM. When I try to do this, texexec complains about missing font
>files. I do not have the real Adobe fonts (poor as I am) but I do have the
>URW fonts installed instead in the /texmf/ tree. How can I use them in
>ConTeXt?
>
>
>My environment is Windows NT, and I use MiKTeX 2.10 (full install).

you should be able to use the bunch of free fonts that comes with tex live 
without problems; these contain times, and helvetica alternatives

does \setupbodyfont[ber,pos] work on your machine?

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: Font problems (special characters, URW)
  2002-04-19  5:24 Font problems (special characters, URW) Ville Voipio
  2002-04-20 23:23 ` Hans Hagen
@ 2002-04-23 18:11 ` Patrick Gundlach
  2002-04-26  9:49   ` mari.voipio
  1 sibling, 1 reply; 8+ messages in thread
From: Patrick Gundlach @ 2002-04-23 18:11 UTC (permalink / raw)


Ville Voipio <vv@iki.fi> writes:

Hi,

[...]

> 1. When I use local special characters (ä, "a, a-umlaut), they do not
> print with the CM font. texexec complains about missing letters. However,
> LaTeX handles them well (apart from using Type 3 fonts). The fonts in the
> PDF file created by ConTeXt are otherwise ok, type 1 fonts are in used.
> What is the missing spell I have forgotten from my file?

Could you please include a minimal example? Things work well here
with "a etc. And they should be taken from the cmr type 1 font.

So here is a file that works fine:

\enableregime[il1]
\mainlanguage[de]
\starttext
"a ä \adiaeresis\ \aumlaut\ 
\stoptext

Hans: the diaeresis of ä and \adiaeresis are too high. Perhaps the 
definition in regi-il1 should be changed from \adiaeresis to \aumlaut!?!

-- 
Viele Grüße, 

    Patrick Gundlach


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

* Re: Font problems (special characters, URW)
@ 2002-04-26  9:49   ` mari.voipio
  2002-04-26 11:10     ` Patrick Gundlach
  0 siblings, 1 reply; 8+ messages in thread
From: mari.voipio @ 2002-04-26  9:49 UTC (permalink / raw)


[Hi, I'm answering instead of my brother, we are working on the
same system and the problem files are mine.]

On 23 Apr 2002, Patrick Gundlach wrote:
>
> So here is a file that works fine:
>
> \enableregime[il1]

*This* was the trick we didn't master yet - now my texts in Finnish and
Swedish seem to work fine, i.e. the output has all the necessary
characters (instead of saying "tnn" it now says "tänään" ["today"] as it
should). Thanks!

> Hans: the diaeresis of ä and \adiaeresis are too high. Perhaps the
> definition in regi-il1 should be changed from \adiaeresis to \aumlaut!?!

I agree - all my ä:s (\"a), ö:s (\"o) and Å:s (\aa) typed directly with a
Finnish keyboard look kind of funny in the ConTeXt output, because the
umlauts/rings are so high up.  Also to my eye \aumlaut and \oumlaut are a
lot closer to what I'm used to.

If it helps, I can easily provide pdf files or screenshots in Finnish and
Swedish from other programs to compare with.

Thank you everybody for your help (and patience),

mari
(ConTeXt dummy - but already in love with it...)


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

* Re: Font problems (special characters, URW)
  2002-04-26  9:49   ` mari.voipio
@ 2002-04-26 11:10     ` Patrick Gundlach
  0 siblings, 0 replies; 8+ messages in thread
From: Patrick Gundlach @ 2002-04-26 11:10 UTC (permalink / raw)


<mari.voipio@iki.fi> writes:

> On 23 Apr 2002, Patrick Gundlach wrote:
> >
> > So here is a file that works fine:
> >
> > \enableregime[il1]
> 
> *This* was the trick we didn't master yet - now my texts in Finnish and
> Swedish seem to work fine, i.e. the output has all the necessary
> characters (instead of saying "tnn" it now says "tänään" ["today"] as it
> should). Thanks!

Since you are using Windows NT, you probably should say
\enableregime[win]. But I have absolutely not experience with this
system, so my comment might be wrong. 

-- 
Viele Grüße, 

    Patrick Gundlach


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

* Re: Font problems (special characters, URW)
       [not found] <Pine.OSF.4.30.0204261247080.20261-100000@sirppi.helsinki.f i>
@ 2002-05-09 18:46 ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2002-05-09 18:46 UTC (permalink / raw)
  Cc: ntg-context

At 12:49 PM 4/26/2002 +0300, mari.voipio@iki.fi wrote:

> > Hans: the diaeresis of ä and \adiaeresis are too high. Perhaps the
> > definition in regi-il1 should be changed from \adiaeresis to \aumlaut!?!
>
>I agree - all my ä:s (\"a), ö:s (\"o) and Å:s (\aa) typed directly with a
>Finnish keyboard look kind of funny in the ConTeXt output, because the
>umlauts/rings are so high up.  Also to my eye \aumlaut and \oumlaut are a
>lot closer to what I'm used to.
>
>If it helps, I can easily provide pdf files or screenshots in Finnish and
>Swedish from other programs to compare with.

is this language dependent? If so, we can remap \adiaeresis cum suis onto 
\aumlaut in finish; keep in mind that the adiearesis may use glyphs while 
umlauts use composed characters

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: Font problems (special characters, URW)
  2002-04-23 17:19 Ville Voipio
@ 2002-04-23 17:57 ` Patrick Gundlach
  0 siblings, 0 replies; 8+ messages in thread
From: Patrick Gundlach @ 2002-04-23 17:57 UTC (permalink / raw)


Ville Voipio <vv@iki.fi> writes:

Hi

[...]

> > does \setupbodyfont[ber,pos] work on your machine?
> 
> Nope. See transcript below. As far as I understand, it tries to find Times
> font metrics without success.

I am currently working on a typescript to use all the standard teTeX
fonts work 'out of the box'. Your problem is a well known problem
here. The problems are:

a) the file names you need are not in the standard ConTeXt
distribution. So you have to set up some new mappings
(\definefontsynonym) yourself or reinstall the fonts with
texfont. Neither option is really nice. 

b) if you have done the mapping, it is not really usable for general
purpose: it is currently (as far as I have experienced it) not possible
to switch one font (e.g. Sans) and leave the others as they are. I
will send Hans a more detailed bugreport. So you can say 'I want
times, helvetica and courier in encoding "ec"'. 

c) Font switching is not very robust. If  you have some subtle errors,
the encoding stuff gets messed up. You will not notice it unless you
really use some \definecharacter xxx and afterwards \xxx. 

So I think I should first complete the tetex font typescipt for the
names fist.

I guess that the font names for MikTeX (as you are using) are the same
as for teTeX!?!

-- 
Viele Grüße, 

    Patrick Gundlach


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

* Re: Font problems (special characters, URW)
@ 2002-04-23 17:19 Ville Voipio
  2002-04-23 17:57 ` Patrick Gundlach
  0 siblings, 1 reply; 8+ messages in thread
From: Ville Voipio @ 2002-04-23 17:19 UTC (permalink / raw)


Hello!

Thank you for your reply. Here is some more information about the font
problem.

> you should be able to use the bunch of free fonts that comes with tex live 
> without problems; these contain times, and helvetica alternatives

These fonts are installed so that pdfTeX has access to them, i.e.
\usepackage{txfonts} or \usepackage{times} work fine in LaTeX. (The fonts
are the URW counterparts to the Base14 fonts.)

> does \setupbodyfont[ber,pos] work on your machine?

Nope. See transcript below. As far as I understand, it tries to find Times
font metrics without success.

Thank you for your help!

- Ville

---

This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (MiKTeX 2.1)
(preloaded format=cont-en 2002.4.16)  22 APR 2002 13:31
entering extended mode
**test.tex
(test.tex{pdftex.cfg}

ConTeXt  ver: 2001.11.13  fmt: 2002.4.16  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(C:\texmf\tex\context\base\cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 473] \ifcsname 
)
system         : cont-old loaded
(C:\texmf\tex\context\base\cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(C:\texmf\tex\context\base\cont-fil.tex
loading        : Context File Synonyms
)
bodyfont       : 12pt rm is loaded
language       : patterns 2-en-2 2-de-2 2-fr-2 2-es-2 2-nl-2 loaded
specials       : tex,postscript,rokicki loaded
system         : test.top loaded
(./test.top
specials       : tex,postscript,rokicki is reset
specials       : loading definition file tpd
(C:\texmf\tex\context\base\spec-tpd.tex
specials       : loading definition file fdf
(C:\texmf\tex\context\base\spec-fdf.tex <unprotect 3> <unprotect 4>
<protect 4> <protect 3>)
specials       : fdf loaded
<unprotect 3> <protect 3>)
specials       : fdf,tpd loaded
) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(./test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(C:\texmf\tex\context\base\type-pre.tex
typescript     : [berry] [ec] []
(C:\texmf\tex\context\base\type-syn.tex)
(C:\texmf\tex\context\base\type-enc.tex)
(C:\texmf\tex\context\base\type-siz.tex)
(C:\texmf\tex\context\base\type-map.tex)
(C:\texmf\tex\context\base\type-spe.tex)
(C:\texmf\tex\context\base\type-exa.tex))
(C:\texmf\tex\context\base\type-pre.tex
typescript     : [serif] [times] [name,default]
(C:\texmf\tex\context\base\type-syn.tex)
(C:\texmf\tex\context\base\type-enc.tex)
(C:\texmf\tex\context\base\type-siz.tex)
(C:\texmf\tex\context\base\type-map.tex)
(C:\texmf\tex\context\base\type-spe.tex)
(C:\texmf\tex\context\base\type-exa.tex)
typescript     : [sans] [helvetica] [name,default]
(C:\texmf\tex\context\base\type-syn.tex)
(C:\texmf\tex\context\base\type-enc.tex)
(C:\texmf\tex\context\base\type-siz.tex)
(C:\texmf\tex\context\base\type-map.tex)
(C:\texmf\tex\context\base\type-spe.tex)
(C:\texmf\tex\context\base\type-exa.tex)
typescript     : [mono] [courier] [name,default]
(C:\texmf\tex\context\base\type-syn.tex)
(C:\texmf\tex\context\base\type-enc.tex)
(C:\texmf\tex\context\base\type-siz.tex)
(C:\texmf\tex\context\base\type-map.tex)
(C:\texmf\tex\context\base\type-spe.tex)
(C:\texmf\tex\context\base\type-exa.tex)
typescript     : [serif,sans,mono] [default] [size]
(C:\texmf\tex\context\base\type-syn.tex)
(C:\texmf\tex\context\base\type-enc.tex)
(C:\texmf\tex\context\base\type-siz.tex)
(C:\texmf\tex\context\base\type-map.tex)
(C:\texmf\tex\context\base\type-spe.tex)
(C:\texmf\tex\context\base\type-exa.tex)
typescript     : [map] [default] []
(C:\texmf\tex\context\base\type-syn.tex)
(C:\texmf\tex\context\base\type-enc.tex)
(C:\texmf\tex\context\base\type-siz.tex)
(C:\texmf\tex\context\base\type-map.tex
pdftex         : needs map file: original-ams-cmr.map
pdftex         : needs map file: original-ams-euler.map
pdftex         : needs map file: original-ams-logo.map
pdftex         : needs map file: original-micropress-informal.map
) (C:\texmf\tex\context\base\type-spe.tex)
(C:\texmf\tex\context\base\type-exa.tex))
! Font \*12ptrmtf*=Times-Roman at 12.0pt not loadable: Metric (TFM) file
not fo
und.
\lastfontname ...mes-Roman at \scaledfont 

\donoparsefontspec ...sname \lastfontname 
                                          \relax \the \everyfont \relax 
\xxdododefinefont ...2}\newfontidentifier 
                                          \doresetrelativefontsize \f...
\fontstrategy ...ame #2#3#4#5#6\endcsname 
                                          \let \fontstrategy \gobbles...
<inserted text> ...talternative \fontsize 
                                          \fontstrategy \autofontsize...
\synchronizefont ... \the \fontstrategies 
                                          \ifskipfontcharacteristics ...
...
l.1 \setupbodyfont[ber,pos]

? x
No pages of output.


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

end of thread, other threads:[~2002-05-09 18:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-19  5:24 Font problems (special characters, URW) Ville Voipio
2002-04-20 23:23 ` Hans Hagen
2002-04-23 18:11 ` Patrick Gundlach
2002-04-26  9:49   ` mari.voipio
2002-04-26 11:10     ` Patrick Gundlach
2002-04-23 17:19 Ville Voipio
2002-04-23 17:57 ` Patrick Gundlach
     [not found] <Pine.OSF.4.30.0204261247080.20261-100000@sirppi.helsinki.f i>
2002-05-09 18:46 ` Hans Hagen

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