lneugebauer / nextcloud-cookbook

Android client for Nextcloud Cookbook app.
https://lneugebauer.github.io/nextcloud-cookbook/
MIT License
54 stars 9 forks source link

Serving adjustments don't work with fractions #84

Closed Vortex-TH closed 1 month ago

Vortex-TH commented 3 months ago

I have a recipe that uses fractions screen1

However they are not affected by changing the number of servings

screen2

I think it should also work with fractions.

App version v0.18.0+40

lneugebauer commented 3 months ago

Hey @Vortex-TH, you're using special characters as fractions. If you use regular characters, e.g. 1/2 instead of ½, fractions are already supported. This should be the same behaviour as in the web app.

Vortex-TH commented 3 months ago

You're right, but I think it would be good to support these special characters as well (since they were imported like this from a recipe website). Or at least convert them to another format automatically.