ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid ادريس   سماوي حامد" <ishamid@colostate.edu>
To: ntg-context@ntg.nl
Cc: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: wiki page for \feature
Date: Thu, 21 Mar 2013 17:01:53 -0600	[thread overview]
Message-ID: <op.wubjk91vpw6hmh@ishamid-pc> (raw)

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

Dear gang,

I made a wiki page for \feature et al:

http://wiki.contextgarden.net/Open_Type_Fonts_and_Featuresets_in_MkIV

Towards the end we need a graphical sample of the sample file, but I do  
not know how to do that. See

=======
Now let us review the results:

[output/graphic here]
=======

I have to move on to other projects so I'm leaving completion and  
improvement to others in the community. Here is the sample file (needs  
latest beta! pdf attached as well) that needs graphical output on the page:

==============
\definefontfeature
   [schola-preset]
   [mode=node,script=latn,language=dflt,kern=yes,liga=yes,lnum=yes]

  \starttypescript [serif] [schola-preset] [name]
  \definefontsynonym [Serif]  
[name:texgyreschola-regular.otf][features=schola-preset]
  \stoptypescript

  \starttypescript [serif] [schola-preset] [size]
     \definebodyfont
      [35.8pt,29.8pt,24.8pt,20.7pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt]
      [rm]
      [tf=Serif sa 1]
  \stoptypescript

  \starttypescript [schola-default]
  \definebodyfontenvironment
   [schola-default]
   [default]
   [interlinespace=2.7ex]
\definetypeface [schola-default] [rm] [serif] [schola-preset]  
[schola-preset] % [default]
  \stoptypescript

  \usetypescript[schola-default]
  \setupbodyfont[schola-default,12pt]

\definefontfeature[f:smallcaps]   		[smcp=yes]
\definefontfeature[f:thinimacron] 		[ss04=yes]
\definefontfeature[f:upsidedown] 		[dlig=yes]


\definefontfeature[f:newstyle]			[onum=no]
\definefontfeature[f:nocaps]       		[smcp=no]
\definefontfeature[f:wideimacron]  		[ss04=no]
\definefontfeature[f:rightsideup] 		[dlig=no]


\definefontfeature[f:ligatures] 		[liga=yes]
\definefontfeature[f:noligatures] 		[liga=no]

\definefontfeature[f:oldstyle]			[onum=yes,lnum=no]

\definefontfeature[f:oldstyleupsidedown]	[onum=yes,dlig=yes]
\definefontfeature[f:newstylerightsideup]	[onum=no,dlig=no]

\definefontfeature[f:oldstylewmacron]	[ss04=no,onum=yes]
\definefontfeature[f:newstylesmallcaps]	[smcp=yes,onum=no]

\startTEXpage[offset=10pt]

\define\SAMPLE{123 Idrīs ?` !` VA fi}

\SAMPLE\blank

\feature[+][f:oldstyle] 		\SAMPLE \blank
\feature[more][f:thinimacron] 	\SAMPLE \blank
\addfeature[f:upsidedown] 		\SAMPLE \blank

\feature[+][f:smallcaps] 		\SAMPLE \blank
\addfeature[f:wideimacron] 		\SAMPLE \blank

\feature[-][f:upsidedown] 		\SAMPLE \blank

\feature[=][f:oldstyleupsidedown]\SAMPLE \blank

\feature[!][f:smallcaps]		\SAMPLE \blank

\feature[<]				\SAMPLE \blank
\stopTEXpage
==============

Thanks and best wishes
Idris
-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

[-- Attachment #2: feature.pdf --]
[-- Type: application/pdf, Size: 7860 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:[~2013-03-21 23:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-21 23:01 Idris Samawi Hamid ادريس   سماوي حامد [this message]
2013-03-22 15:33 ` Sietse Brouwer

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.wubjk91vpw6hmh@ishamid-pc \
    --to=ishamid@colostate.edu \
    --cc=mojca.miklavec.lists@gmail.com \
    --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).