Hi, I'm using Libre Office Writer [Version: 4.2.8.2 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? See: https://en.wikipedia.org/wiki/Rich_Text_Format https://en.wikipedia.org/wiki/Enriched_text https://tools.ietf.org/html/rfc1341 https://tools.ietf.org/html/rfc1521 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 text/plain;charset=utf-8 text/plain;charset=UTF-8 UTF-8 UTF8_STRING COMPOUND_TEXT STRING application/x-openoffice-embed-source-xml;windows_formatname="Star Embed Source (XML)" text/richtext text/html application/x-openoffice-objectdescriptor-xml;windows_formatname="Star Object Descriptor (XML)";classname="8BC6B165-B1B2-4EDD-aa47-dae2ee689dd6";typename="LibreOffice 4.2 Text Document";viewaspect="1";width="16999";height="2995";posx="0";posy="0" MULTIPLE christian.roesch@...:~$ xclip -out -primary -t text/richtext {\rtf1\ansi\deff3\adeflang1025 {\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 Fallback;}{\f6\fswiss\fprq0\fcharset128 FreeSans;}{\f7\fnil\fprq2\fcharset0 FreeSans;}} {\colortbl;\red0\green0\blue0;\red128\green128\blue128;} {\stylesheet{\s0\snext0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\dbch\af5\langfe2052\dbch\af7\alang1081\fs24\lang1033 Normal;} {\s15\sbasedon0\snext15\noline\dbch\af6 Index;} {\s16\sbasedon0\snext16\sb120\sa120\noline\i\dbch\af6\afs24\ai\fs24 Caption;} {\s17\sbasedon18\snext17\sl288\slmult1\sb0\sa140\dbch\af6 List;} {\s18\sbasedon0\snext18\sl288\slmult1\sb0\sa140 Text Body;} {\s19\sbasedon0\snext18\sb240\sa120\keepn\dbch\af5\dbch\af7\afs28\loch\f4\fs28 Heading;} }{\info{\comment LibreOffice}{\vern67241986}}\deftab709 {\*\pgdsctbl {\pgdsc0\pgdscuse451\pgwsxn11906\pghsxn16838\marglsxn1134\margrsxn1134\margtsxn1134\margbsxn1134\pgdscnxt0 Default Style;}} \formshade\paperh16838\paperw11906\margl1134\margr1134\margt1134\margb1134\sectd\sbknone\sectunlocked1\pgndec\pgwsxn11906\pghsxn16838\marglsxn1134\margrsxn1134\margtsxn1134\margbsxn1134\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc \pgndec\pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\dbch\af5\langfe2052\dbch\af7\alang1081\fs24\lang1033{\b\ab\rtlch \ltrch\loch EXAMPLE} \par } -- Christian -- To unsubscribe e-mail to: [email protected] Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
