- Expand from 418 to 3817 lines with detailed item definitions across grocery, pharmacy, hardware, technology, clothing, home, pets, auto, leisure, cleaning, gifts, and office domains - Add extensive French item names with English aliases for bilingual search support - Include emoji icons, color codes, sort orders, and tags for all domains, categories, and items - Add specialized
130 lines
8.8 KiB
Python
130 lines
8.8 KiB
Python
import re
|
|
|
|
bakery_additions = [
|
|
' add(CatalogItem("Bagel briana", "Boulangerie", "🥯"))',
|
|
' add(CatalogItem("Biscuits breton sans gluten", "Boulangerie", "🍪"))',
|
|
' add(CatalogItem("Biscuits Feuille D\'Érable", "Boulangerie", "🍁"))',
|
|
' add(CatalogItem("Biscuits sans gluten", "Boulangerie", "🍪"))',
|
|
' add(CatalogItem("Biscuits swiss", "Boulangerie", "🍪"))',
|
|
' add(CatalogItem("Bread", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Buns", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Crispbread", "Boulangerie", "🍘"))',
|
|
' add(CatalogItem("Croûte à tarte", "Boulangerie", "🥧"))',
|
|
' add(CatalogItem("Dinner Rolls", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Fond de tarte", "Boulangerie", "🥧"))',
|
|
' add(CatalogItem("Galette tortilla", "Boulangerie", "🌯"))',
|
|
' add(CatalogItem("Gâteau mille feuilles", "Boulangerie", "🍰"))',
|
|
' add(CatalogItem("Gaufres", "Boulangerie", "🧇"))',
|
|
' add(CatalogItem("Muffins Anglais", "Boulangerie", "🥯"))',
|
|
' add(CatalogItem("Pain Baguette", "Boulangerie", "🥖"))',
|
|
' add(CatalogItem("Pain Blanc", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain Blanc Sans Lactose", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain Bon Matin", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain Briana", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain brun", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain burgers", "Boulangerie", "🍔"))',
|
|
' add(CatalogItem("Pain burgers sans gluten", "Boulangerie", "🍔"))',
|
|
' add(CatalogItem("Pain Croûte", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain croûté sans gluten", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain hamburger sans gluten", "Boulangerie", "🍔"))',
|
|
' add(CatalogItem("Pain Hot Dog", "Boulangerie", "🌭"))',
|
|
' add(CatalogItem("Pain Italien", "Boulangerie", "🥖"))',
|
|
' add(CatalogItem("Pain Sans Gluten", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain Sans Lactose", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pain Sous Marin", "Boulangerie", "🥖"))',
|
|
' add(CatalogItem("Pains Grand Mère", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Pancakes mix", "Boulangerie", "🥞"))',
|
|
' add(CatalogItem("Petit Pain Sandwich", "Boulangerie", "🥪"))',
|
|
' add(CatalogItem("Petit Pain Sous Marin", "Boulangerie", "🥖"))',
|
|
' add(CatalogItem("Pie", "Boulangerie", "🥧"))',
|
|
' add(CatalogItem("Pizza dough", "Boulangerie", "🍕"))',
|
|
' add(CatalogItem("Pizza sans gluten", "Boulangerie", "🍕"))',
|
|
' add(CatalogItem("Puff pastry", "Boulangerie", "🥐"))',
|
|
' add(CatalogItem("Pumpkin Pie", "Boulangerie", "🥧"))',
|
|
' add(CatalogItem("Rolls", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Scones", "Boulangerie", "🧁"))',
|
|
' add(CatalogItem("Sliced bread", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Toast", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Toast melba", "Boulangerie", "🍞"))',
|
|
' add(CatalogItem("Tortilla", "Boulangerie", "🌯"))',
|
|
' add(CatalogItem("Vol au vent", "Boulangerie", "🥐"))',
|
|
' add(CatalogItem("Waffles", "Boulangerie", "🧇"))',
|
|
]
|
|
|
|
dairy_additions = [
|
|
' add(CatalogItem("Beurre Sans Lactose", "Produits laitiers", "🧈"))',
|
|
' add(CatalogItem("Cream", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Cream cheese", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Crème 10%", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Crème à café", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Creme fraiche", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Crème Glacée", "Produits laitiers", "🍨"))',
|
|
' add(CatalogItem("Crème glacée Sans Lactose", "Produits laitiers", "🍨"))',
|
|
' add(CatalogItem("Crème Glacée Sans Lactose Au Chocolat", "Produits laitiers", "🍨"))',
|
|
' add(CatalogItem("Crème Sans Lactose", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Crème Sure", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Sour cream", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Blue cheese", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Crotte De Fromage", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Demi Lune", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fondue Fromage", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Frite du petit Québec", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage à tartiner", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Briana", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Chèvre Confiture", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("fromage cottage sans lactose", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Déjà Rappé", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage en grains", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("fromage en tranches", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Philadelphia", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Philadelphia sans lactose", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Quick Quick", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Rapé Briana", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage rapé sans lactose", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Riviera", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Sans Lactose", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage suisse", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage tex mex", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Fromage Vache Qui Rit", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Grated cheese", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Grilled cheese", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Parmesan sans lactose", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Quark", "Produits laitiers", "🧀"))',
|
|
' add(CatalogItem("Lait avoine", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait avoine lunch", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait avoine lunch chocolat", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait Chocolat", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait Chocolat Lunch", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait Chocolat Sans Lactose", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait condensé coco", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait Sans Lactose", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait Soya Lunch", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Lait Soya Sensationnel Nature", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Soy Milk", "Produits laitiers", "🥛"))',
|
|
' add(CatalogItem("Soy yogurt", "Produits laitiers", "🥣"))',
|
|
' add(CatalogItem("Yogourt iogo Vanille", "Produits laitiers", "🥣"))',
|
|
' add(CatalogItem("Yogourt logo vanille sans lactose", "Produits laitiers", "🥣"))',
|
|
' add(CatalogItem("Yogourt Sans Lactose", "Produits laitiers", "🥣"))',
|
|
]
|
|
|
|
path = 'app/src/main/java/com/safebite/app/domain/engine/CatalogProvider.kt'
|
|
with open(path, 'r', encoding='utf-8') as f:
|
|
content = f.read()
|
|
|
|
# Insert bakery items after "Gâteau", "Boulangerie"
|
|
marker_bakery = ' add(CatalogItem("Gâteau", "Boulangerie", "🍰"))\n\n // Produits laitiers'
|
|
new_bakery_block = ' add(CatalogItem("Gâteau", "Boulangerie", "🍰"))\n' + '\n'.join(bakery_additions) + '\n\n // Produits laitiers'
|
|
content = content.replace(marker_bakery, new_bakery_block)
|
|
|
|
# Insert dairy items after "Margarine", "Produits laitiers"
|
|
marker_dairy = ' add(CatalogItem("Margarine", "Produits laitiers", "🧈"))\n\n // Boucherie'
|
|
new_dairy_block = ' add(CatalogItem("Margarine", "Produits laitiers", "🧈"))\n' + '\n'.join(dairy_additions) + '\n\n // Boucherie'
|
|
content = content.replace(marker_dairy, new_dairy_block)
|
|
|
|
with open(path, 'w', encoding='utf-8') as f:
|
|
f.write(content)
|
|
|
|
print("Updated CatalogProvider.kt")
|
|
print(f"Bakery additions: {len(bakery_additions)}")
|
|
print(f"Dairy additions: {len(dairy_additions)}")
|