Created attachment 50701 [details] Replacement for en-US: autotext\lang\en-US\standard.bau Hello, AutoText "numbered formula" in Writer suffers from two points that I like to raise, with their solutions: - OOo issue 75665 http://openoffice.org/bugzilla/show_bug.cgi?id=75665 inserted formula is pre-formated with text in italic which is not the default behavior. => in standard.bau, you should modify: standard.bau\FN\Obj0012D655\settings.xml : remove lines 12 and 13 <config:config-item config:name="FontTextIsItalic" config:type="boolean">true</config:config-item> <config:config-item config:name="FontVariablesIsItalic" config:type="boolean">true</config:config-item> - a space character is inserted after the formula => file standard.bau\FN\content.xml is wrong formated: a carriage return should be removed before </text:p> (line 48), so that lines 47 and 48 should be only one line: <text:p text:style-name="P1"><draw:object draw:style-name="fr1" draw:name="Objekt4" text:anchor-type="as-char" svg:x="0cm" svg:width="1.496cm" svg:height="0.577cm" draw:z-index="1" xlink:href="#./Obj0012D655" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/></text:p> This modification should be adapted to each locale: the name of the autotext may differ with locale, as well as directory name of the formula. Standard.bau is unzipped, modified, rezipped, and attached to this bug for each locale.
I'm unable to unzip for bg locale, probably due to complex language. (I'm using fr WinXP operating system)
Created attachment 50703 [details] Replacement for cs: autotext\lang\cs\standard.bau
Created attachment 50705 [details] Replacement for da: autotext\lang\da\standard.bau
Created attachment 50706 [details] Replacement for da: autotext\lang\da\standard.bau (corrected) I went too fast with previous da attachment. This one replaces previous one.
Sorry, I made a mistake (one more) when reziping standard.bau. Next ones should be correct.
Created attachment 50708 [details] Replacement for en-US: autotext\lang\en-US\standard.bau (zip OK) corrected zip directory
Created attachment 50709 [details] Replacement for cs: autotext\lang\cs\standard.bau (zip OK) Corrected zip directory
Created attachment 50710 [details] Replacement for da: autotext\lang\da\standard.bau (zip OK) Corrected zip directory
Created attachment 50711 [details] Replacement for de: autotext\lang\de\standard.bau
Created attachment 50712 [details] Replacement for en-GB: autotext\lang\en-GB\standard.bau
Created attachment 50713 [details] Replacement for es: autotext\lang\es\standard.bau
Created attachment 50714 [details] Replacement for eu: autotext\lang\eu\standard.bau
Created attachment 50715 [details] Replacement for fr: autotext\lang\fr\standard.bau
Created attachment 50716 [details] Replacement for hu: autotext\lang\hu\standard.bau
Created attachment 50717 [details] Replacement for it: autotext\lang\it\standard.bau
ja seems already correct.
Created attachment 50718 [details] Replacement for km: autotext\lang\km\standard.bau
Created attachment 50719 [details] Replacement for ko: autotext\lang\ko\standard.bau Correction different from other locales. Must be checked.
Created attachment 50720 [details] Replacement for mn: autotext\lang\mn\standard.bau
Created attachment 50721 [details] Replacement for nl: autotext\lang\nl\standard.bau Correction different from other locales. Must be checked.
Created attachment 50723 [details] Replacement for pl: autotext\lang\pl\standard.bau Correction different from other locales. Must be checked.
Created attachment 50725 [details] Replacement for pt: autotext\lang\pt\standard.bau
Created attachment 50726 [details] Replacement for pt-BR: autotext\lang\pt-BR\standard.bau Correction different from other locales. Must be checked.
Created attachment 50727 [details] Replacement for ru: autotext\lang\ru\standard.bau
Created attachment 50728 [details] Replacement for sk: autotext\lang\sk\standard.bau
Created attachment 50729 [details] Replacement for sl: autotext\lang\sl\standard.bau
Created attachment 50730 [details] Replacement for sv: autotext\lang\sv\standard.bau
Created attachment 50731 [details] Replacement for zh-CN: autotext\lang\zh-CN\standard.bau Correction different from other locales. Must be checked.
Created attachment 50732 [details] Replacement for zh-TW: autotext\lang\zh-TW\standard.bau Correction different from other locales. Must be checked.
Some locale had already modify the original autotext, and some different corrections were made to obtain the same result. These locales are indicated in the comments of the attachment.
Hello French version tested with XP and Libo 3.3.4 and 3.4.3rc1 I confirm the proper functioning Thank you for this contribution Best Regards Pierre-Yves
Some of the originals had empty mimetype entries, those are retained, but moved around, which made me wonder about http://www.jejik.com/articles/2010/03/how_to_correctly_create_odf_documents_using_zip/ but on the other hand, lots already don't have an empty mimetype, so it doesn't appear to matter.
committed all of these as http://cgit.freedesktop.org/libreoffice/core/commit/?id=c2f9ddfb7fd967ac785253105bd01cb2674c1682 I also rezipped the bg entry to fix its checksums, which I think was the problem, committed as http://cgit.freedesktop.org/libreoffice/core/commit/?id=2715e0482323f6f2b7369761b700c1a0b9a5c974 http://cgit.freedesktop.org/libreoffice/core/plain/extras/source/autotext/lang/bg/standard.bau?id=2715e0482323f6f2b7369761b700c1a0b9a5c974 for direct download of that one if you want to have another go/look at it
Created attachment 50780 [details] Replacement for bg: autotext\lang\bg\standard.bau Modification must be checked.
All my submissions will be licensed LGPLv3+/MPLv1.1 combo unless I say otherwise.
http://cgit.freedesktop.org/libreoffice/core/commit/?id=5849ca749a262a4e4e42f019aa78275f23be5fdc great thanks, that's a painful task to undertake. In my dream-world all those files get stored in git unpacked, and the build packs them up into the final .bau, that would make modifying them much easier.