filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c90c1d4435a64531e1d9b41d0a8dc0b91ba236cd
Author:     Justin Luth <justin.l...@collabora.com>
AuthorDate: Tue Dec 31 16:56:03 2024 -0500
Commit:     Justin Luth <justin.l...@collabora.com>
CommitDate: Wed Jan 1 18:10:51 2025 +0100

    tdf#164201 docx convert-to: prefer Word 2010–365 Document, not 2007
    
    This was made more prominent by mstahl's 7.6
    commit e66ddcd4b66923bc835bd7c5f5c784a809a420a2,
    which rightly forced the compatibilityMode to 12 for Word 2007 exports.
    
    The context here is running a command-line
        soffice --convert-to docx myfile.odt
    which was creating a compat12 Word 2007 DOCX
    instead of a compat15 Word 2013+ DOCX.
    
    Filtercache registers valid conversion types in a seemingly random order
    "but if it's a 'Preferred' one - set it to the front of the list.
     Of course, multiple 'Preferred' registrations can occur
     (they shouldn't, but they can!) ..."
    
    For DOCX, both writer_MS_Word_2007_XML and writer_OOXML
    say that they are the preferred one,
    and since Word 2007 was processed last, it won.
    
    However, since 2020 we have preferred exporting as compat15 (2013+)
    so make the modern format the preferred filter.
    
    [I looked for more "multiples", but more often than not,
     NOTHING is set as the preferred entry, so first come first served.]
    
    Change-Id: I2e4c95520619e0aa2e1f0d8ae5e8928d0033902e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179588
    Reviewed-by: Justin Luth <jl...@mail.com>
    Tested-by: Jenkins

diff --git a/filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu 
b/filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu
index 11396057a026..e163be7cafa2 100644
--- a/filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu
+++ b/filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu
@@ -20,7 +20,7 @@
         <prop oor:name="URLPattern"/>
         <prop oor:name="Extensions"><value>docx</value></prop>
         <prop oor:name="MediaType"><value>application/msword</value></prop>
-        <prop oor:name="Preferred"><value>true</value></prop>
+        <prop oor:name="Preferred"><value>false</value></prop>
         <prop oor:name="PreferredFilter"><value>MS Word 2007 XML</value></prop>
         <prop oor:name="UIName"><value xml:lang="en-US">Word 
2007</value></prop>
         <prop oor:name="ClipboardFormat"><value>MSWordDoc</value></prop>

Reply via email to