<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://typophile.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Typophile - proper implementation of numr and dnom OpenType features - Comments</title>
 <link>http://typophile.com/node/32420</link>
 <description>Comments for &quot;proper implementation of numr and dnom OpenType features&quot;</description>
 <language>en</language>
<item>
 <title>IMO, “numr” and</title>
 <link>http://typophile.com/node/32420#comment-192813</link>
 <description>&lt;p&gt;IMO, &amp;#8220;numr&amp;#8221; and &amp;#8220;dnom&amp;#8221; should implement simple subsitutions: digits by numerator figures in &amp;#8220;numr&amp;#8221; and digits by denominator figures in &amp;#8220;dnom&amp;#8221;. The &amp;#8220;frac&amp;#8221; feature can be implemented completely separately. It may or may not re-use some lookups that were also used in numr or dnom. &lt;/p&gt;
&lt;p&gt;A.&lt;/p&gt;
</description>
 <pubDate>Fri, 23 Mar 2007 12:57:00 -0700</pubDate>
 <dc:creator>twardoch</dc:creator>
 <guid isPermaLink="false">comment 192813 at http://typophile.com</guid>
</item>
<item>
 <title>The font I’m working on</title>
 <link>http://typophile.com/node/32420#comment-192761</link>
 <description>&lt;p&gt;The font I&amp;#8217;m working on has &lt;code&gt;frac&lt;/code&gt; but not &lt;code&gt;numr&lt;/code&gt; or  &lt;code&gt;dnom&lt;/code&gt; and the fraction feature works fine in Quark 7.&lt;/p&gt;
</description>
 <pubDate>Fri, 23 Mar 2007 08:31:14 -0700</pubDate>
 <dc:creator>Mark Simonson</dc:creator>
 <guid isPermaLink="false">comment 192761 at http://typophile.com</guid>
</item>
<item>
 <title>Doesn’t Quark do it</title>
 <link>http://typophile.com/node/32420#comment-192753</link>
 <description>&lt;p&gt;Doesn&amp;#8217;t Quark do it differently?&lt;br /&gt;
I haven&amp;#8217;t checked this recently, but I recall that in the demo of Quark 7, the fraction feature was ignored, and the fractions built on the fly from numr, fraction character, and dnom. At least that was my understanding, and I assumed it was done for backwards-compatability of older files.&lt;/p&gt;
</description>
 <pubDate>Fri, 23 Mar 2007 07:46:47 -0700</pubDate>
 <dc:creator>Nick Shinn</dc:creator>
 <guid isPermaLink="false">comment 192753 at http://typophile.com</guid>
</item>
<item>
 <title>but it seems that the frac</title>
 <link>http://typophile.com/node/32420#comment-192700</link>
 <description>&lt;p&gt;&lt;em&gt;but it seems that the frac feature can call the numr and dnom features&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The official feature descriptions are a bit confusing in this regard. When Adobe first registered the frac, numr and dnom features, they had this idea that frac would &amp;#8217;call&amp;#8217; the other two features. And this combination of features would allow for arbitrary fractions. As I understand it, the idea was that the application or layout engine would perform the feature calls to the numr and dnom features, based on a character level analysis (numerals before the slash get the numr feature applied to them, numerals after the slash get the denominator feature applied to them). But no one had got around to implementing this in a layout engine by the time I came along with a scheme building arbitrary fractions contextually, directly within the frac feature. Which is what pretty much everyone has been doing ever since.&lt;/p&gt;
&lt;p&gt;I believe Adobe make the arbitrary fraction code available with the FDK.&lt;/p&gt;
</description>
 <pubDate>Thu, 22 Mar 2007 23:55:19 -0700</pubDate>
 <dc:creator>John Hudson</dc:creator>
 <guid isPermaLink="false">comment 192700 at http://typophile.com</guid>
</item>
<item>
 <title>Hi Andrew. I’m a little</title>
 <link>http://typophile.com/node/32420#comment-192442</link>
 <description>&lt;p&gt;Hi Andrew. I&amp;#8217;m a little confused by your message. I don&amp;#8217;t think you want to try to call &amp;#8217;numr&amp;#8217; and &amp;#8217;dnom&amp;#8217; with &amp;#8217;frac&amp;#8217; &amp;#8212; at least for simple, prebuilt fractions like in your example. Your code seems fine for what you&amp;#8217;re trying to do.&lt;/p&gt;
