<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - DOCX IMPORT: support unit specification for ST_HpsMeasure"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=108408">108408</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>DOCX IMPORT: support unit specification for ST_HpsMeasure
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Keywords</th>
<td>filter:docx
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikekaganski@hotmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=133909" name="attach_133909" title="A test DOCX with text run font size 20 pt">attachment 133909</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=133909&action=edit" title="A test DOCX with text run font size 20 pt">[details]</a></span>
A test DOCX with text run font size 20 pt
The attached file is a sanitized and minimized real-world document.
It has a single text run with text size set to 20 pt. Currently it opens in LO
with text size of 10 pt, i.e. half of defined size.
The size is given using this markup:
<span class="quote">> <w:sz w:val="20pt" /></span >
This is illegal in first OOXML schema edition (i.e. 2007), but legal in later
editions.
The type of the w:sz element is w:ST_HpsMeasure, which in later editions of
standard (e.g. ECMA-376 5th ed. Part 1, 17.18.42) is defined as
<span class="quote">> This simple type specifies that its contents contain either:
> * A positive whole number, whose contents consist of a measurement in half-points (equivalent to
> 1/144th of an inch), or
> * A positive decimal number immediately followed by a unit identifier.</span >
...
<span class="quote">> This simple type is a union of the following types:
> * The ST_PositiveUniversalMeasure simple type (§22.9.2.12).
> * The ST_UnsignedDecimalNumber simple type (§22.9.2.16).</span >
We currently ignore the units specifications, and simply convert the integer
part as it's half-pt measurement.</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>