Difference between revisions of "Global Food Preparation taxonomy"

From Open Food Facts wiki
Jump to navigation Jump to search
Line 32: Line 32:
  
 
</pre>
 
</pre>
 +
 +
== Duration ==
 
===Singular===
 
===Singular===
 
<pre>
 
<pre>
Line 51: Line 53:
 
</pre>
 
</pre>
  
=== Pre-cooking instructions ===
+
== Pre-cooking instructions ==
 
<pre>
 
<pre>
 
fr:Percer l'emballage de quelques trous
 
fr:Percer l'emballage de quelques trous
Line 58: Line 60:
 
</pre>
 
</pre>
  
=== Method===
+
== Method==
 
<pre>
 
<pre>
 
en:Microwavable
 
en:Microwavable
Line 70: Line 72:
 
</pre>
 
</pre>
  
=== Cooking devices ===
+
== Cooking devices ==
 
<pre>
 
<pre>
 
fr:Micro-ondes, Four à micro-ondes
 
fr:Micro-ondes, Four à micro-ondes
Line 85: Line 87:
 
</pre>
 
</pre>
  
=== Duration and method ===
+
== Duration and method ==
  
 
<pre>
 
<pre>
fr:1 minute au micro-ondes
+
en:{{duration}} in {{device}}
fr:15 minutes au four
+
fr:{{duration}} au {{device}}
fr:Meilleur cuit au four
+
 
 +
en:Best cooked in {{device}}
 +
fr:Meilleur cuit au {{device}}
 
</pre>
 
</pre>

Revision as of 18:00, 11 December 2016

<< Back to Global taxonomies

Current status

Draft. Not live.

Taxonomy

Script

The taxonomy is generated with this script:


#!/usr/bin/perl -w

use strict;

my $entry_format = <<TXT
en:<i> minutes, <i>minutes, <i> min, <i>M, <i>
fr:<i> minutes, <i>min
numeric_minutes:en:<i>
TXT
;

for (my $i = 1; $i <= 4 * 12; $i++) {

	my $entry = $entry_format;
	$entry =~ s/<i>/$i/g;
	print $entry . "\n";
}

Duration

Singular

en:1 minute, 1minute
fr:1 minute, 1minute

en:1 hour, 1hour
fr:1 heure, 1heure


Plural

en:2 minutes, 2minutes
fr:2 minutes, 2minutes

en:2 hours, 2hours
fr:2 heures, 2heures

Pre-cooking instructions

fr:Percer l'emballage de quelques trous

fr:Décoller la languette

Method

en:Microwavable
fr:Micro-ondable, Microondable
de:Mikrowellengeeignet

en:Unmicrowavable
fr:Ne pas micro-onder
de:Nicht Mikrowellengeeignet

Cooking devices

fr:Micro-ondes, Four à micro-ondes
en:Microwave, Microwave oven

en:Oven
fr:Four

fr:Gril

fr:Poêle

fr:Wok

Duration and method

en:{{duration}} in {{device}}
fr:{{duration}} au {{device}}

en:Best cooked in {{device}}
fr:Meilleur cuit au {{device}}