ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan Tosovsky" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Palatino patch for the current ConTeXt version
Date: Sun, 1 Dec 2013 09:40:05 +0100	[thread overview]
Message-ID: <11281.9852577106$1385887215@news.gmane.org> (raw)
In-Reply-To: <001a01cee387$691cd370$3b567a50$@tosovsky@email.cz>

On 2013-11-17 Jan Tosovsky wrote:
> 
> I am trying to fix a Palatino small caps issue using the procedure
> explained here:
> http://wiki.contextgarden.net/Palatino_Linotype_under_MKIV
> 
> That fix seems to be obsolete nowadays and returning errors.
> 

almost fixed now using this procedure:

1) Create a new LFG file

local fix_pala = {
   comment = "Switching i.sc glyphs indexes",
   fixes = function(data)
      local descriptions = data.descriptions
      descriptions[983201].index = 1170
      descriptions[983261].index = 1110
   end
}

return {
   name = "pala",
   comment = "Switching the small capped 'i' to a dotless variant in
Palatino Linotype.",
   treatments = {
      ["pala.ttf"]   = fix_pala,
      ["palai.ttf"]  = fix_pala,
      ["palab.ttf"]  = fix_pala,
      ["palabi.ttf"] = fix_pala,      
   },
}


2) Place it into the folder where other LFG files are stored
(tex\texmf-context\tex\context\fonts)

3) Execute 'mtxrun --generate' command to include newly added LFG file
into a file database

4) Specify a new font feature referencing to this goodie in the source file:

\definefontfeature[dotlessi][mode=base,goodies=pala]
\definefontfamily[palatino][rm][Palatino
Linotype][features={default,quality,dotlessi}]
\setupbodyfont[palatino]
\starttext
{Athenians \smallcaps{Athenians}}\par
{Athenians \sc{Athenians}}\par
{\it Athenians \smallcaps{Athenians}}\par
{\bf Athenians \smallcaps{Athenians}}\par
{\bi Athenians \smallcaps{Athenians}}\par
\stoptext

5) Trigger the generating

It works except the regular font style. In this case \smallcaps option
behaves differently than for e.g. \it or \bf styles. I am quite confused.
Moreover, when faked caps are switched on using \sc, it works. Can anybody
explain what is happening here?

Thanks, Jan

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


  parent reply	other threads:[~2013-12-01  8:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <001a01cee387$691cd370$3b567a50$@tosovsky@email.cz>
2013-11-17 11:44 ` Hans Hagen
2013-11-26 23:40   ` Jan Tosovsky
     [not found]   ` <008801ceeb00$db41e820$91c5b860$@tosovsky@email.cz>
2013-11-27  8:37     ` Hans Hagen
2013-11-27 20:16       ` Jan Tosovsky
     [not found]       ` <00b901ceebad$900fb0a0$b02f11e0$@tosovsky@email.cz>
2013-11-27 20:55         ` Hans Hagen
2013-11-29 19:44           ` Jan Tosovsky
2013-12-01  8:40 ` Jan Tosovsky [this message]
2013-12-21 10:02 ` Jan Tosovsky
2013-11-17 11:23 honyk

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='11281.9852577106$1385887215@news.gmane.org' \
    --to=j.tosovsky@email.cz \
    --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).