I am using File-Import to import a Word docx file.
A test document containing nothing but Headings, with no intervening text at all, imports the Headings correctly,
So if the Word doc has the structure just below, with Headings that contain no non-Heading styles between each Heading instance (an entirely abnormal test document), then when the file is imported the Styles are recognized, the formatting is applied, AND (this is crucial) as the cursor moves between those lines, the Styles are indicated in the Style panel and in the toolbar Style field.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5.
But if there IS content between the Headings, even if that content is nothing but the default Normal text style (as in the structure that follows), the importing of Styles becomes inconsistent. Note that when I refer to Styles, I am talking about actual Styles, that show up in the Style Panel AS Styles, and not merely the underlying formatting of the text, which is retained consistently. But of course while “formatting” may be spoken of as a text “style,” is not the same thing as an actual “Style.” (This adds to the difficulty of consistently describing what is going on, much less figuring out actual program inconsistencies.)
Heading 1
Normal text. Normal text.
Heading 2
Normal text. Normal text.
Heading 3
Normal text. Normal text.
Heading 4
Normal text. Normal text.
Heading 5.
Normal text. Normal text.
The inconsistency seems like it may be related to the presence of blank lines of Normal immediately before or after the Heading (such as if you pressed Enter twice for increased spacing), but even that pattern seems inconsistent.
I have imported an actual realworld, non-test file that uses Headings 1 -5 and Normal, and sometimes the styles are imported correctly and sometimes they are not.
IMPORTANT TO NOTE: In these tests I am using the plain File-Import, and the styles are imported with the inconsistency described above. But when using the much more useful Import and Split function, although the document is correctly split according to the outline defined by the Headings, and the underlying formatting attributes are retained, the “Styles” themselves are not, and all text, regardless its formatting, is shown as No Style. This is consistent with Import and Spit, and means that in order to retain the Styles of a long imported document AND distribute that doc into individual Binder docs, it needs to be manually split at each Style instance – which is made more cumbersome by the fact that even with a straight Import, the Styles are imported inconsistently.
What is the best method for importing an existing, actual, non-test Word document and have it consistently retain not just the text formatting but the actual paragraph “Styles” for Headings and Normal?
Is this an unreasonable expectation?