Re: [Libreoffice] RTF support
On Tue, Jul 05, 2011 at 03:46:06AM -0700, comunesanfior informat...@comune.san-fior.tv.it wrote: I'm not sure if there is already a solution to my bug https://bugs.freedesktop.org/show_bug.cgi?id=38966 It's already assigned, we'll soon have a look at it. Thank you for your patience. pgpbsKlWnQm3X.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
On Tue, Jul 05, 2011 at 07:55:47AM -0700, tracey002 wp...@gte.net wrote: Would anyone happen to know of a tutorial program on the internet from which I could learn the necessary C syntax in order to develop the rtf importer/exporter? Actually it's C++. I think the C++ book is The C++ Programming Language from Stroustrup. A download link perhaps? Until now, I have never had a need or reason to learn C. I'm not sure if it's freely downloadable. Still, if you could put a table to the wiki containing those 66 ... Yes, I will do that if someone would explain to me how to do that. I have a couple of HTML tutorials circa msOffice97 TDF wiki uses mediawiki syntax. See here: http://wiki.documentfoundation.org/Help:Editing pgpJo0NY2yQUQ.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support - C/C++ Materials
There is some good free material on C and on C++. There are free Thinking in C++ books and code available on the Internet. http://mindview.net/Books/TICPP/ThinkingInCPP2e.html. In addition, there is a free Thinking in C Flash-based tutorial: http://www.mindviewinc.com/CDs/ThinkingInC/ I don't know what platform you are on. The gcc compilers should work for these. If you are on Windows Vista or 7, the free Visual C++ 2010 Express Edition is also useful. You can compile ANSI C with it as well as C++ command-line apps without having to deal with the Windows SDK or any of that toolcraft. -Original Message- From: libreoffice-bounces+dennis.hamilton=acm@lists.freedesktop.org [mailto:libreoffice-bounces+dennis.hamilton=acm@lists.freedesktop.org] On Behalf Of Miklos Vajna Sent: Wednesday, July 06, 2011 14:43 To: libreoffice@lists.freedesktop.org Subject: Re: [Libreoffice] RTF support On Tue, Jul 05, 2011 at 07:55:47AM -0700, tracey002 wp...@gte.net wrote: Would anyone happen to know of a tutorial program on the internet from which I could learn the necessary C syntax in order to develop the rtf importer/exporter? Actually it's C++. I think the C++ book is The C++ Programming Language from Stroustrup. A download link perhaps? Until now, I have never had a need or reason to learn C. I'm not sure if it's freely downloadable. Still, if you could put a table to the wiki containing those 66 ... Yes, I will do that if someone would explain to me how to do that. I have a couple of HTML tutorials circa msOffice97 TDF wiki uses mediawiki syntax. See here: http://wiki.documentfoundation.org/Help:Editing ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
Hi, sorry but your post really interesting I'm not sure if there is already a solution to my bug https://bugs.freedesktop.org/show_bug.cgi?id=38966 thanks RZ - Roberto Zucchetto - Responsabile Servizi Informativi COMUNE DI SAN FIOR Piazza G. Marconi n. 2 - 31020 San Fior (TV) -- View this message in context: http://nabble.documentfoundation.org/RTF-support-tp3114982p3140346.html Sent from the Dev mailing list archive at Nabble.com. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
Is there any area where you would be interested to help? I would suggest contributing to the exporter, as that one is not under heavy development. Interested? Yes Capable? Alas, at the present a very sad no. C looks like hieroglyphs compared the near-english Pick-Basic Database Language I use: I can read and recognize some the C words, but the C syntax is confusing. Would anyone happen to know of a tutorial program on the internet from which I could learn the necessary C syntax in order to develop the rtf importer/exporter? A download link perhaps? Until now, I have never had a need or reason to learn C. Still, if you could put a table to the wiki containing those 66 ... Yes, I will do that if someone would explain to me how to do that. I have a couple of HTML tutorials circa msOffice97 Thanks, Tracey Miklos Vajna [via Document Foundation Mail Archive] wrote: On Mon, Jul 04, 2011 at 12:54:58PM -0700, tracey002 [hidden email] /user/SendEmail.jtp?type=nodenode=3139135i=0 wrote: Using the downloaded source dated June 19th and 20th of 2011. Except for the RTFScanner.lex file (dated June 19th, 2011) which had RTF Controls listed, I ended up searching for the string RTF_ and assumed that the uppercase alpha characters that followed are RTF controls (that appeared to be the pattern anyway). Yep, both the old and the new import filter uses RTF_FOO to parse \foo. The exporter uses OOO_STRING_SVTOOLS_RTF_FOO. Of the 1807 RTF Controls found in the March 2008 1.9.1 Specification, 1,333 need to be added to the Import Routine and 1,419 need to be added to the Export Routine (see attached). Nah, just adding them is easy - the real trick is to implement them. Is there any area where you would be interested to help? I would suggest contributing to the exporter, as that one is not under heavy development. 66 controls used in the import and/or export routine require definition because they do not appear in the March 2008 1.9.1 Specification (see attached). Attachement stripped - probably you need to get an email client instead of nabble if you want to send attachements. Still, if you could put a table to the wiki containing those 66 keywords, then we could start writing oneliner documentations for them - that would be a great start. ___ LibreOffice mailing list [hidden email] /user/SendEmail.jtp?type=nodenode=3139135i=1 http://lists.freedesktop.org/mailman/listinfo/libreoffice *attachment0* (205 bytes) Download Attachment /attachment/3139135/0/attachment0 If you reply to this email, your message will be added to the discussion below: http://nabble.documentfoundation.org/RTF-support-tp3114982p3139135.html To unsubscribe from RTF support, click here http://nabble.documentfoundation.org/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3114982code=d3BpaXNAZ3RlLm5ldHwzMTE0OTgyfDg1NDMxMTYz. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3745 - Release Date: 07/05/11 01:35:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3745 - Release Date: 07/05/11 01:35:00 -- View this message in context: http://nabble.documentfoundation.org/RTF-support-tp3114982p3141100.html Sent from the Dev mailing list archive at Nabble.com.___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
I don't know, I am not a C developer. I counted 1807 RTF Controls in the v1.9.1 RTF Specification. As of June 20, 2011, Libre Office has about 12 % theoretical support for RTF (perfectly implemented and not considering bugs or glitches). If I understood correctly, I thought I read somewhere the Libre Office exporter was worked on last summer (please correct me if I'm wrong). There are 230 out of 633 RTF Controls that are in both the importer (including those currently under development) and exporter (230/1807=12%) There are 244 other RTF Controls only found in the importer (including those currently under development) (230+244/1807=26%) There are 158 other RTF Controls only found in exporter (230+158/1807=21%) So, you have about an 21% chance of success (don't bet you next lunch on that one). I think RTF support is important because many Users could use Libre Office if they can still reliably work with their existing documents: without starting from scratch or having major issues/fixes/trashing with/of their current documents. If we support, encourage and assist Miklos Vajna in any way we can, Libre Office can have 100% theoretical support for RTF. Just FYI, Tracey comunesanfior [via Document Foundation Mail Archive] wrote: Hi, sorry but your post really interesting I'm not sure if there is already a solution to my bug https://bugs.freedesktop.org/show_bug.cgi?id=38966 thanks RZ Roberto Zucchetto - Responsabile Servizi Informativi COMUNE DI SAN FIOR Piazza G. Marconi n. 2 - 31020 San Fior (TV) If you reply to this email, your message will be added to the discussion below: http://nabble.documentfoundation.org/RTF-support-tp3114982p3140346.html To unsubscribe from RTF support, click here http://nabble.documentfoundation.org/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3114982code=d3BpaXNAZ3RlLm5ldHwzMTE0OTgyfDg1NDMxMTYz. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3745 - Release Date: 07/05/11 01:35:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3745 - Release Date: 07/05/11 01:35:00 -- View this message in context: http://nabble.documentfoundation.org/RTF-support-tp3114982p3141427.html Sent from the Dev mailing list archive at Nabble.com.___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
Using the downloaded source dated June 19th and 20th of 2011. Except for the RTFScanner.lex file (dated June 19th, 2011) which had RTF Controls listed, I ended up searching for the string RTF_ and assumed that the uppercase alpha characters that followed are RTF controls (that appeared to be the pattern anyway). Of the 1807 RTF Controls found in the March 2008 1.9.1 Specification, 1,333 need to be added to the Import Routine and 1,419 need to be added to the Export Routine (see attached). 66 controls used in the import and/or export routine require definition because they do not appear in the March 2008 1.9.1 Specification (see attached). FYI, Tracey Miklos Vajna [via Document Foundation Mail Archive] wrote: On Fri, Jul 01, 2011 at 06:57:16AM -0700, tracey002 [hidden email] /user/SendEmail.jtp?type=nodenode=3135042i=0 wrote: I did not find what I anything that looked applicable. However I did download the source code from the download page contained in tar.bz2 files. I assume these are zip files. No, these are tar.bz2 files. Can you tell me what file name for which I am looking and the containing zip file name? The export filter lives under /sw/source/filter/ww8, the current importer is under /sw/source/filter/rtf, the work-in-progress new importer (which is enabled in experimental mode only) is under /writerfilter/source/rtftok/. The sw dir is in the writer tarball, writerfilter is in filters. ___ LibreOffice mailing list [hidden email] /user/SendEmail.jtp?type=nodenode=3135042i=1 http://lists.freedesktop.org/mailman/listinfo/libreoffice *attachment0* (205 bytes) Download Attachment /attachment/3135042/0/attachment0 If you reply to this email, your message will be added to the discussion below: http://nabble.documentfoundation.org/RTF-support-tp3114982p3135042.html To unsubscribe from RTF support, click here http://nabble.documentfoundation.org/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3114982code=d3BpaXNAZ3RlLm5ldHwzMTE0OTgyfDg1NDMxMTYz. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3741 - Release Date: 07/03/11 01:34:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3743 - Release Date: 07/04/11 01:35:00 -- View this message in context: http://nabble.documentfoundation.org/RTF-support-tp3114982p3138719.html Sent from the Dev mailing list archive at Nabble.com.___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
On Mon, Jul 04, 2011 at 12:54:58PM -0700, tracey002 wp...@gte.net wrote: Using the downloaded source dated June 19th and 20th of 2011. Except for the RTFScanner.lex file (dated June 19th, 2011) which had RTF Controls listed, I ended up searching for the string RTF_ and assumed that the uppercase alpha characters that followed are RTF controls (that appeared to be the pattern anyway). Yep, both the old and the new import filter uses RTF_FOO to parse \foo. The exporter uses OOO_STRING_SVTOOLS_RTF_FOO. Of the 1807 RTF Controls found in the March 2008 1.9.1 Specification, 1,333 need to be added to the Import Routine and 1,419 need to be added to the Export Routine (see attached). Nah, just adding them is easy - the real trick is to implement them. Is there any area where you would be interested to help? I would suggest contributing to the exporter, as that one is not under heavy development. 66 controls used in the import and/or export routine require definition because they do not appear in the March 2008 1.9.1 Specification (see attached). Attachement stripped - probably you need to get an email client instead of nabble if you want to send attachements. Still, if you could put a table to the wiki containing those 66 keywords, then we could start writing oneliner documentations for them - that would be a great start. pgp6htxwaN5EH.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
On Fri, Jul 01, 2011 at 06:57:16AM -0700, tracey002 wp...@gte.net wrote: I did not find what I anything that looked applicable. However I did download the source code from the download page contained in tar.bz2 files. I assume these are zip files. No, these are tar.bz2 files. Can you tell me what file name for which I am looking and the containing zip file name? The export filter lives under /sw/source/filter/ww8, the current importer is under /sw/source/filter/rtf, the work-in-progress new importer (which is enabled in experimental mode only) is under /writerfilter/source/rtftok/. The sw dir is in the writer tarball, writerfilter is in filters. pgpPl28GKaUIq.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
On Thu, Jun 30, 2011 at 04:42:30AM -0700, tracey002 wp...@gte.net wrote: How can I obtain this exporter (direct web link)? I look at the developer pages, but reading the words and understanding the meaning are 2 separate issues. http://wiki.documentfoundation.org/Development/Native_Build Just FYI, RTF allows customization as long as they formatted so a reader that opens the document: 1) Does not crash. 2) retains block/group intact when it saves the document. This is not the correct definition of what customization is allowed. :) But sure, I'm aware of what an rtf reader should ignore, that's clearly stated in the spec. (See the \* control word.) pgpSnDL3h78Hz.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
I did not find what I anything that looked applicable. However I did download the source code from the download page contained in tar.bz2 files. I assume these are zip files. Can you tell me what file name for which I am looking and the containing zip file name? Please advise. Thanks, Tracey 06/27/2011 04:05a 13,542,278 libreoffice-artwork-3.4.1.3.tar.bz2 06/27/2011 04:05a 2,068,353 libreoffice-base-3.4.1.3.tar.bz2 06/27/2011 04:05a 2,707,154 libreoffice-bootstrap-3.4.1.3.tar.bz2 06/27/2011 04:05a 9,521,156 libreoffice-calc-3.4.1.3.tar.bz2 06/27/2011 04:05a 5,094,752 libreoffice-components-3.4.1.3.tar.bz2 06/27/2011 04:05a 4,215,501 libreoffice-extensions-3.4.1.3.tar.bz2 06/27/2011 04:05a 38,642,506 libreoffice-extras-3.4.1.3.tar.bz2 06/27/2011 04:05a 11,774,356 libreoffice-filters-3.4.1.3.tar.bz2 06/27/2011 04:05a 1,846,148 libreoffice-help-3.4.1.3.tar.bz2 06/27/2011 04:05a 2,651,815 libreoffice-impress-3.4.1.3.tar.bz2 06/27/2011 04:05a 15,601,815 libreoffice-libs-core-3.4.1.3.tar.bz2 06/27/2011 04:05a 637,815 libreoffice-libs-extern-3.4.1.3.tar.bz2 06/27/2011 04:05a 40,003,280 libreoffice-libs-extern-sys-3.4.1.3.tar.bz2 06/27/2011 04:05a 10,852,777 libreoffice-libs-gui-3.4.1.3.tar.bz2 06/27/2011 04:05a 50,867 libreoffice-postprocess-3.4.1.3.tar.bz2 06/27/2011 04:05a 1,721,006 libreoffice-sdk-3.4.1.3.tar.bz2 06/27/2011 04:05a 50,845,728 libreoffice-testing-3.4.1.3.tar.bz2 06/27/2011 04:06a 6,213,303 libreoffice-ure-3.4.1.3.tar.bz2 06/27/2011 04:06a 7,309,213 libreoffice-writer-3.4.1.3.tar.bz2 Miklos Vajna [via Document Foundation Mail Archive] wrote: On Thu, Jun 30, 2011 at 04:42:30AM -0700, tracey002 [hidden email] /user/SendEmail.jtp?type=nodenode=3129083i=0 wrote: How can I obtain this exporter (direct web link)? I look at the developer pages, but reading the words and understanding the meaning are 2 separate issues. http://wiki.documentfoundation.org/Development/Native_Build Just FYI, RTF allows customization as long as they formatted so a reader that opens the document: 1) Does not crash. 2) retains block/group intact when it saves the document. This is not the correct definition of what customization is allowed. :) But sure, I'm aware of what an rtf reader should ignore, that's clearly stated in the spec. (See the \* control word.) ___ LibreOffice mailing list [hidden email] /user/SendEmail.jtp?type=nodenode=3129083i=1 http://lists.freedesktop.org/mailman/listinfo/libreoffice *attachment0* (205 bytes) Download Attachment /attachment/3129083/0/attachment0 If you reply to this email, your message will be added to the discussion below: http://nabble.documentfoundation.org/RTF-support-tp3114982p3129083.html To unsubscribe from RTF support, click here http://nabble.documentfoundation.org/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3114982code=d3BpaXNAZ3RlLm5ldHwzMTE0OTgyfDg1NDMxMTYz. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3736 - Release Date: 06/30/11 13:34:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3736 - Release Date: 06/30/11 13:34:00 -- View this message in context: http://nabble.documentfoundation.org/RTF-support-tp3114982p3129381.html Sent from the Dev mailing list archive at Nabble.com.___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
On Wed, Jun 29, 2011 at 02:53:28PM -0700, tracey002 wp...@gte.net wrote: I parsed a Libre Office RTF document and found a number of RTF controls that are not in the Microsoft RTF Specification. Is there a list of non-Microsoft RTF controls used by Libre Office? I don't know about any specification for that, sorry - we all inherited those from OOo. From memory, those are: - pgdsctbl group: for page styles - updnprop group: for sub/superscript - hyphen group: for detailed hyphenation properties If you can write a script that extracts keywords from the exporter and looks them up in the spec, finally lists the custom ones in the wiki, that would be great. Otherwise I'll probably do it some day. pgpUe6qRGUVHM.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
Hi Tracey, On Wed, 2011-06-29 at 14:53 -0700, tracey002 wrote: I parsed a Libre Office RTF document and found a number of RTF controls that are not in the Microsoft RTF Specification. Is there a list of non-Microsoft RTF controls used by Libre Office? Hum, I don't think there is such a list anywhere. These are mostly hacks for the formatted copy / paste feature. IIRC page formatting has quite some of these. -- Cédric Bosdonnat LibreOffice hacker http://documentfoundation.org OOo Eclipse Integration developer http://cedric.bosdonnat.free.fr ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
I parsed a Libre Office RTF document and found a number of RTF controls that are not in the Microsoft RTF Specification. Is there a list of non-Microsoft RTF controls used by Libre Office? Please advise. Thanks, Tracey Miklos Vajna [via Document Foundation Mail Archive] wrote: On Mon, Jun 27, 2011 at 04:03:41PM -0700, tracey002 [hidden email] /user/SendEmail.jtp?type=nodenode=3115765i=0 wrote: Would it be of any real help if I sent you the 1.9.1 RTF spec with the type-Os in the RTF controls corrected? Hi Tracey, If you think the spec has typos, then please send those to its authors, not to me. If not, I won't bother because I use a dial-up connection. Don't worry about that, a typical minimal rtf import bug reproducer is under 1KB. ___ LibreOffice mailing list [hidden email] /user/SendEmail.jtp?type=nodenode=3115765i=1 http://lists.freedesktop.org/mailman/listinfo/libreoffice *attachment0* (205 bytes) Download Attachment /attachment/3115765/0/attachment0 If you reply to this email, your message will be added to the discussion below: http://nabble.documentfoundation.org/RTF-support-tp3114982p3115765.html To unsubscribe from RTF support, click here http://nabble.documentfoundation.org/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3114982code=d3BpaXNAZ3RlLm5ldHwzMTE0OTgyfDg1NDMxMTYz. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3729 - Release Date: 06/27/11 01:34:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3732 - Release Date: 06/28/11 13:34:00 -- View this message in context: http://nabble.documentfoundation.org/RTF-support-tp3114982p3123625.html Sent from the Dev mailing list archive at Nabble.com.___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] RTF support
On Mon, Jun 27, 2011 at 04:03:41PM -0700, tracey002 wp...@gte.net wrote: Would it be of any real help if I sent you the 1.9.1 RTF spec with the type-Os in the RTF controls corrected? Hi Tracey, If you think the spec has typos, then please send those to its authors, not to me. If not, I won't bother because I use a dial-up connection. Don't worry about that, a typical minimal rtf import bug reproducer is under 1KB. pgpfLxDpjd15a.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice