<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - Decimal font size with comma (12,0pt) in French changes to font 10 times bigger (120pt)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116541">bug 116541</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTOURBUG
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - Decimal font size with comma (12,0pt) in French changes to font 10 times bigger (120pt)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116541#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - Decimal font size with comma (12,0pt) in French changes to font 10 times bigger (120pt)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116541">bug 116541</a>
              from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
        <pre>(In reply to Matt from <a href="show_bug.cgi?id=116541#c0">comment #0</a>)
<span class="quote">> Not sure if this is a real bug or not, so please bear with me. 
> I'm generating an .odt file in another program. It writes style info to the
> styles.xml file with font size printed as %.1f, thus, for instance:

> <style:text-properties fo:font-size="28,0pt" fo:font-weight="bold"
> style:font-size-asian="28,0pt" style:font-weight-asian="bold"
> style:font-size-complex="28,0pt" style:font-weight-complex="bold"/></span >
That's primarily a bug in the other program. It must not write values with
localized separators to XML. See xmlschema-2 that defines period ('.' full
stop) as decimal indicator.

<span class="quote">> Notice 28,0pt three times. If I open this in Loffice writer, it blows the
> font up to 280pt. Like it ignores the comma.</span >
It probably does, because comma is a group (aka thousands) separator.

<span class="quote">> The comma is generated by
> printing library as it observes the French locale.</span >
Which is wrong.


<span class="quote">> To test this, I generated a small writer file from Loffice run in French
> mode, put in some text at 28pt, saved it, unzipped the .odt, changed the
> font from 28pt to 28,0pt, and rezipped the .odt file (zip -r). Loffice
> claims that the file is corrupted when I load it.</span >
Instead of re-zipping, freshen the zip (zip -f) with the changed file. Rezip
may change the order and compression of files, but the mimetype file has to be
very the first file in the zip and not be compressed.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>