Provides a WordPress shortcode which generate an FDA-style nutrition label.
The Calories from Fat number is computed from the totalfat attribute.
Working on it.
You can control the width with the "width" attribute. The width attribute uses ems as its unit. It is styled to scale but it's likely that the "Nutrition Label" text won't scale well as the default font is Helvetica, which isn't fixed-width.
You can specify the DOM ID of the enclosing div by setting the id attribute in the shortcode. You can also specify a CSS class by setting the class attribute. Then you can provide your own styling to change the label as you see fit.
This is really hard to do. To do it at all reliably requires human intervention to match ingredients names against their entries in a nutrition database. That's a level of difficulty I don't wan to try to tackle with this plugin. You may find the USDA's free online nutrition database useful for looking up nutrition information:
You're welcome to email the .po and .mo files to me at wordpress [at] romkey [dot] com
Development work on this plugin is hosted on github at https://github.com/romkey/wp-nutrition-label