ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: xetext-pdftex differences
Date: Thu, 12 Apr 2007 12:46:51 +0200	[thread overview]
Message-ID: <461E0E1B.7040502@wxs.nl> (raw)
In-Reply-To: <20070412095303019737.27b0d64b@st.estfiles.de>

Steffen Wolfrum wrote:
> On Wed, 11 Apr 2007 17:44:18 +0200, Mojca Miklavec wrote:
>   
>> You should try to get "uc" working if possible, but you need to add
>> some definitions from my previous mail. If you want to stick with
>> texnansi, you should better use pdfTeX.
>>     
>
> I have a document with German as the main language, defined ...
>
> \usetypescriptfile[type-gyr]
> \usetypescript[times][texnansi]
> \mainlanguage[de]
> \setupbodyfont[times,10pt] 
>
> .... and inserted Arabic quotes in Arabic AlBayan.ttf, defined  ...
>
> \font\geeza="AlBayan" at 10pt
>
>
> That's why it's typeset with XeTeX. But nevertheless texnansi for TeXGyreTermes seems to be fine (at least for now).
>   
technically one can define a virtual font which uses TeXGyreTermes as base, but has additional glyphs taken from AlBayan; I do have experimental code for that but have to cook up an interface (not that hard, i only need time and motivation); that way you dont't need to switch to geeza in between 

\ctxlua {
    fonts.define.methods.install("weird", {
{ "include-method", "base" } ,
{ "copy-char"     , "lmroman10-regular"     ,     65,     66 } ,              { "copy-range"    , "lmsans10-regular"      , 0x0100, 0x01FF } , 
{ "copy-range"    , "lmtypewriter10-regular", 0x0200, 0xFF00 } ,
{ "fallback-range", "lmtypewriter10-regular", 0x0000, 0x0200 }   
    })
}

\starttext

\startTEXpage

\font\test={myfont@weird}
\test \eacute \rcaron \adoublegrave \char"0200
AB\char65\char65

\stopTEXpage

Along these lines ... but then properly interfaced -) 


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

  reply	other threads:[~2007-04-12 10:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-08 20:16 Steffen Wolfrum
2007-04-10 19:27 ` Mojca Miklavec
2007-04-11  9:09   ` Steffen Wolfrum
2007-04-11 15:44     ` Mojca Miklavec
2007-04-11 17:22       ` Hans Hagen
2007-04-12  7:37         ` Steffen Wolfrum
2007-04-12 10:41           ` Hans Hagen
2007-04-12  7:53       ` Steffen Wolfrum
2007-04-12 10:46         ` Hans Hagen [this message]
2007-04-12 13:53           ` Steffen Wolfrum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=461E0E1B.7040502@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).