Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index

Hi Rémy,

thank you for your reply. I'm using xclip because the scenario I am 
using is copy and paste. Therefore the content of the clipboard is my 
point of interest.

So maybe LO does good exporting to RTF when saving to file, but I'm 
talking about that it's does not a good job (as far as I can tell) when 
copying contents to the clipboard.


On 29.01.2016 22:53, Remy Gauthier wrote:

I am not sure why you are using xclip to extract the text, but I did a
small experiment where I saved a copy a of a LOW document as RTF (Save
As... then RFT format) and I was able to get a reasonably good looking
document when I opened the resulting RTF file with MS-Wordpad.

I am, however, using LO 5 on Fedora which could explain why I get better
results than you.

I hope this helps a bit.


Rémy Gauthier.

Le vendredi 29 janvier 2016 à 09:07 +0000, Rösch, Christian a écrit :

I'm using Libre Office Writer [Version: Build ID:
420m0(Build:2)] and basically want to copy text as RTF to test my
application against input from Libre Office.

My app understands text/rtf. However when copying from LOW my app does
not import anything. Using

xclip -out -primary -t TARGETS

I see that the target text/richtext is available. I did not know
anything about this before so I started searching for it. My current
result is that text/richtext is basically text/enriched which is
something like HTML made for mails and different to text/rtf which is
made by Microsoft. Please correct me if I'm wrong, the whole mail builds
on that knowledge.

Now when accessing the data in my clipboard via

xclip -out -primary -t text/richtext

I get something rtf-like. Which leads me to the question:

Is this a bug in Libre Office Writer? And should it fill the clipboard
with text/rtf instead of text/richtext?


I'm working under Ubuntu. And this is the end of the mail, following the
full output of the xclip command (which could also be a source of evil
;-) ):

christian.roesch@...:~$ xclip -out -primary -t TARGETS
application/x-openoffice-embed-source-xml;windows_formatname="Star Embed
Source (XML)"
Object Descriptor
4.2 Text

christian.roesch@...:~$ xclip -out -primary -t text/richtext
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New
Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset0
Arial;}{\f3\froman\fprq2\fcharset0 Liberation Serif{\*\falt Times New
Roman};}{\f4\fswiss\fprq2\fcharset0 Liberation Sans{\*\falt
Arial};}{\f5\fnil\fprq2\fcharset0 Droid Sans
FreeSans;}{\f7\fnil\fprq2\fcharset0 FreeSans;}}
{\s15\sbasedon0\snext15\noline\dbch\af6 Index;}
{\s17\sbasedon18\snext17\sl288\slmult1\sb0\sa140\dbch\af6 List;}
{\s18\sbasedon0\snext18\sl288\slmult1\sb0\sa140 Text Body;}
}{\info{\comment LibreOffice}{\vern67241986}}\deftab709

Default Style;}}
\par }

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.