View Single Post
Old 04-26-2017, 10:56 AM   #53
elibrarian
Imperfect Perfectionist
elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.
 
elibrarian's Avatar
 
Posts: 466
Karma: 724664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
I just couldn't resist - so here are my findings:

I think I've found the explanation. Whenever you apply some formatting - be it by keyboard shortcuts, setting a style or by a macro/vba program/whatever - Word (2013/2016, I'm on 2016) internally resets the style to the "DefaultParagraphFont" or in french, "Policepardfaut" style, before applying the new style. This is not visible to the naked eye, but you will see it when exporting to .odf and importing in Sigil (you can see something similar when exporting to unfiltered .htm and even in the internal .xml, if you feel brave enough to unzip a .docx-file and analyse the contents).

The DefaultParagraphFont (which is not the msoNormal-style as I asumed in a previous post) is special, and does not behave like any other (ordinary) style. It's normally hidden (in 2013/2016 anyway), and it can't be deleted. It's used for resetting text more or less to the bare necessities used in the actual paragraph.

There's an article concerning the DefaultParagraphFont here:

http://word.mvps.org/faqs/customization/DefParaFont.htm

with a link to an article about customizing the standard settings for the various Word versions up to and including 2016.

I enclose a couple of screenshots (please substitute "Policepardfaut"/"Defaultparagraphfont" for "Standardskrifttypeiafsnit". The first one is the unedited word file (I've used Roger Farney: Les Anekphantes from "Ebooks libres et gratuits"), exported to odt and imported in Sigil using the ODTImport 0.3.1 plugin by Doitsu. In shot nr. 2 I've done a little editing in the original word document before exporting (setting bold and italics using a style in the first paragraph and using keyboard shortcuts in the next). The third is an unfiltered htm-export from the same Word-document used as source for no. 2 (- just for the sake of illustration)

Click image for larger version

Name:	policepardefault_1.jpg
Views:	271
Size:	67.3 KB
ID:	156378

Click image for larger version

Name:	policepardefault_2.jpg
Views:	294
Size:	70.7 KB
ID:	156379

Click image for larger version

Name:	policepardefault_3.jpg
Views:	263
Size:	69.4 KB
ID:	156380.

So it seems you can't avoid the "Policepardefault" in the Word-exports to ODT (I tried importing some of the odt-files from "Ebooks libres et gratuits", and the "Policepardfaut" are also found in some of them, as is also seen in screenshot no. 1) The best solution - since the source of the problem isn't your template or the VBA-macro, but Word itself - is probably making a saved regex in Sigil and run it on all html-files before doing anything else.

Regards,

Kim

Last edited by elibrarian; 04-26-2017 at 12:57 PM. Reason: Typos
elibrarian is offline   Reply With Quote