Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi :)
Bug report time! :)  I think it would be good to see documents get lighter
https://wiki.documentfoundation.org/BugReport

They already compare favourably with documents produced by other office suites but even lighter 
than that would be great
Regards from 

Tom :)  






________________________________
From: Holger Schmithüsen <holger.schmithuesen@awi.de>
To: Tom Davies <tomdavies04@yahoo.co.uk>; anne-ology <laginnis@gmail.com>; 
users@global.libreoffice.org 
Sent: Friday, 16 August 2013, 8:46
Subject: Re: [libreoffice-users] Why does writer create automatic styles for every new element?


Hi,

thanks for the answers so far, however my question isn't answered yet.

@Tom: Well, it's also my plan to stick to using styles. The problem here 
is not the odt-format itself, but it's the somewhat "messy" 
implementation in LibreOffice. As I said, when manually removing direct 
formatting (which hasn't been applied anyway) I get

<text:p text:style-name="Title">This is my title</text:p>
<text:p text:style-name="Text_20_body">This is a text body 
paragraph.</text:p>

in "content.xml", which is straight and clean odt-formatting. However, 
my trouble is the default behaviour of LibreOffice, that it defines all 
those styles "P1", "P2", "T1", ... which are apparently perfectly 
meaningless and unnecessary.

So, who knows how to get rid of this overhead by default? Or should this 
be considered a bug?

Cheers,
Holger


On 08/16/13 01:57, Tom Davies wrote:
Hi :)
I find it easier to stick to using styles and then sometimes edit the 
styles as a i go along.

I don't know of any format that doesn't throw in tons of extra 
formatting.  Rtf is probably the one with the least extra random bits 
of unused code but it's a legacy format that is out dated already.  
Have you compared with the coding in other formats?  I think Odt 
manages to a void a lot of the personal information that gets stored 
in Doc and DocX.  I've not really looked at other formats much.
Regards from
Tom :)


     ------------------------------------------------------------------------
     *From:* anne-ology <laginnis@gmail.com>
     *To:* Holger Schmithüsen <holger.schmithuesen@awi.de>
     *Cc:* users@global.libreoffice.org
     *Sent:* Thursday, 15 August 2013, 19:27
     *Subject:* Re: [libreoffice-users] Why does writer create
     automatic styles for every new element?

           A simple solution - my method - is to merely type whatever
     then add
     whatever options as I go along;
                 this saves time in that I know what's what.

           If you set these templates, then decide that the title should be
     smaller, or wish to set off some quote, or add some footnote, ...
     ... ...
     then you're stuck with whatever the template wants.

           I basically did/do the same thing when writing HTML - in
     fact, now,
     I have quite a lengthy page of HTML code which I apply whenever
     necessary -
     sure saves time having to remember what's what.

           Just some thoughts from the KIS corner  ;-)



     On Thu, Aug 15, 2013 at 9:14 AM, Holger Schmithüsen <
    holger.schmithuesen@awi.de <mailto:holger.schmithuesen@awi.de>> wrote:

     Hi!
     >
     > When I create a new Writer document, each element I enter in the
     document
     > (like a heading or paragraph) adds new elements to
     > <office:automatic-styles> in "content.xml", even though I do not
     use any
     > direct formatting. So, selecting style "Title", entering the
     title, then
     > selecting "Text Body" and entering a paragraph creates the following
     > automatic styles in "content.xml":
     >
     > <office:automatic-styles>
     > <style:style style:name="P1" style:family="paragraph"
     > style:parent-style-name="Text_**20_body">
     > <style:text-properties officeooo:paragraph-rsid="**00063317"/>
     > </style:style>
     > <style:style style:name="P2" style:family="paragraph"
     > style:parent-style-name="**Title">
     > <style:text-properties officeooo:paragraph-rsid="**00063317"/>
     > </style:style>
     > <style:style style:name="T1" style:family="text">
     > <style:text-properties officeooo:rsid="00063317"/>
     > </style:style>
     > </office:automatic-styles>
     >
     > and the actual content:
     >
     > <office:body>
     > <office:text>
     > <text:p text:style-name="P2"><text:**span
     text:style-name="T1">This is my
     > title</text:span></text:p>
     > <text:p text:style-name="P1"><text:**span
     text:style-name="T1">This is a
     > text body paragraph.</text:span></text:**p>
     > </office:text>
     > </office:body>
     >
     > Now, I can delete the unwanted direct formatting by clicking
     "Format -
     > Clear direct formatting". Then, the content looks as nice and clean:
     >
     > <text:p text:style-name="Title">This is my title</text:p>
     > <text:p text:style-name="Text_20_body"**>This is a text body
     > paragraph.</text:p>
     >
     > However, this removal of unnecessary direct formatting is not very
     > appropriate, as I sometimes do have direct formatting (a
     subscript for
     > instance).
     > Is it possible to suppress Writer's behaviour of defining those
     > meaningless automatic styles? And if not, is it possible to get
     rid of only
     > the meaningless direct formatting, i.e. those <style:style>
     elements, that
     > do not contain any formatting attributes?
     >
     > I'm using LibreOffice Version 4.0.3.3.
     >
     > Thanks for your help,
     > Holger
     >
     >

     -- 
     To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
     <mailto:unsubscribe@global.libreoffice.org>
     Problems?
    http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
     Posting guidelines + more:
    http://wiki.documentfoundation.org/Netiquette
     List archive: http://listarchives.libreoffice.org/global/users/
     All messages sent to this list will be publicly archived and
     cannot be deleted




-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.