Exporting chapter exports everything else as Trash folder

38 views
Skip to first unread message

Lisa Stroyan

unread,
Jun 9, 2023, 4:18:48 PM6/9/23
to ywr...@googlegroups.com
I have found 2 cosmetic bugs and 1 bug/unexpected behavior in Export Selected Chapters in yWriter 7.

The unexpected behavior is that Exporting a single chapter puts all of the other scenes from the original project  in the Trash folder of the newly exported project. So if I have:
Chapter 1
Chapter 2
And I export Chapter 2, Chapter 1's scenes will all be in the Trash folder of the exported project containing Chapter 2. I would not expect to have any of that data in the project at all and this could be violating privacy if I were to send a single chapter project to someone. (Which I was getting ready to do to show another bug).

Other bugs:
There is a cosmetic bug with import: In yWriter 7, the menu item says: Export to yw5 format. (not .yw7)

Second cosmetic bug, the dialog that comes up says it's been exported to ycw5 and you can import it,  but really the file is .yw7 and you can just open it.

Thanks,

Peter T.

unread,
Jun 9, 2023, 4:55:43 PM6/9/23
to yWriter
On Friday, June 9, 2023 at 10:18:48 PM UTC+2 Lisa Stroyan wrote:
I have found 2 cosmetic bugs and 1 bug/unexpected behavior in Export Selected Chapters in yWriter 7.

The unexpected behavior is that Exporting a single chapter puts all of the other scenes from the original project  in the Trash folder of the newly exported project. So if I have:
Chapter 1
Chapter 2
And I export Chapter 2, Chapter 1's scenes will all be in the Trash folder of the exported project containing Chapter 2. I would not expect to have any of that data in the project at all and this could be violating privacy if I were to send a single chapter project to someone. (Which I was getting ready to do to show another bug).

I can reproduce this with yWriter7 Beta 7.1.3.5. It looks like the export function saves a copy of the whole project with all scenes, just leaving out the entries for the chapters not being selected. When opening this project, the "orphaned" scenes are put automatically into the "Trash" folder. 
 
Other bugs:
There is a cosmetic bug with import: In yWriter 7, the menu item says: Export to yw5 format. (not .yw7)

Second cosmetic bug, the dialog that comes up says it's been exported to ycw5 and you can import it,  but really the file is .yw7 and you can just open it.

This works fine with Project >  Import into current project > Append yWriter project 

Screenshot 2023-06-09 224954.png

However, as you can see, the Mouseover text is wrong, too.

Cheers, 
Peter

Simon Haynes

unread,
Jun 9, 2023, 4:59:08 PM6/9/23
to ywr...@googlegroups.com
Yep, I've made a note

Deleting chapters and scenes from a project now moves them to the trash automatically, even if I do it in code.

I just need to add a call to empty the trash when building the new copy of the project to export.


--
You received this message because you are subscribed to the Google Groups "yWriter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ywriter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ywriter/4e3237ab-b93c-438b-abad-f6b43deaac6cn%40googlegroups.com.


--

--
Visit Spacejock Software, the home of yWriter, FCharts and more
Visit spacejock.com.au for my articles on writing and publishing novels.

Peter T.

unread,
Jun 9, 2023, 5:12:43 PM6/9/23
to yWriter
On Friday, June 9, 2023 at 10:18:48 PM UTC+2 Lisa Stroyan wrote:
 and this could be violating privacy if I were to send a single chapter project to someone. (Which I was getting ready to do to show another bug).

Be aware, the exported project contains all your characters, locations, items, and project notes as well. 

Simon Haynes

unread,
Jun 9, 2023, 5:20:44 PM6/9/23
to ywr...@googlegroups.com
Yep it's not really meant for sending to other people.  That's what 'export for proofing' is for under Chapters. It creates an RTF file which you can reimport later, as long as you don't edit the chapters you exported in the meantime.

I use this feature to export my 'notes' chapter from a finished novel in a series, which contains ideas on the next book. I use that to create the project for the next book, and then I delete anything I don't need.


--
You received this message because you are subscribed to the Google Groups "yWriter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ywriter+u...@googlegroups.com.

Simon Haynes

unread,
Jun 10, 2023, 6:17:54 AM6/10/23
to ywr...@googlegroups.com
The second one (export to YWC5 format) is a leftover from old code.  It was designed to create a single project file containing all the details and selected scene content in one. (The C in the file extension stands for 'Combined')

With the advent of YW6 and YW7 projects, which do that by default, it's no longer necessary.

In addition, you can now select a number of chapters and copy them to the clipboard, ready for pasting into a new, empty project.

Unfortunately when software has been continually updated and maintained over 20+ years, some of these leftovers are inevitable.  I've now hidden that menu item.

Was the first bug you mentioned also related to that same menu item?


--
You received this message because you are subscribed to the Google Groups "yWriter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ywriter+u...@googlegroups.com.

Lisa Stroyan

unread,
Jun 10, 2023, 8:28:47 AM6/10/23
to ywr...@googlegroups.com
Yeah. The first bug was the reason I was trying to isolate a particular chapter to send to Peter, because I was getting an error on conversion to ODT. but then I ended up opening the .yw7 file in notepad. Somehow, when I was putting my references in comments, comment in tag got put outside of the italics markings. Going quickly and cutting and pasting so I suspect I did something wrong. There's an issue in the scene that I collect all my list of references in also. I think it is user error from my cut and paste, but I did keep a project file and a couple of error messages, in case Peter, you would like to look at them. But it's really easy to recreate, just move the end italics format outside your comment close. */[/i]

I'll post a separate message with what I'm trying to do in case you guys have ideas on that. It's a more general question. I finally got it mostly working last night after struggling all day with it!

Lisa

Simon Haynes

unread,
Jun 10, 2023, 8:49:42 AM6/10/23
to ywr...@googlegroups.com
Comments are the first thing stripped from the exported document, unless you tick the option to include them, so if you put an italics tag inside a comment and the closing tag outside (or vice versa) that will cause unintended issues.

If you just want to share the markup from one scene, use the Raw Markup tab in the scene editor, and copy from there:

image.png



Lisa Stroyan

unread,
Jun 10, 2023, 9:04:01 AM6/10/23
to ywr...@googlegroups.com
Thank you, that so much simpler!

(I wasn't exporting through ywriter, I was sending it straight into Peter's conversion program which takes the comments and puts them as comments in the libre office doc but your point still applies 🙂 )

Lisa

Peter T.

unread,
Jun 11, 2023, 3:13:51 AM6/11/23
to yWriter
On Saturday, June 10, 2023 at 3:04:01 PM UTC+2 Lisa Stroyan wrote:
(I wasn't exporting through ywriter, I was sending it straight into Peter's conversion program which takes the comments and puts them as comments in the libre office doc but your point still applies 🙂 )
 
Good, now I understand your basic problem. First of all, it's not a bad idea to export your annotations as comments. The catch, if I'm not mistaken, is that annotations are not included in either the ebook export or the PDF export by LibreOffice.

For you, footnotes or endnotes would be the way to go. In LibreOffice you can create them via the "Insert" menu, but of course it would also be feasible to let yw-cnv create them automatically from the yWriter comments. For example, specially marked comments.
That would be a bit of work though, I'll see if I can find time to look into that in the next few days.   
Reply all
Reply to author
Forward
0 new messages