Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: feat_japanese_nutrition_table #9467

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions lib/ProductOpener/Food.pm
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ sub assign_nid_modifier_value_and_unit ($product_ref, $nid, $modifier, $value, $
ru => "ru",
us => "us",
hk => "hk",
jp => "jp",
);

=head2 %nutriments_tables
Expand Down Expand Up @@ -743,6 +744,65 @@ It is a list of nutrients names with eventual prefixes and suffixes:
'sulphate-', 'nitrate-',
)
],
jp => [
(
'!energy-kj-', '!energy-kcal',
'!energy-', '-energy-from-fat-',
'!proteins', '-casein-',
'-serum-proteins-', '-nucleotides-',
'!fat', '-saturated-fat-',
'--butyric-acid-', '--caproic-acid-',
'--caprylic-acid-', '--capric-acid-',
'--lauric-acid-', '--myristic-acid-',
'--palmitic-acid-', '--stearic-acid-',
'--arachidic-acid-', '--behenic-acid-',
'--lignoceric-acid-', '--cerotic-acid-',
'--montanic-acid-', '--melissic-acid-',
'-unsaturated-fat-', '--monounsaturated-fat-',
'--polyunsaturated-fat-', '-omega-3-fat-',
'--alpha-linolenic-acid-', '--eicosapentaenoic-acid-',
'--docosahexaenoic-acid-', '-omega-6-fat-',
'--linoleic-acid-', '--arachidonic-acid-',
'--gamma-linolenic-acid-', '--dihomo-gamma-linolenic-acid-',
'-omega-9-fat-', '--oleic-acid-',
'--elaidic-acid-', '--gondoic-acid-',
'--mead-acid-', '--erucic-acid-',
'--nervonic-acid-', '-trans-fat-',
'cholesterol-', '!carbohydrates',
'-sugars-', '-fiber-',
'-soluble-fiber-', '-insoluble-fiber-',
'!salt', '-added-salt-',
'#sodium-', 'alcohol',
'#vitamins', 'vitamin-a-',
'beta-carotene-', 'vitamin-d-',
'vitamin-e-', 'vitamin-k-',
'vitamin-c-', 'vitamin-b1-',
'vitamin-b2-', 'vitamin-pp-',
'vitamin-b6-', 'vitamin-b9-',
'folates-', 'vitamin-b12-',
'biotin-', 'pantothenic-acid-',
'#minerals', 'silica-',
'bicarbonate-', 'potassium-',
'chloride-', 'calcium-',
'phosphorus-', 'iron-',
'magnesium-', 'zinc-',
'copper-', 'manganese-',
'fluoride-', 'selenium-',
'chromium-', 'molybdenum-',
'iodine-', 'caffeine-',
'taurine-', 'ph-',
'fruits-vegetables-nuts-', 'fruits-vegetables-nuts-dried-',
'fruits-vegetables-nuts-estimate-', 'collagen-meat-protein-ratio-',
'cocoa-', 'chlorophyl-',
'carbon-footprint-', 'carbon-footprint-from-meat-or-fish-',
'nutrition-score-fr-', 'nutrition-score-uk-',
'glycemic-index-', 'water-hardness-',
'choline-', 'phylloquinone-',
'beta-glucan-', 'inositol-',
'carnitine-', 'sulphate-',
'nitrate-',
)
],
);

# Compute the list of nutriments that are not shown by default so that they can be suggested
Expand Down
8 changes: 4 additions & 4 deletions taxonomies/nutrients.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ he:אנרגיה - קלוריות (kJ)
hr:Energija (kJ)
hu:Energia (kJ)
it:Energia (kJ)
ja:エネルギー (kJ)
ja:エネルギー (kJ), 熱量 (kJ)
lt:Energinė vertė (kJ)
lv:Enerģētiskā vērtība (kJ)
mt:Enerġija (kJ)
Expand Down Expand Up @@ -75,7 +75,7 @@ he:אנרגיה - קלוריות (kcal)
hr:Energija (kcal)
hu:Energia (kcal)
it:Energia (kcal)
ja:エネルギー (kcal)
ja:エネルギー (kcal), 熱量 (kcal)
lt:Energinė vertė (kcal)
lv:Enerģētiskā vērtība (kcal)
mt:Enerġija (kcal)
Expand Down Expand Up @@ -143,7 +143,7 @@ id:Energi
io:energio
is:orka
it:Energia
ja:エネルギー
ja:エネルギー, 熱量
jv:energi
ka:ენერგია
kk:энергия
Expand Down Expand Up @@ -2807,7 +2807,7 @@ id:Protein
io:proteino
is:Prótín
it:Proteine, proteina
ja:たんぱく質
ja:たんぱく質, 蛋白質, タンパク質
jv:Protein
ka:ცილები
kk:Ақуыз
Expand Down
Loading