Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export recipe and calculation #1665

Open
Tirguy opened this issue May 9, 2023 · 7 comments
Open

Export recipe and calculation #1665

Tirguy opened this issue May 9, 2023 · 7 comments
Labels
enhancement New feature or request question Further information is requested stalebot-enabled The PR/issue is marked to go stale over time

Comments

@Tirguy
Copy link

Tirguy commented May 9, 2023

Some ideas like that... that i would like to have in the application :

  • Possibility to export one or more recipe in PDF / ODT / DOCX
  • Possibility to export one or more recipe... or one or more recipe group for another cookbook application
  • Possibility to share one recipe on a public link
  • Calculation of the calories of a dish

Thank's
Tirguy

@Tirguy Tirguy added the enhancement New feature or request label May 9, 2023
@Tirguy Tirguy changed the title Export recipe Export recipe and calculation May 9, 2023
@christianlupus
Copy link
Collaborator

Hello and thanks for the ideas. Let me go through them one at a time.

  • Possibility to export one or more recipe in PDF / ODT / DOCX

I will link to the issues #286 #1241 #1485.

To be precise, as far as I know, there is not yet a request for DOCX. I would avoid that though for multiple reasons:

  1. DOCX is a proprietary format. It is not easy to generate that.
  2. I fear that soon after, the request for an import feature will arise. This is definitely out of scope.
  • Possibility to export one or more recipe... or one or more recipe group for another cookbook application

What do you mean by export? Do you mean a dedicated format like in #831?

  • Possibility to share one recipe on a public link

Again, there are already some issues: #1485 #392 #120

  • Calculation of the calories of a dish

If there is no information about nutrition available, this seems rather impossible to me.
One could use the serving number and the contained energy from the nutrition data to break it down per serving. Is that what you are thinking of?

@christianlupus christianlupus added question Further information is requested stalebot-enabled The PR/issue is marked to go stale over time labels May 16, 2023
@Tirguy
Copy link
Author

Tirguy commented May 16, 2023

Thank you Christian for this feedback... Here are my answers:

To be precise, as far as I know, there is not yet a request for DOCX. I would avoid that though for multiple reasons:
  1 - DOCX is a proprietary format. It is not easy to generate that.
  2 - I fear that soon after, the request for an import feature will arise. This is definitely out of scope

OK i understand... And it's true that someone could ask the ability to import .doc(x) and it's not really possible ;-) but it could be nice to export a recipe in a PDF format :-D

Note : I've used this library (https://github.com/PHPOffice/PHPWord) to generate .docx in one of my php project

Possibility to export one or more recipe... or one or more recipe group for another cookbook application
- What do you mean by export? Do you mean a dedicated format like in #831 ?
Possibility to share one recipe on a public link
- Again, there are already some issues: #1485 #392 #120

In fact, there are two ideas:
The first is to be able to exchange recipes from one Cookbook to another through an exchange of a link or a file for example which would be exported and then imported into the second Cookbook. This idea is a bit like what appears in the other requests you mention and which I had not paid attention to (I thought I was the first!!!).
The second is to be able to share a recipe link without the person having an account on my Nextclood server. This is a bit like file sharing, but in the form of access to a single recipe page.

In short, all my remarks are more or less similar to the requests you already had. But in general these requests go in several directions and not to the point. Personally, being able to generate a zip archive that integrates an export of the recipe in JSON format + its image and then being able to import it into another Cookbook would already be great!

For the last idea, yes, that's what I'm thinking of... ;-) even if it might take a few lines of code to provide the option.

@datavizzard
Copy link

If everything goes wrong, it would be good if the recipes are structured as a PDF in the core directory, especially for simple users. This can be easily shared, saved or passed on.

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

This issue was not updated for 45 days. It is therefore marked as stale. When no update occurs within the next 7 days, this issue will be closed automatically in the next 7 days.

@github-actions github-actions bot added the stale The PR/issue is marked as stale label Jul 5, 2023
@github-actions
Copy link

This issue was not updated since it was marked as stale. It will be closed now.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2023
@christianlupus christianlupus removed the stalebot-enabled The PR/issue is marked to go stale over time label Jul 13, 2023
@Markoise
Copy link

An export function would actually be a great thing. An export to an ODT file would be better than PDF if DOCX is not desired due to the proprietary background.

This would allow you to share recipes with another person who doesn't use the cookbook app or Nextcloud.

Even in the event that you no longer use Nextcloud, you would then have a "backup" of the recipes that you can process yourself. JSON or PDF are not the right choice for everyone, I think.

@christianlupus
Copy link
Collaborator

I opened a few issues to address all requests individually as a single issue is hard to maintain. Could you have a look, @Tirguy if your points are all present in either one of the linked issues of #2308 #2310 #2311? Thanks!

@github-actions github-actions bot removed the stale The PR/issue is marked as stale label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested stalebot-enabled The PR/issue is marked to go stale over time
Projects
None yet
Development

No branches or pull requests

4 participants