Line 1: |
Line 1: |
| + | == Quantities == |
| + | Collecting quantity isn't so simple: |
| + | * we can see various units |
| + | * we can see various ways of dealing with net weight and drained weight |
| + | * sometimes portions are well specified and sometimes not |
| + | * we can see many ways of ordering printed data on the packages |
| + | * ... |
| + | |
| + | === Units === |
| + | ... |
| + | |
| + | === e sign === |
| + | The ℮ sign (for "[https://en.wikipedia.org/wiki/Estimated_sign estimated sign]") is used in Europe and other countries, at least Australia: https://www.industry.gov.au/sites/default/files/2019-04/guide-to-the-average-quantity-system.pdf (p. 12) |
| + | |
| + | It seems to refer to the Average Quantity System (AQS) which is in use in Australia, Canada, European Union, India, Japan, New Zealand, South Africa and Switzerland -- source: https://www.sfa.gov.sg/docs/default-source/tools-and-resources/resources-for-businesses/avabriefingonaqsslides1 (slide 3). |
| + | |
| + | |
| + | == How to enter the data == |
| + | For the moment, the best is to enter the data as it is printed on the product. |
| + | |
| + | |
| == How to handle it == | | == How to handle it == |
| + | |
| === Logic to handle it === | | === Logic to handle it === |
| + | ... |
| + | |
| === Existing libraries to parse weights and quantities === | | === Existing libraries to parse weights and quantities === |
| * https://github.com/iancanderson/ingreedy | | * https://github.com/iancanderson/ingreedy |
Line 21: |
Line 45: |
| **Useful to fix calorie calculation for some products | | **Useful to fix calorie calculation for some products |
| * Calculate packaging weight by making the difference between actual weight and advertised weight | | * Calculate packaging weight by making the difference between actual weight and advertised weight |
− | * Calculate weight per volume for products (1dL of water is 1kg, but this changes for various products that also have a mention of their volume) | + | * Calculate weight per volume for products (1dL of water is 1kg, but this changes for various products that also have a mention of their volume, e.g. milk) |
| * Some products will have multilingual weights | | * Some products will have multilingual weights |
| ** we can check that the conversion is well done if we have both values | | ** we can check that the conversion is well done if we have both values |
Line 252: |
Line 276: |
| | nestle || 228g (4x57g) / 48 cl (4x12cl) || [http://fr.openfoodfacts.org/produit/2000000003897 (link)] | | | nestle || 228g (4x57g) / 48 cl (4x12cl) || [http://fr.openfoodfacts.org/produit/2000000003897 (link)] |
| |} | | |} |
− | | + | [[Category:OCR]] |
| [[Category:ProductOpener]] | | [[Category:ProductOpener]] |