ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid ادريس   سماوي حامد" <ishamid@colostate.edu>
To: "Hans Hagen" <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: adjusting accents under slant
Date: Wed, 02 Nov 2011 19:56:38 -0600	[thread overview]
Message-ID: <op.v4cknvf5pw6hmh@ishamid-pc> (raw)
In-Reply-To: <4EB133E5.4030403@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 2351 bytes --]

On Wed, 02 Nov 2011 06:13:25 -0600, Hans Hagen <pragma@wxs.nl> wrote:

>> Of course LM does not look so bad but I'm using a different font so this
>> is just an illustration.
>
> \slantperpoint
>
> is a rather traditional tex/font parameter and not present in opentype  
> fonts so you have to hard code something there

Sure ... but I can't figure out a way to change the italic behavior  
without changing the tf behavior.

Do you have a trick somewhere where you can define a conditional such that

if slanted font (\it or \sl etc) do x
else
do y

Then we could add that to the macro?

Is there any other way?

> you could try \definefontfeature[default][default][compose=yes] assuming  
> that you have the bottom accent available

I already have compose=yes in the typscripts, e.g.

=================
\definefontfallback
     [latindot]
     [file:LMRoman12-Regular*default]
	[0x0323]
     [force=yes]

\definefontfeature
   [minionpro-tf]
   [mode=node,script=latn,language=dflt,trep=yes,protrusion=quality,
   expansion=quality,compose=yes,combine=yes,tlig=yes,
    kern=yes,liga=yes,onum=yes,cpsp=yes]

\definefontfeature
   [minionpro-it]
   [mode=node,script=latn,language=dflt,trep=yes,compose=yes,combine=yes,tlig=yes,
    kern=yes,liga=yes,onum=yes,cpsp=yes,protrusion=quality,expansion=quality,
    swsh=yes]
=================

but the results are bad using

=================
\defineactivecharacter ḥ  {ḥ} % Ux0323 is explicit within the {}
\defineactivecharacter Ḥ  {Ḥ} % Ux0323 is explicit within the {}
\defineactivecharacter ṣ  {ṣ} % Ux0323 is explicit within the {}
\defineactivecharacter Ṣ  {Ṣ} % Ux0323 is explicit within the {}

\starttext
Ḥ {\it Ḥ}

ḥ {\it ḥ}

Ṣ  {\it Ṣ}

ṣ  {\it ṣ}
\stoptext
=================

See pdf. Even in LM, the results are very uneven ...

If it takes a hard-coded solution for each char that's fine, I should be  
able to extrapolate from a template for just one in regular and italic.

I've experimented with different ideas, but I'm really out of my league on  
this one ... please help!

:-)

Best wishes
Idris


-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

[-- Attachment #2: accent.pdf --]
[-- Type: application/pdf, Size: 12649 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2011-11-03  1:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-01 14:16 Idris Samawi Hamid ادريس   سماوي حامد
2011-11-02 12:13 ` Hans Hagen
2011-11-03  1:56   ` Idris Samawi Hamid ادريس   سماوي حامد [this message]

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.v4cknvf5pw6hmh@ishamid-pc \
    --to=ishamid@colostate.edu \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).