[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search

CLDR Ticket #10969(accepted spec)

Opened 6 months ago

Last modified 37 hours ago

Food Calories

Reported by: Christoph Päper <christoph.paeper@…> Owned by: pedberg
Component: supplemental Data Locale:
Phase: spec-beta Review:
Weeks: Data Xpath:


It is true that in nutrition information and diets, calories are often still used even in otherwise fully metric countries, but in formal situations, kilojoules are always listed as well. I haven't seen alt="formal" yet, only alt="informal", thus I assume the following would be more appropriate as a default:

<unitPreferences category="energy" usage="food">
  <unitPreference regions="001">kilojoule</unitPreference>
  <unitPreference regions="001" alt="informal">foodcalorie</unitPreference>
  <unitPreference regions="US">foodcalorie</unitPreference>


Change History

comment:1 Changed 6 months ago by Christoph Päper <christoph.paeper@…>

PS: This probably applies to usage="person-usage" as well, although the unit there is kilocalorie (which is hardly ever distinguished from foodcalorie).

comment:2 Changed 2 months ago by pedberg

  • Owner changed from anybody to pedberg
  • Phase changed from dsub to rc
  • Priority changed from assess to medium
  • Status changed from new to accepted
  • Milestone changed from UNSCH to 34

comment:3 Changed 37 hours ago by pedberg

  • Phase changed from rc to spec-beta
  • Type changed from data to spec
  • Milestone changed from 34 to 35

Well, foodcalorie is not an an actual unit, it is a meta-unit; it is meant to mean "whatever unit is used for food energy". In some regions that will be kilocalories, in others it will be calories. This was created before we had the supplemental <unitPreferenceData> and was an attempt at handling that usage mapping for one particular kind of unit. In retrospect we should not have created foodcalorie and should have just created the <unitPreferenceData>. But since we have it, it really handles the <unitPreferenceData> mapping for the food energy category, so we don't need the extra preference structure above.

I will think about this a bit more, including how to document this issue.


Add a comment

Modify Ticket

as accepted

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.