TandoorRecipes/cookbook
Aaron 94e1fdfbff
Improve text to ingredient parsing
The previous implementation of parsing ingredients was very simple. I now wrote a parser
that I would consider good. It takes care of several edge cases and notations.

- Supports fraction unicode (½, ¼, ⅜, ...)
- Supports notations like `1½` and `1 1/2`
- Supports unit directly after the amount without space inbetween (`2g`, `2½g`)
- Supports notes (`5g onion (cubed)` -> amount: 5, unit: g, ingredient: onion, note: cubed)
- Supports notes (`5g onion, cubed` -> amount: 5, unit: g, ingredient: onion, note: cubed)
- Does not break when both commas and brackets exist
2020-12-21 20:00:46 +01:00
..
fixtures cleanup and dependency updates + new nav 2019-11-19 19:59:53 +01:00
helper Improve text to ingredient parsing 2020-12-21 20:00:46 +01:00
locale Apply translations in fr 2020-12-16 14:47:47 +00:00
migrations added support for fractions 2020-12-14 14:08:11 +01:00
provider improved pdf viewer 2020-06-10 15:40:24 +02:00
static meal plan quality of life stuff 2020-12-14 17:37:51 +01:00
templates fixed scaling for fractions 2020-12-15 22:16:15 +01:00
templatetags added ability to display message to users (via admin) 2020-09-22 12:36:27 +02:00
tests added permission classes for sharing + tests 2020-10-15 23:41:38 +02:00
views fixed import image error 2020-12-15 22:54:10 +01:00
__init__.py basic stuff 2018-01-31 23:40:16 +01:00
admin.py Finish editing of nutritional information 2020-11-17 22:27:01 +01:00
apps.py basic stuff 2018-01-31 23:40:16 +01:00
filters.py shopping list tweaks 2020-10-20 20:54:15 +02:00
forms.py added support for fractions 2020-12-14 14:08:11 +01:00
models.py added support for fractions 2020-12-14 14:08:11 +01:00
serializer.py small nutrition fixes 2020-12-14 12:56:18 +01:00
tables.py finishes shopping lists 2020-09-29 14:15:18 +02:00
urls.py meal plan date handling rewrite 2020-12-14 17:11:40 +01:00