cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Export recipe and calculation

Open Tirguy opened this issue 2 years ago • 8 comments

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 avatar May 09 '23 21:05 Tirguy

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 avatar May 16 '23 15:05 christianlupus

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.

Tirguy avatar May 16 '23 21:05 Tirguy

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.

datavizzard avatar May 20 '23 10:05 datavizzard

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[bot] avatar Jul 05 '23 03:07 github-actions[bot]

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

github-actions[bot] avatar Jul 13 '23 03:07 github-actions[bot]

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.

Markoise avatar Apr 18 '24 06:04 Markoise

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!

christianlupus avatar May 16 '24 18:05 christianlupus

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[bot] avatar Jul 01 '24 03:07 github-actions[bot]

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

github-actions[bot] avatar Jul 08 '24 03:07 github-actions[bot]