ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid ادريس   سماوي حامد" <ishamid@colostate.edu>
To: ntg-context@ntg.nl
Subject: setups within typescripts: can it be done?
Date: Mon, 11 Mar 2013 10:51:00 -0600	[thread overview]
Message-ID: <op.wtsjra2npw6hmh@ishamid-pc> (raw)

Dear gang,

Here is the situation: For an upcoming book project I may use a set of  
proprietary fonts whose license that does not allow modification even for  
personal, private use. Some characters I need are absent, but the  
components I need are there (macrons, dots, etc). So I can conceivably use  
\defineactivecharacter to map each needed unicode char to a \def made of  
glyph components in the font.

Now in a typescript we have different fonts: Each individual font needs  
its own setup in terms of \defineactivecharacter. So the final typeface  
will be able to associate each individual font with its associated setup.  
So here's my idea:

==============
\startsetups font1
\defineactivecharacter b blah1
\stopsetups


\startsetups font2
\defineactivecharacter b blah2
\stopsetups


\starttypescript [serif] [name]

\definefontsynonym  
[MyFont1][name:SuperFontRgular][features=myfeatures,fallbacks=myfallback,setups=font1]
\definefontsynonym  
[MyFont2][name:SuperFontItalic][features=myfeatures,fallbacks=myfallback,setups=font2]

\stoptypescript
===============

Is this doable? If not is there another way? If doable, is there a better  
way?

If this is totally undoable, then here is another approach: Is there a way  
in mkiv to make a definition that can translate the following:

==========
If font1 is active use def1
If font2 is active use def2
:
Else \relax
==========

If not, are there any other ideas?

Thanks in advance for any hints and guidance.

Best wishes
Idris
-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2013-03-11 16:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11 16:51 Idris Samawi Hamid ادريس   سماوي حامد [this message]
2013-03-13  1:01 ` Hans Hagen
2013-03-13  1:37   ` Idris Samawi Hamid ادريس   سماوي حامد
2013-03-13  9:09     ` Hans Hagen

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=op.wtsjra2npw6hmh@ishamid-pc \
    --to=ishamid@colostate.edu \
    --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).