Bug 239268 - hidden text is not actually hidden
Summary: hidden text is not actually hidden
Status: CONFIRMED
Alias: None
Product: calligrawords
Classification: Applications
Component: opendocument (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2009-10-28 09:51 UTC by Lassi Nieminen
Modified: 2012-03-30 16:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
msword 2007 test document to be opened in kword (10.47 KB, application/x-zip-compressed)
2009-10-28 09:51 UTC, Lassi Nieminen
Details
screenshot of the document in kword (168.97 KB, image/x-png)
2009-10-28 09:54 UTC, Lassi Nieminen
Details
screenshot of the document in msword (122.92 KB, image/x-png)
2009-10-28 09:54 UTC, Lassi Nieminen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Faure 2010-05-28 03:11:43 UTC


---- Reported by lassi.ta.nieminen@nokia.com 2009-10-28 10:51:54 +0200 ----

Created an attachment
msword 2007 test document to be opened in kword

SOFTWARE VERSION:
  Kubuntu 9.04
  Koffice (svn version 1037805)
  Test document (MS Word 2007): mw07_hidden_text.docx

STEPS LEADING TO THE PROBLEM:
  1. Open the attached document in MSOffice 2007.
  2. Open the same document in KOffice.
  3. Check for the hidden text in the first page of the document.
      
EXPECTED OUTCOME:
  Kword should not show the hidden text.
  see attachment hidden_text_msword_2007.PNG
  
ACTUAL OUTCOME:
  Kword is showing the hidden text in the first page of the document.
  see attachment hidden_text_svn_1037805.PNG
  
Note: OpenOffice does not show hidden text.

FREQUENCY:
  Always



---- Additional Comments From lassi.ta.nieminen@nokia.com 2009-10-28 10:54:04 +0200 ----

Created an attachment
screenshot of the document in kword



---- Additional Comments From lassi.ta.nieminen@nokia.com 2009-10-28 10:54:29 +0200 ----

Created an attachment
screenshot of the document in msword



---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-02-25 15:40:45 +0200 ----

Changing severity to enhancement



---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-03-10 12:53:39 +0200 ----

Moving to Community sub component



--- Bug imported by faure@kde.org 2010-05-28 03:11  ---

This bug was previously known as _bug_ 144505.

Imported an attachment (id=44908)
Imported an attachment (id=44909)
Imported an attachment (id=44910)

Unknown bug field "example" encountered while moving bug
   <example>2010-03-10 12:53:39</example>
Unknown Component Community
   Using default product and component set in Parameters 

Comment 1 Matus Uzak 2012-03-29 16:51:13 UTC
The filter is fine text:display="none", tested with LO.  Proper support of the text:display attribute is required.
Comment 2 Matus Uzak 2012-03-30 16:34:14 UTC
Git commit 838ba003218b92092a6344f01456651584a022e6 by Matus Uzak.
Committed on 30/03/2012 at 15:14.
Pushed by uzak into branch 'master'.

docx: Added a workaround until text:display="none" support.

According to MSWord 2007:
- Ignoring text:span elements with text:display="none" in the TextStyle.
- Ignoring text:a elements containing only hidden text:span elements.
- Ignoring empty text:p elements with text:display="none" in text-properties
  of the paragraph mark.

TODO: If the content of a list-item is hidden, then content of the first
NOT hidden paragraph replaces it.  From the implementation point of view
that paragraph inherits list related properties.

M  +36   -13   filters/words/docx/DocxXmlDocumentReader.cpp

http://commits.kde.org/calligra/838ba003218b92092a6344f01456651584a022e6