ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Regimes?
@ 2002-10-08  6:34 AlterEgo Qasars
  2002-10-09  7:27 ` Regimes? Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: AlterEgo Qasars @ 2002-10-08  6:34 UTC (permalink / raw)


Good morning once more.

I have to typeset something in TX fonts. It has EC (Cork?) encoding, while 
my input has Iso Latin 2 (il2) encoding. It is a virtual font, so 
reencoding is not so easy. I found ConTeXt can reencode it itself via 
regimes. After some digging in the source coude I included this in my 
document:

\startregime [mine]
\defineactivetoken 169 {\Scaron}
\defineactivetoken 171 {\Tcaron}
\defineactivetoken 174 {\Zcaron}
\defineactivetoken 185 {\scaron}
\defineactivetoken 187 {\tcaron}
\defineactivetoken 190 {\zcaron}
\defineactivetoken 193 {\Aacute}
\defineactivetoken 200 {\Ccaron}
\defineactivetoken 201 {\Eacute}
\defineactivetoken 204 {\Ecaron}
\defineactivetoken 205 {\Iacute}
\defineactivetoken 207 {\Dcaron}
\defineactivetoken 210 {\Ncaron}
\defineactivetoken 211 {\Oacute}
\defineactivetoken 216 {\Rcaron}
\defineactivetoken 217 {\Uring} % Velke U s krouzkem
\defineactivetoken 218 {\Uacute}
\defineactivetoken 218 {\Uacute}
\defineactivetoken 221 {\Yacute}
\defineactivetoken 225 {\aacute}
\defineactivetoken 232 {\ccaron}
\defineactivetoken 233 {\eacute}
\defineactivetoken 236 {\ecaron}
\defineactivetoken 237 {\iacute}
\defineactivetoken 239 {\dcaron}
\defineactivetoken 242 {\ncaron}
\defineactivetoken 243 {\oacute}
\defineactivetoken 248 {\rcaron}
\defineactivetoken 249 {\uring} % male u s krouzkem
\defineactivetoken 250 {\uacute}
\defineactivetoken 253 {\yacute}
% \defineactivetoken 254 {\quotedblbase}
% \defineactivetoken 255 {\quotedblleft}
\stopregime
\enableregime[mine]

It works well, but
1) bookmarks now includes some funny stuff 
2) \hyphenation causes errors
3) it is hard to use special charachters (like czech double quotes) 
because it is in every encoding in another place

Is it possible to improve this behavior? What I'm doing wrong?

Many thanks and greetings.
M.K.


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

* Re: Regimes?
  2002-10-08  6:34 Regimes? AlterEgo Qasars
@ 2002-10-09  7:27 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2002-10-09  7:27 UTC (permalink / raw)
  Cc: konference o ConTeXtu

At 08:34 AM 10/8/2002 +0200, AlterEgo Qasars wrote:
>Good morning once more.
>
>I have to typeset something in TX fonts. It has EC (Cork?) encoding, while
>my input has Iso Latin 2 (il2) encoding. It is a virtual font, so
>reencoding is not so easy. I found ConTeXt can reencode it itself via
>regimes. After some digging in the source coude I included this in my
>document:

if in enco-il2.tex, you change

   \startcoding[il2]

into

   \startcoding[il2][il2]

you get a a regime for free (first regenerate a format)

   \enableregime[il2]

>It works well, but
>1) bookmarks now includes some funny stuff

hm, should not happen, unless some glyphs are not defined (see enco-pdf)

>2) \hyphenation causes errors

what errors?

>3) it is hard to use special charachters (like czech double quotes)
>because it is in every encoding in another place

\startquotation ... \stopquotation ... \quotation ...

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] 2+ messages in thread

end of thread, other threads:[~2002-10-09  7:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-08  6:34 Regimes? AlterEgo Qasars
2002-10-09  7:27 ` Regimes? 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).