&lt;p&gt;It can be useful to &amp;#8220;call&amp;#8221; the &amp;#8217;numr&amp;#8217; feature in &amp;#8217;frac&amp;#8217; with arbitrary fractions. This is an example of what I mean:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;feature frac {&lt;br /&gt;
  lookup NUMR;&lt;br /&gt;
  sub [@SLASH @FIG_DENOMINATOR] @FIG_NUMERATOR&#039; by @FIG_DENOMINATOR;&lt;br /&gt;
} frac;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The &amp;#8217;numr&amp;#8217; and &amp;#8217;dnom&amp;#8217; features are starting to look unnecessary, since there is usually little reason to create numerators or denominators without creating a whole fraction &amp;#8212; which is what &amp;#8217;frac&amp;#8217; does all by itself. So I recommend putting &amp;#8217;numr&amp;#8217; and &amp;#8217;dnom&amp;#8217; in fonts, but not consider them components or &amp;#8220;sub-features&amp;#8221; of &amp;#8217;frac&amp;#8217;.&lt;/p&gt;
</description>
 <pubDate>Wed, 21 Mar 2007 23:01:56 -0700</pubDate>
 <dc:creator>Christopher Slye</dc:creator>
 <guid isPermaLink="false">comment 192442 at http://typophile.com</guid>
</item>
<item>
 <title>proper implementation of numr and dnom OpenType features</title>
 <link>http://typophile.com/node/32420</link>
 <description>&lt;p&gt;Greetings. I can&amp;#8217;t seem to get the typophile search function to work, or I probably would have already found the answer to my question. It also doesn&amp;#8217;t appear to be in the Fontlab 4.6 manual.&lt;/p&gt;
&lt;p&gt;Can anyone show me an example of proper implementation of the &lt;a href=&quot;/wiki/numr&quot; class=&quot;wiki-create&quot;&gt;numr&lt;/a&gt; and &lt;a href=&quot;/wiki/dnom&quot; class=&quot;wiki-create&quot;&gt;dnom&lt;/a&gt; OpenType features? I can get the frac feature to do basic substitutions for the standard set of fractions, but it seems that the frac feature can call the numr and dnom features, but I haven&amp;#8217;t seen anywhere a specific example of how to make that work. I&amp;#8217;d be most grateful for some insight into that mysterious process.&lt;/p&gt;
&lt;p&gt;Below is the code I&amp;#8217;m currently using to get the &lt;a href=&quot;/wiki/frac&quot; class=&quot;wiki-create&quot;&gt;frac&lt;/a&gt; feature to work, in case it gives you some idea where I&amp;#8217;m at.&lt;/p&gt;
&lt;p&gt;feature frac {&lt;br /&gt;
  sub [one one.lnum] [slash fraction] [two two.lnum] by onehalf;&lt;br /&gt;
  sub [one one.lnum] [slash fraction] [four four.lnum] by onequarter;&lt;br /&gt;
  sub [one one.lnum] [slash fraction] [three three.lnum] by onethird;&lt;br /&gt;
  sub [one one.lnum] [slash fraction] [eight eight.lnum] by oneeighth;&lt;br /&gt;
  sub [two two.lnum] [slash fraction] [three three.lnum] by twothirds;&lt;br /&gt;
  sub [three three.lnum] [slash fraction] [four four.lnum] by threequarters;&lt;br /&gt;
  sub [three three.lnum] [slash fraction] [eight eight.lnum] by threeeighths;&lt;br /&gt;
  sub [five five.lnum] [slash fraction] [eight eight.lnum] by fiveeighths;&lt;br /&gt;
  sub [seven seven.lnum] [slash fraction] [eight eight.lnum] by seveneighths;&lt;br /&gt;
} frac;&lt;/p&gt;
</description>
 <comments>http://typophile.com/node/32420#comments</comments>
 <category domain="http://typophile.com/taxonomy/term/6">Build</category>
 <pubDate>Tue, 20 Mar 2007 18:30:46 -0700</pubDate>
 <dc:creator>ahleman</dc:creator>
 <guid isPermaLink="false">32420 at http://typophile.com</guid>
</item>
</channel>
</rss>
