Test Scrivener's New .docx Converters

mc
mcl
Posts: 11
Joined: Tue Aug 20, 2019 4:07 pm
Platform: Mac

Thu Aug 22, 2019 5:25 pm Post

I'm posting this file here as a result of the tests on importing tables from Word conducted on this thread: viewtopic.php?f=2&t=58241

Hope this is the right place for it.
Attachments
table import test.scriv.zip
(166.75 KiB) Downloaded 104 times

User avatar
nontroppo
Posts: 1328
Joined: Mon Mar 05, 2007 5:22 pm
Platform: Mac
Location: Airstrip One

Wed Oct 23, 2019 10:45 am Post

Just to mention, the Heading 1 outlining bug is still present in V3.1.4, the output shoud have three "Level 1" sections each [Part], with three "Level 2" sections [Chapter], each with two "Level 3" sections [Scene]. In the Scrivener converter output, "Level 1" Part Two and Part Three are missing:
Screenshot 2019-10-23 at 18.38.05.png
Screenshot 2019-10-23 at 18.38.05.png (177.7 KiB) Viewed 4616 times


(post with test project here).

User avatar
nontroppo
Posts: 1328
Joined: Mon Mar 05, 2007 5:22 pm
Platform: Mac
Location: Airstrip One

Wed Nov 18, 2020 3:52 am Post

nontroppo wrote:Just to mention, the Heading 1 outlining bug is still present in V3.1.4, the output shoud have three "Level 1" sections each [Part], with three "Level 2" sections [Chapter], each with two "Level 3" sections [Scene]. In the Scrivener converter output, "Level 1" Part Two and Part Three are missing:


This issue/bug is still present in V3.2, and though not relevant to Scrivener's converter per se the Aspose output is now also missing level 1 and level 2 headings. That means at present the method of assigning Heading 1-6 styles to section titles to allow proper outlining in DOCX is currently broken in V3.2; unless there is a new way to achieve this.

User avatar
KB
Site Admin
Posts: 20922
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Thu Nov 19, 2020 8:18 pm Post

Sorry, is this a bug in the Aspose conversion only, or in Scrivener's own .docx converter too? I'm confused as this is the Scriv converter thread but you seem to be saying it's the Aspose ones. If it's Aspose, how does RTF do? (Aspose converts from RTF.)
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

User avatar
nontroppo
Posts: 1328
Joined: Mon Mar 05, 2007 5:22 pm
Platform: Mac
Location: Airstrip One

Thu Nov 19, 2020 11:07 pm Post

KB wrote:Sorry, is this a bug in the Aspose conversion only, or in Scrivener's own .docx converter too? I'm confused as this is the Scriv converter thread but you seem to be saying it's the Aspose ones. If it's Aspose, how does RTF do? (Aspose converts from RTF.)


This is an issue in Scrivener's converter, where only the first Level 1 heading gets assigned the "Heading 1" style (and thus Word cannot outline without a styled heading). This applies to V3.14, and remains an issue in V3.2. There is a regression in Scrivener V3.2 in that the RTF (and as a result the Aspose output) now does not get Level 1 or Level 2 headings, only Level 3 headings and you can see the result in the Word outliner in the screenshot here:

Scrivener DOCX Bug.jpg
Scrivener DOCX Bug.jpg (350.88 KiB) Viewed 1605 times


The Scrivener project is available here: viewtopic.php?p=257245#p257245

User avatar
KB
Site Admin
Posts: 20922
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Fri Nov 20, 2020 5:31 pm Post

Thanks. I hope that I have now fixed both issues for 3.2.1.
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

User avatar
nontroppo
Posts: 1328
Joined: Mon Mar 05, 2007 5:22 pm
Platform: Mac
Location: Airstrip One

Sat Nov 21, 2020 1:27 am Post

KB wrote:Thanks. I hope that I have now fixed both issues for 3.2.1.


I can confirm that both DOCX and RTF output now correctly exports all heading styles, thanks!

I am a bit confused by the new Preferences dialog:

Screen Shot 2020-11-21 at 09.18.58_SML.png
Screen Shot 2020-11-21 at 09.18.58_SML.png (34.21 KiB) Viewed 1532 times


As I understood it, there are 3 options: (1) macOS legacy converter. (2) Aspose converter, (3) Scrivener's native converter. The menu gives two options, and I'm not sure how we can select between (2) and (3) using this dialog?

I forget now but I thought the older V3.1.x dialog also gave a bit more opinionated recommendation of which option is "better"? The new dialog doesn't recommend one option over the other, though I think Scrivener's converter is much better than the macOS one, while being faster than the Aspose one (though possibly less "complete")... I almost wonder whether it is better to remove the macOS one (hiding it behind a defaults commandline setting or something)?

A small pedantic GUI text point, .doc is a different format than .docx; the dialog infers it only applies to the legacy .doc format, whereas it applies to both. I suspect most users don't differentiate betweeen the legacy binary and "modern" XML formats (i.e. most users read .docx as .doc) and you are trying to simplify the description, but my geek pedanticism feels obliged to mention it :P

User avatar
nontroppo
Posts: 1328
Joined: Mon Mar 05, 2007 5:22 pm
Platform: Mac
Location: Airstrip One

Sat Nov 21, 2020 2:03 am Post

Ah, it seems I was using another JDK (openjdk that doesn’t symlink into /Library/Java/JavaVirtualMachines/) on my laptop, removing it and installing adoptopenjdk (which does symlink), and everything works:

Code: Select all

brew uninstall openjdk
brew install adoptopenjdk


The standard installer is here: https://adoptopenjdk.net/?variant=openj ... nt=hotspot

Screen Shot 2020-11-21 at 10.01.35.png
Screen Shot 2020-11-21 at 10.01.35.png (27.92 KiB) Viewed 1528 times


This dialog only allows me to choose between (2) and (3) from the previous post, much simpler 8)