Copying and pasting docx theme font attributes
Jacobo Aragunde Pérez
jaragunde at igalia.com
Wed Dec 18 04:34:18 PST 2013
Hi,
recently we added some support to preserve theme-related font
attributes, like font name and color, when importing/exporting docx
documents. But now I'm wondering how wondering how these attributes
interact with copy&pasting.
This is the current behaviour of LibreOffice:
* Copy & paste inside the same document works properly, all the
supported theme attributes of the text are preserved.
* When you paste into a different document, the theme attributes that
belong to the characters are preserved. It means that your text is using
the "main theme colour" and the "major theme font", those attributes are
preserved. But:
* The theme file itself is not copied to the other document, so the
actual font and colour shown will fall back to the ones in the default
theme when you open that document in Word.
* If your text didn't have theme attributes and it was using the
default row properties contained in the styles file, those properties
are not preserved.
Copying the information in the theme and the styles files when pasting
things is probably not a viable idea, but maybe we should transform the
theme format into direct format when pasting the text to a new document.
For example, if the "major theme font" is Arial, the pasted font would
become Arial too.
What do you think? And if you agree, where I should start reading code? ;)
--
Jacobo Aragunde
Software Engineer at Igalia
More information about the LibreOffice
mailing list