ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: \=i
Date: Wed, 2 Jun 2004 20:45:21 +0100	[thread overview]
Message-ID: <20040602204521.19379@smtp.btinternet.com> (raw)
In-Reply-To: <6.1.1.1.2.20040601205229.07dab140@server-1>

Hans Hagen said this at Tue, 1 Jun 2004 21:04:49 +0200:

>
>take a look at font-ini and search for the definition of \em; but since you 
>suffered already a lot:

Hey Hans, I like this one a lot. It's more of what I imaged when you
mentioned "fonts" and "parameters". (But I managed something interesting
there... need to write it up.)

I'd prefer (at least a variant) that does it based on fontstyle as well:

\unprotect

\definesystemvariable{sx}

\def\definestylecollection
   {\dotripleargument\dodefinestylecollection}

\def\dodefinestylecollection[#1][#2][#3][#4]%
   {\unexpanded\setvalue{#1}{\styleinstance[#1]}%
    \setvalue{\??sx#1:#2:#3}{#4}}

\unexpanded\def\styleinstance[#1]%
   {\executeifdefined{\??sx#1:\fontstyle:\fontalternative}{\getvalue{\?
?sx#1:\fontstyle:\s!default}}}

\protect
\definestylecollection[caps][ss][default][\sc]
\definestylecollection[caps][ss][bf][\bc]
\definestylecollection[caps][ss][bi][\bc]
\definestylecollection[caps][ss][bs][\bc]

>let me know if this works ok, maybe i can add it to the kernel then

Works fine here.

So. Now that we can parameterise font alternatives much more easily, can
there be some sort of agreement on other, expanded names for font
alternatives that go beyond the ones that cmr offers? 

I'm currently playing with these names (some grabbed from Hans's draft of
Utopia support in type-siz). Do any of them look grossly wrong?

\definebodyfont [default] [rm]
  [tf=Serif sa 1,
   it=SerifItalic sa 1,
   sl=SerifSlanted sa 1,
   sc=SerifCaps sa 1,
%   iy=SerifItalicCaps sa 1, % ??
   bf=SerifBold sa 1,
   bi=SerifBoldItalic sa 1,
   bs=SerifBoldSlanted sa 1,
   bc=SerifBoldCaps sa 1,
%   by=SerifBoldItalicCaps sa 1, % ??   
   db=SerifSemi sa 1,
   di=SerifSemiItalic sa 1,
   ds=SerifSemiSlanted sa 1,
   dc=SerifSemiCaps sa 1,
%   dy=SerifSemiItalicCaps sa 1, % ??   
   eb=SerifBlack sa 1,
   ei=SerifBlackItalic sa 1,
   es=SerifBlackSlanted sa 1,
   ec=SerifBlackCaps sa 1,
%   ey=SerifBlackItalicCaps sa 1, % ??   
   lf=SerifLight sa 1,
   li=SerifLightItalic sa 1,
   ls=SerifLightSlanted sa 1,
   lc=SerifLightCaps sa 1,
%   ly=SerifLightItalicCaps sa 1 % ??   
   ]
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      atl@comp.lancs.ac.uk
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2004-06-02 19:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-19 23:50 \=i Idris Samawi Hamid
2004-05-21 10:28 ` \=i Hans Hagen
2004-05-21 15:58   ` \=i Idris Samawi Hamid
2004-05-24 18:42   ` \=i Idris Samawi Hamid
2004-05-26 19:33     ` \=i Idris Samawi Hamid
2004-05-27 10:31       ` Re[2]: \=i Giuseppe Bilotta
2004-05-27 19:11         ` Idris Samawi Hamid
2004-05-27 21:47         ` Hans Hagen
2004-05-29  3:24           ` Idris Samawi Hamid
2004-06-01 19:04             ` Hans Hagen
2004-06-02 19:45               ` Adam Lindsay [this message]
2004-06-03 11:31                 ` \=i 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=20040602204521.19379@smtp.btinternet.com \
    --to=atl@comp.lancs.ac.uk \
    --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).