<div dir="ltr"><div><br></div><div>Hi Michael,</div><div><br></div><div>I am sorry I didn't cc libreoffice list in the previous email. I think</div><div>having this on the public list might be of use to other new people similar to</div>
<div>me. (I have no issues discussing this privately, I'm afraid I am not yet</div><div>sure of the culture here.)</div><div><br></div><div>On Tue, Jun 26, 2012 at 1:48 PM, Michael Meeks <<a href="mailto:michael.meeks@suse.com">michael.meeks@suse.com</a>> wrote:</div>
<div>> I guess for de-bloating; we want to first poke at the 'ott' files in</div><div>> extras/:</div><div>></div><div>> du -m | sort</div><div>></div><div>> in there shows:</div>
<div>></div><div>> 41 ./source/templates/wizard</div><div>> 53 ./source/templates</div><div>></div><div>> Which I guess shows a good place to start: the wizards are big bloated</div><div>>users of templates. The wizards/ code is in wizards/ :-)</div>
<div><br></div><div>Yes I checked, a lot of savings can be made here.</div><div><br></div><div>> It would be great to see if we can adapt that to use a flat ODF file</div><div>> instead - try saving the template as a .fott (if that works, or .fodt if</div>
<div>> not), and add some goodness to to the flat ODF filter ( initially to</div><div>> prototype it, just hack some translation support directly into the code</div><div>> I suggest in filter/source/odfflatxml/ ).</div>
<div><br></div><div>I saved one template (for two different languages) as .fodt and did a diff. As</div><div>expected only a handful were changing. </div><div><br></div><div>> We really want to compress all the pointless language differences in</div>
<div>> those templates out into just a few translated strings / attributes that</div><div>> we can annotate and replace on load.</div><div><br></div><div>If I understood you correctly, the plan is to use one base fodt with placeholders</div>
<div>for the attributes and values which change, and then substitute the appropriate</div><div>values when the template is loaded. So those strings alone should be hard coded</div><div>or kept in another file.</div><div><br>
</div><div>> That will (I hope) give us more space for translations & dictionaries</div><div>> and/or a smaller download & install :-)</div><div><br></div><div><br></div><div>The .fodt file had a size around 153 kb, and the individual .ott files were </div>
<div>around 23 kb (for the template I chose), so 23 kb * 23 languages = 529 kb,</div><div>so we cut around 71% :-)</div><div><br></div><div>> Does that make sense ?</div><div><br></div><div>Did I understand you correctly?</div>
<div><br></div><div>I'll now see what I can do in filter/source/odfflatxml/ </div><div><br></div><div>Thanks and regards.</div><div><br></div><div>- Jesso Clarence </div></div>