Issue 46089 - Font properties of complex script text lost when saved to Word XML format
Summary: Font properties of complex script text lost when saved to Word XML format
Alias: None
Product: Internationalization
Classification: Code
Component: code (show other issues)
Version: 680m87
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: oooqa
Depends on:
Blocks: 41707
  Show dependency tree
Reported: 2005-03-27 12:44 UTC by jjc
Modified: 2017-05-20 11:13 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Original .odt file created with Writer (6.02 KB, application/vnd.oasis.opendocument.text)
2005-03-27 12:45 UTC, jjc
no flags Details
The XML file when saved from Writer as Word 2003 XML. (7.06 KB, text/xml)
2005-03-27 12:46 UTC, jjc
no flags Details
Manually hacked version of the XML file that works for Word 2003 (7.17 KB, text/xml)
2005-03-27 12:48 UTC, jjc
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jjc 2005-03-27 12:44:08 UTC
1. Create a new document in Writer (with CTL support enabled)
2. In Format|Character, set the CTL font to be "Cordia New", 16 point, Thai.
3. Type something including Thai text.
4. Save the document as Microsoft Word 2003 XML format
5. Open the XML document in Word 2003.  I tried both Thai edition and the freely
downloadable Word Viewer 2003.
6. Observe that the Thai text is Angsana New, 12 point.  Neither the font nor
font size have been preserved.

I found the minimum changes needed to the XML to get the font properties to be
properly recognized by Word were as follows:

a) Split the text into runs, so that characters from different scripts are in
different <w:r> elements.

b) Give the <w:r> elements that contain complex text characters a property of

c) Add a paragraph property for the complex text point size <w:sz-cs w:val="32"/>.
Comment 1 jjc 2005-03-27 12:45:38 UTC
Created attachment 24308 [details]
Original .odt file created with Writer
Comment 2 jjc 2005-03-27 12:46:41 UTC
Created attachment 24309 [details]
The XML file when saved from Writer as Word 2003 XML.
Comment 3 jjc 2005-03-27 12:48:22 UTC
Created attachment 24310 [details]
Manually hacked version of the XML file that works for Word 2003
Comment 4 arthit 2005-03-27 13:32:50 UTC

changed priority to P2
- Data loss (font information)
- Basic functionality is not working correctly (file export)
Comment 5 andreas.martens 2005-03-29 13:37:48 UTC
Please check if it's a duplicate to issue #42909.
Comment 6 arthit 2005-03-29 16:48:53 UTC
in general, it may.

the main difference:
- issue #46089 (this) - font info losses
- issue #42909 - language info losses
Comment 7 jjc 2005-03-30 01:00:21 UTC
This is definitely different from issue #42909.  This is about .xml format.
#42909 is about .doc format.
Comment 8 andreas.martens 2005-05-25 14:38:08 UTC
Considering the effort, the priority, the risk and our resource planning I've to
retarget this issue to OOo Later.
Comment 9 Mathias_Bauer 2006-08-30 15:29:06 UTC
assigning to hbrinkm
Comment 10 kanupriya 2009-09-14 15:37:02 UTC
Issue : Not able to retain document of type Windows 2003 XML in user selected 
text format style.

Reproduced: yes

Configuration Used : 

     OS                 ->    Windows Vista
     RAM Used           ->    4 GB  

Build Used:     OpenOffice Version 3.3.1

Steps to Reproduce:

  1> Open OpenOffice
  2> Click File->New->Text Document
  3> Write few lines into the newly created file.
  4> Select few lines of file and click Format->Character
  5> Change the font style as (Arial + Bold) and note it somewhere.
  6> Save the file by selecting type as windows 2003 XML.
  7> Note that there will be message that the type has been selected for this 
document other than *.odt
  8> Open the previosuly saved file and note that the text is in Arial but not 
in Bold.


 1> Noticed that this happens with regular english language and it saves some 
character format setting like
when I selected Bold + Italic + Underline then it was able to retain Underline 
format setting but not the bold and

2> In order to reproduce this issue open the file in another window dont reopen 
in the same window where the 
file is already open.

3> While saving in the Windows 2003 XML type there is a pop-up message which 
states that "use the latest ODF file
format and be sure all formatting and content is saved correctly". 

Please note that does it mean its acceptable with the
selected type tp loose formatting. 

Comment 11 Marcus 2017-05-20 11:13:26 UTC
Reset assigne to the default "".