[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-07-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #10 from Shai Petel sha...@gmail.com ---
I can confirm this happens to me with Office 2013, and I think I know why and
what was changed.
Hope this can help:

I cracked open the docx file and noticed this behaviour,
text using any one of the theme fonts (current them my word was set to) is
rendered incorrectly.

Any words using a font outside of my theme - was rendered correctly.

I noticed in the document.xml inside the docx file, that fonts outside of my
theme had the font name in them, example:
w:rFonts w:ascii=FrankRuehl w:hAnsi=FrankRuehl w:cs=FrankRuehl/

While fonts from my theme, had one of these:
w:rFonts w:asciiTheme=majorBidi w:hAnsiTheme=majorBidi
w:cstheme=majorBidi/
or w:rFonts w:asciiTheme=minorBidi w:hAnsiTheme=minorBidi/

Now, when you go to sub folder theme and open theme1.xml you can find the
definition of the major and minor theme to use.

There is a font scheme set with the majorFont table and minorFont table, this
is where it gets complex: the major or minor font is not a single font, but a
list of fonts per language. So, each language has it's own major/minor font,
and one of them is set to the default.


I believe this is a new format change in office 2013, which omits the font name
from the document and points to the theme file.

I vote for making this high priority, since with people starting to work on
office 2013 more and more - this will become a huge disadvantage for using
LibreOffice.

I can help with providing office 2013 test machine if you guys need me to test
something.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-07-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #11 from Shai Petel sha...@gmail.com ---
Created attachment 82600
  -- https://bugs.freedesktop.org/attachment.cgi?id=82600action=edit
File with Hebrew text example of the problem. Only one word uses a non theme
font that works

Note in this file example, each word uses different font from the default
theme.
They should be Ariel or Times New Roman - instead they appear wrong.

Only the word in the middle of the second row uses a custom non-theme font and
this is the only one displayed correctly. It uses FrankRuehl font.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-07-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

Shai Petel sha...@gmail.com changed:

   What|Removed |Added

   Severity|normal  |major
   Priority|medium  |high
 CC||sha...@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-07-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #12 from Adam CloudOn rattles2...@gmail.com ---
(In reply to comment #10)
 I can confirm this happens to me with Office 2013, and I think I know why
 and what was changed.
 Hope this can help:
 

Your analysis looks exactly like mine, so I guess we are both right ...
LibreOffice does not support 'Themes' for now... 
I agree this should be supported and vote '+1' to mark it as 'major'.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #9 from Adam CloudOn rattles2...@gmail.com ---
I have investigated what happens here, and this is what I *think* happens:

The DOCX file I have attached has a tag called :

w:rFonts w:asciiTheme=majorBidi w:hAnsiTheme=majorBidi
w:cstheme=majorBidi/

this tag means 'run fonts', and what I understand from investigation is that it
determines the default font used for the run (in case no specific font is set).

There are 2 ways of doing so:
setting the 'ascii', 'hAnsi', 'cs' and 'ea' attributes 
OR
setting the 'asciiTheme', 'hAnsiTheme', 'cstheme' and 'eaTheme' attributes.

for example:
- if you set 'w:ascci=Tahoma' than this means that any ascii text in the run
that has no font set to it will be rendered in Tahoma.
- if you set 'w:cs=Tahoma' than this means that any complex-script text (e.g.
Hebrew or Arabic) in the run that has no font set to it will be rendered in
Tahoma.

On the other hand, you have 'asciiTheme' and 'cstheme' and so on, and this is
where it gets tricky.
'w:csTheme=majorBidi' means that Word will go to the 'settings.xml' file - look
for the 'w:themeFontLang' tag, and look for the 'bidi' attribute.
In the attached file this is the tag:
 w:themeFontLang w:val=en-US w:eastAsia=zh-CN w:bidi=he-IL/

Word will then go to the 'theme1.xml' file and look for the 'majorFont' tag.
After finding it - it will look for the 'Hebr' tag (because bidi was 'he-IL'
which is Hebrew). There is will see that the typeface for 'majorFont' in the
language 'Hebrew' is Times New Roman, and this means that for every
complex-script text in the run - it will be rendered in Times New Roman.

The same goes for 'asciiTheme', with one difference - all the text in the run
that is simple ascii - will be rendered in 'Times New Roman'.


How can you verify this ?

If you go to the 'theme1.xml' file and change the typeface for 'majorFont' 
'Hebr' to 'Tahoma' you will see Word shows the font of the text in 'Tahoma'.


My conclusion after this (long) comment is that there is probably a problem in
the mechanism that imports the theme  settings information from the DOCX.

In addition - it seems that LO sets these attributes to  (empty string) when
it saves back to DOCX, which Word probably doesn't like...

I hope this helps.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

Joel Madero jmadero@gmail.com changed:

   What|Removed |Added

 Status|NEEDINFO|NEW

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

Joel Madero jmadero@gmail.com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 CC||mst...@redhat.com
 Ever confirmed|0   |1

--- Comment #6 from Joel Madero jmadero@gmail.com ---
Windows 7
LibreOffice Version 4.0.2.2 release

++

Confirmed

New (confirmed)
Major - not good, seems like MSO has changed something about their docx
formatannoying from our end but still we shouldn't be making MSO think that
we broke their files
High


In the future please try to keep bug reports separate :) This is in fact 2
related bugs (and possibly the same root cause but I'm not sure). 


For now will keep as one and cc writer expert.


Thanks for reporting!

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

Joel Madero jmadero@gmail.com changed:

   What|Removed |Added

   Hardware|Other   |All
 OS|Windows (All)   |All

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #7 from Gerry gerry.trep...@googlemail.com ---
@Adam: Is it possible that your original file has a formatting error? Opening
your test docx-file in Word 2010 I see that the font name is 

Times New Roman (Headings CS)

I do not exactly know how it came in the Word 2013 file, but I think
LibreOffice replaces this unknown font with something else. Of course, it
should replace it with Times New Roman instead of a completely different
font.

On the other hand, could you please investigate with your Word 2013
installation how this ...(Heading CS) came into the font name?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

Joel Madero jmadero@gmail.com changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #8 from Joel Madero jmadero@gmail.com ---
Gerry - great catch

Marking as NEEDINFO.

I tried reproducing with a blank document and could not. My default font is
Calibri(body). When I save the document and open with LibreOffice it opens and
has font set as Calibri.

I then saved a copy of the document from LibreOffice to docx format (2007/2010)
-- probably should add 2013 to this -- and opened the document successfully
with Word with no issues.


I think this is a problem with that font choice, and it's likely that it's
notourbug. Please confirm this and then we can mark the bug as INVALID.


Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #3 from Joel Madero jmadero@gmail.com ---
the file is not corrupt - Microsoft Office only supports an older version of
open standards (ODF), so when you try to save with the new standards which is
default for LibreOffice it doesn't know what to do and says there is an error -
quite tricky on Microsoft's part to say the least - especially if MSO 2013 is
still doing this. This was well known with 2007 and 2010, it's unfortunate that
they are still trying to blame their lack of support on the file itself (thus
blaming corrupt file, vs. sorry we don't support this).

@ Joren - sure I'll test, I still haven't actually installed MSO 2013 - just
sitting there collecting dust like 2010 is ;) But I will try to install or test
on a system that has it already - give me a day or two :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #4 from Adam CloudOn rattles2...@gmail.com ---
Maybe I was misunderstood or maybe I didn't understand @Joel's comment..

I did not mean saving DOCX as ODF and trying to open it in MS Word.
I meant working only with DOCX files.

Open DOCX in LO - save it as NEW.DOCX - open new NEW.DOCX in Word = Boom,
corrupt.
Why would Word say the DOCX is corrupted unless LO somehow had a bug exporting?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #5 from Joel Madero jmadero@gmail.com ---
indeed this would be a much more serious problem, I misunderstood, will attempt
to test today

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

--- Comment #1 from Adam CloudOn rattles2...@gmail.com ---
Created attachment 78874
  -- https://bugs.freedesktop.org/attachment.cgi?id=78874action=edit
LibreOffice Font Bug - Screenshot

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 64232] FILEOPEN: [FILEOPEN] [FORMATTING] [DATALOSS] Importing DOCX with default font 'Times New Roman' - shown as different font in Writer

2013-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=64232

Jorendc joren.libreoff...@telenet.be changed:

   What|Removed |Added

 CC||jmadero@gmail.com,
   ||joren.libreoffice@telenet.b
   ||e

--- Comment #2 from Jorendc joren.libreoff...@telenet.be ---
@Joel: Sorry to ping you in your vacation. Do you mind to test with Office
2013?

Thanks!
Joren

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs