The word count that the iOS app shows when I compile my manuscript is several hundred words higher than what the Mac version shows. (My total is only ~2,000 so this is a significant percentage off.)
How can I get Scrivener to agree with itself?
The word count that the iOS app shows when I compile my manuscript is several hundred words higher than what the Mac version shows. (My total is only ~2,000 so this is a significant percentage off.)
How can I get Scrivener to agree with itself?
The most likely reason for the disagreement is that one version is including words that the other is not. Which version do you want to use to produce your final output document?
Iāll be using the Mac version to compile, and I consider it the āauthoritativeā version when the two apps disagree.
Whether a document is part of compilation is inherent to the document itself, right? That is, if my apps are in sync, the same document with be included in both? (As opposed to each app having its own independent list of which documents to include.)
The Compile commands are completely independent between the two versions. The āInclude in Compileā flag is assigned to the document and will transfer, but not the setting that determines what the application does with that information.
For instance, the Mac version might have a Section Layout that includes only the title of an āincludedā document, not the body text.
Okay, cool, that matches how I thought those settings worked, thanks!
iOS reports 2,821 words when I compile.
Mac reports 2,344 words when I hover over the search area, when I view the project statistics, and also when I insert <$wc>
.
The iOS app has only one compilation setting, āRemove commentsā, which is checked.
The Mac appās āCompiledā tab in the Project Settings window has āAccurate (slower)ā selected, and the āCompiled Statistics Optionsā are set like this:
Checked:
Unchecked:
The Mac app also has many compilations settings, as Iām sure you know. Here are the ones that seem most likely to be relevant:
Checked:
Unchecked:
My project has no annotations, footnotes, struck-through text, or back matter.
My project has a single comment right now, which is 22 words. Since both app versions are set to remove comments, and itās not anywhere close to the mystery 477 extra words, this doesnāt seem to be the culprit.
My front matter is just the Scrivener default documents, so even if you added up the word count for all of it, itās only 38 words (and I donāt see any front matter when I compile on either platform). Nevertheless, I tried unchecking all front matterās āInclude in compileā setting. As expected, that made no difference in the iOS word count.
I also tried unchecking āShow titles in Scriveningsā in the Mac app, but (as expected) that didnāt have any effect on the iOS compilationās word count, either.
So Iām really stumped as to where iOS is finding an extra 477 words!
As for version numbers, Iām running Mac v3.2.3 (14869) on Big Sur (11.6), and iOS v1.2.1 (2096) on 14.6 (a 1st-gen SE, not that it should matter).
If you compare the actual output files, are they the same? If you open them both in a third party editor, do you get the same count?
Getting closer! Thank you! So, you were right from the beginning that scene titles are showing up in iOS but not in Mac.
However, thereās still a couple issues I donāt understand how to work around:
If I add scene titles to the Mac compile (to match iOS), the new āProject Statistics > Compiledā word count becomes 2,946 āwhich is now higher than what the iOS word count reports. Even more confusing, the āhover over the search areaā word count is still 2,344.
I donāt see how to remove scene titles from the iOS compile. Is there a way to exclude titles from the iOS compile (and word count)?
The iOS compile includes āāā between sections, but the Mac compile does not. Iām not sure where this is coming from or if itās possible to change/remove it, or whether it counts as a āwordā?
What settings affect the Mac word count that shows when you hover over the search area?
Maybe if I can figure out how that differs from the word count in āProject Statisticsā for my compiled documents, that will lead me in a helpful directionā¦
Again, what are the actual contents of the Compiled document, and what is the count from a third party editor?
The count in the Quick Search bar is based on your progress toward the Draft Target. Options for what should be counted can be found by clicking the Options button in the Project ā Show Project Targets pane. The correspondence between this value and the actual contents of your output document will depend on your Compile settings, particularly whether specific documents in the Draft folder are included, and what your Section Layout specification includes.
Likewise, you should have a look at the options in the Project ā Project Statistics pane.
Section 20.1 in the manual explains the statistics tools in detail.
The suspense is killing me. Look at the compile output on ios! A difference of 477 additional words in the output will be very apparent to you and then you will know where it is coming from.
But also, is your project synced via Dropbox between the two machines, and is that sync between them actually up-to-date? (Also, you know not to have both copies open at the same time during this investigation, I hope and trust.)
tl;dr ā The iOS compilation seems to inconsistently(?) include some scene titles but not others.
As I mentioned above, scene titles were showing up in iOS but not in Mac, which accounted for most of the 477-word difference.
But after I modified the Mac appās Section Layout settings to include scene titles, the word counts became more different (ie, different parts of Mac Scrivener stopped agreeing with itself, much less iOS).
Yup, Iāve been extremely careful about this! But thanks for making sure.
I used Scrivener 2 a long time ago, so I knew that I needed to be careful to never have both Mac & iOS apps open at the same time, and to make sure that Dropbox has finished syncing before opening Scrivener. Iāve been pretty paranoid about this, in fact.
Now for a deep diveā¦
The iOS compilation adds 56 ā
separators between scenes, which the Mac compilation does not have.
Here are my word counts today, calculated various ways:
ā
separatorsā
separators, counted by āwcāSo at least one mystery is solved: the Mac appās āhover over search areaā and āproject targetā word counts use the āestimate (fast)ā word count algorithm, even when the āproject statisticsā is set to use āaccurate (slower)ā. This doesnāt seem to be configurable, but at least I understand why itās different now.
Taking into account the ā
separators, the Mac vs iOS compilations differ by ~124 words, which ends up being due to some scene titles missing from the iOS compilation.
But!! The strange thing is, the iOS compilation includes some scene titles but not others, and I canāt identify anything unique about the ones that do vs donāt.
Hereās a subset of my projectās structure, which illustrates what Iām seeing:
š Draft
āāā š PartFoo ā
ā āāā š SceneA ā
ā āāā š Chapter1 ā
ā ā āāā š SceneB ā ļø
ā ā āāā š SceneC šØ
ā āāā š Chapter2 ā
ā āāā š SceneD šØ
āāā š PartBar ā
āāā š SceneE ā
āāā š Chapter3 ā
āāā š SceneF šØ
Legend
Each of the problematic scenes do have the āInclude in Compileā option checked (I checked in both Mac & iOS apps, just to be sure). All the scenes exist in the binder in iOS, but some scene titles just wonāt show up in the iOS compilation.
So the remaining mystery: Why do some scene titles appear in the iOS compile, but others do not?
This is for performance reasons. The āaccurateā algorithm actually compiles the project, which can take quite a bit of time for large projects.
Itās too bad thereās no setting to let me choose which algorithm (perhaps because I have a powerful machine, or a small project, or I donāt care if it takes a while), but yeah, it does make sense!
The inconsistent scene titles in the iOS compilation, however, still donāt make sense.
A clue can be found in that all of the āmissingā titles are at the same level of the outline. I admit Iāve used the iOS Compile command less than the Mac command, but I suspect the problem is that the Appearance settings on iOS donāt include Level 3 titles. (Which in fact the default does not.) For information about changing Appearance settings, see the Compiling Your Draft section of the iOS Scrivener Tutorial project.
the problem is that the Appearance settings on iOS donāt include Level 3 titles
Huzzah! This was the last missing piece, thank you.
I had not noticed the Edit
button in the screen for selecting iOS compile formats. I duplicated āModernā and then modified it from the original:
Document Separator: "ā"
Folder Titles:
Level 1: <$title>
Level 2: <$title>
Text Titles:
Level 1: <$title>
Level 2: <$title>
to this instead:
Document Separator: ""
Folder Titles:
Level 1: <$title>
Level 2: <$etc>
Text Titles:
Level 1: <$title>
Level 2: <$etc>
And now the scene titles all appear like I wanted! Thank you for your help & patience!