ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* wiki page for \feature
@ 2013-03-21 23:01 Idris Samawi Hamid ادريس   سماوي حامد
  2013-03-22 15:33 ` Sietse Brouwer
  0 siblings, 1 reply; 2+ messages in thread
From: Idris Samawi Hamid ادريس   سماوي حامد @ 2013-03-21 23:01 UTC (permalink / raw)
  To: ntg-context; +Cc: Mojca Miklavec

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: wiki page for \feature
  2013-03-21 23:01 wiki page for \feature Idris Samawi Hamid ادريس   سماوي حامد
@ 2013-03-22 15:33 ` Sietse Brouwer
  0 siblings, 0 replies; 2+ messages in thread
From: Sietse Brouwer @ 2013-03-22 15:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Idris,

I have merged your output graphic into the article --- perhaps a bit
large, but I wanted to be sure the features were legible. Thank you
for including the PDF, that made things easier.

I have taken the liberty of moving the page title to [[Featuresets]]
---easier to remember, I think, and easier to link to. I've updated
your redirects, of cours. [[Open Type Font Features]], [[Open Type
Fonts and Featuresets in MkIV]], and [[Font features]] all redirect
there.

http://wiki.contextgarden.net/Featuresets#Sample_file_with_examples

Thank-you for writing this article, it is much appreciated.
Sietse

On 22 March 2013 00:01, Idris Samawi Hamid ادريس   سماوي حامد
<ishamid@colostate.edu> wrote:
> 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
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-22 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-21 23:01 wiki page for \feature Idris Samawi Hamid ادريس   سماوي حامد
2013-03-22 15:33 ` Sietse Brouwer

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).