[libreoffice-users] Re: Report in Base not executed
Le 14/11/2014 15:39, Harvey Nimmo a écrit : Hi Harvey, My configuration is Libre-Office Version: 4.3.2.2.0+ Build ID: 430m0(Build:2) on Gnome 3.14.1 under Opensuse 13.2. Is this the version of LibreOffice provided by the OpenSuse package management system ? i.e. a version built and provided by the OpenSuse project ? Can you try a TDF provided version of LibreOffice instead (from the LibreOffice download page) or are there no suitable packages ? Alex -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: Report in Base not executed
Hi to everyone. 4.3.4.1 windows msi installation package behave same way: LibreOffice _crashes _when a report is opened in base. Unfortunately, not ALL machines have the problem. My Windows Vista 64bit pc crashes, an other windows XP 32bit pc don't Anyway, that problem have NEVER occured with any other windows OS pc, using previous LO versions. Federico Quadri Alex Thurgood alex.thurg...@gmail.com ha scritto: Le 14/11/2014 15:39, Harvey Nimmo a écrit : Hi Harvey, My configuration is Libre-Office Version: 4.3.2.2.0+ Build ID: 430m0(Build:2) on Gnome 3.14.1 under Opensuse 13.2. Is this the version of LibreOffice provided by the OpenSuse package management system ? i.e. a version built and provided by the OpenSuse project ? Can you try a TDF provided version of LibreOffice instead (from the LibreOffice download page) or are there no suitable packages ? Alex -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: Report in Base not executed
On Wed, 2014-11-19 at 09:55 +0100, Alex Thurgood wrote: Le 14/11/2014 15:39, Harvey Nimmo a écrit : Hi Harvey, My configuration is Libre-Office Version: 4.3.2.2.0+ Build ID: 430m0(Build:2) on Gnome 3.14.1 under Opensuse 13.2. Is this the version of LibreOffice provided by the OpenSuse package management system ? i.e. a version built and provided by the OpenSuse project ? Can you try a TDF provided version of LibreOffice instead (from the LibreOffice download page) or are there no suitable packages ? Alex Yes, this is the version provided under OpenSuse. And I am not too keen on experimenting with other versions/sources, for the sake of consistency within my system Cheers Harvey -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Base Help Anyone
Tom, I'm not entirely sure, when you said So, it's only Base that loses data that you properly comunicated what you meant. What did you mean? I would absolutely agree with the comments made about not storing binaries in the database. It's not a good idea, whatever database you use. And don't use the standard HSQLdb included setup, it's really too prone to errors. Regards Mark -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Base Help Anyone
Hi :) When people use Base with the internal back-end they have sometimes reported data-loss. Other database programs do their utmost to avoid any data-loss. On this mailing list we tend to push people into using external back-ends, as a priority, even if their specific Base-related question has nothing to do with that issue. People here have helped at least one individual migrate their tables from the internal back-end to an external one in step-by-step detail. I gather people now have a faster route, or documentation to help people with that migration, making it much less painful. The last couple of times the individuals seemed to find it surprisingly easy. One of the massive benefits of Base, imo, that makes it vastly more powerful than Access is that it makes it so easy to connect to a wide variety of external back-ends and tries to do that by default. Access can be twisted into doing it too but makes it much more difficult. This makes Base highly scalable and suitable for a huge range of very different scenarios and much more future-proof than Access could hope for. On the other hand it makes it a little more difficult to understand. The marketing team don't seem to quite grasp that simply 'selling' Base as being much like Access is actually quite damaging and completely misses the huge advantages that Base offers. Regards from Tom :) On 19 November 2014 09:39, Mark Stanton m...@vowleyfarm.co.uk wrote: Tom, I'm not entirely sure, when you said So, it's only Base that loses data that you properly comunicated what you meant. What did you mean? I would absolutely agree with the comments made about not storing binaries in the database. It's not a good idea, whatever database you use. And don't use the standard HSQLdb included setup, it's really too prone to errors. Regards Mark -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: Report in Base not executed
Hi :) Crashing is usually due to some 3rd party Extension or some weird tangle of settings in the User Profile. Renaming the User Profile is usually fairly quick and easy, once you've figured it out first time https://wiki.documentfoundation.org/UserProfile The 2nd most likely cause has tended to be Java issues. if you are using the internal back-end on Base or using Accessibility tools such as screen-readers then there might not be much you can do except to maybe consider upgrading Java or finding a more stable version of Java. The rest of us can switch off Java dependence temporarily; Tools - Options - Advanced and if LibreOffice grumbles then switch it back on again. Most people find they can live without Java in LibreOffice and maybe even uninstall it. Generally it is always best to stick with the distro-specific tweaked versions of almost all software. Going outside of that often requires quite a bit of 'proper' linuxy experience and knowledge. It's not usually a good idea for a pointclick user like myself! However LibreOffice is one of the exceptions. it's very forgiving about it's dependencies and it's unlikely that something else is depending on a specific version of LO. It's about the only package i ever install directly from the upstream site and i have grown quite comfortable doing so. If it doesn't work out it's fairly easy to remove all the downloaded official TDF version and then reinstall your own distros version from their repos but it's unlikely you would need to. The only downside is that you have to remember to upgrade it yourself. Many of us don't even upgrade once a year, despite official recommendations, without any noticeable problems. It is also possible to install more than 1 version of LibreOffice at a time to get the best of both worlds https://wiki.documentfoundation.org/Installing_in_parallel On 19 November 2014 09:28, Harvey Nimmo har...@nimmo.de wrote: On Wed, 2014-11-19 at 09:55 +0100, Alex Thurgood wrote: Le 14/11/2014 15:39, Harvey Nimmo a écrit : Hi Harvey, My configuration is Libre-Office Version: 4.3.2.2.0+ Build ID: 430m0(Build:2) on Gnome 3.14.1 under Opensuse 13.2. Is this the version of LibreOffice provided by the OpenSuse package management system ? i.e. a version built and provided by the OpenSuse project ? Can you try a TDF provided version of LibreOffice instead (from the LibreOffice download page) or are there no suitable packages ? Alex Yes, this is the version provided under OpenSuse. And I am not too keen on experimenting with other versions/sources, for the sake of consistency within my system Cheers Harvey -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: How does 4.4 compress PDFs so well? Is there a quality problem?
V Stuart Foote wrote A printed copy of your PDF is not a very good test of document quality. Embedded BMP representation within LibreOffice is at 300dpi. Export print may be the vector format (wmf, emf, eps, svg) or a bitmap rendering preview--at 300dpi. You really need to open each PDF in suitable viewer and zoom in to 800% or 1200%. How do embedded images compare there? Are they bitmap? Or more concise full resolution vector images? Also, the platform you work on will impact handling of vector images. Several helper programs are needed--Ghostscript, ImageMagick, pstoedit and the mix will impact handling as bitmap or vector. To clarify: All original images are either JPG or PNG. I don't need super-clear printing, as this is a simple non-profit volunteer-run community magazine. I have zoomed the two files to 6,400% in Adobe Reader XI on Windows, and they look identical. V Stuart Foote wrote Please provide your OS details, and perhaps attach a sample output (via the Nabble interface). I am using Linux Ubuntu 14.04 64-bit. One of the files is too large for the Nabble interface, and so I am including links to the files instead. * PDF from version 4.3.4.1 https://dl.dropboxusercontent.com/u/49313422/Version%204.3.4.1.pdf * PDF from version 4.4.0.0 https://dl.dropboxusercontent.com/u/49313422/Version%204.4.0.0.pdf My suspicion now is that the current version converts the images to a bitmap, whereas the new version saves the images in their original format. Is there a way to look inside the PDF to see how the images are stored, either on Windows or Linux? Thank you for looking at this. Paddy -- View this message in context: http://nabble.documentfoundation.org/How-does-4-4-compress-PDFs-so-well-Is-there-a-quality-problem-tp4129492p4129563.html Sent from the Users mailing list archive at Nabble.com. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: rtf files
Am 19.11.2014 um 05:20 schrieb Urmas: Tom Davies: I still think that Rtf is well worth avoiding if at all possible but sadly a whole load of people fell for MS's marketing. Even to this day there are people who believe in using it, despite the findings of the court case. Which court case? RTF is rather trivial format, providing compatibility between versions from 1986 till today. If LO does not support it, it is itself to blame, not Microsoft, 'monopolies' or denizens of Nibiru. Hi, http://diaryproducts.net/for/geek/microsoft_rtf_specification_nightmare Can you answer the question on top of this article? Which non-MS application can handle every flavour of RTF you throw at it? On a Windows box, MS WordPad is the one and only application I would try. On my Windows boxes we have a business application which generates RTF and opens its own RTF for editing, but it is never confronted with any RTF from other applications. On my Linux boxes, the first application is MS Word Viewer under Wine. For RTF editing my preferred application is AbiWord which is excellent in respect to RTF but not perfect. I remember files that look fine in AbiWord and others that look fine in LibreOffice but only MS Word Viewer handles all of them properly. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
On 19/11/14 12:34, Andreas Säger wrote: On a Windows box, MS WordPad is the one and only application I would try. On my Windows boxes we have a business application which generates RTF and opens its own RTF for editing, but it is never confronted with any RTF from other applications. RTF is not standard, and is not documented. As such, it is not a format which can be adopted for interoperability. It was developed some years before the development of the ODF standard, which should replace RTF and every other document format to achieve interoperability. -- Italo Vignoli - italo.vign...@gmail.com mob IT +39.348.5653829 - mob EU +39.392.7481795 sip it...@libreoffice.org - skype italovignoli GPG Key ID - 0xAAB8D5C0 DB75 1534 3FD0 EA5F 56B5 FDA6 DE82 934C AAB8 D5C0 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
On 11/19/2014 06:34 AM, Andreas Säger wrote: Can you answer the question on top of this article? Which non-MS application can handle every flavour of RTF you throw at it? On a Windows box, MS WordPad is the one and only application I would try. On my Windows boxes we have a business application which generates RTF and opens its own RTF for editing, but it is never confronted with any RTF from other applications. On my Linux boxes, the first application is MS Word Viewer under Wine. For RTF editing my preferred application is AbiWord which is excellent in respect to RTF but not perfect. I remember files that look fine in AbiWord and others that look fine in LibreOffice but only MS Word Viewer handles all of them properly. On Windows, I have found Atlantis to be very well behaved. It's default file format is RTF. It doesn't do tables, but everything else it does, it does well. .atlantiswordprocessor.com Virgil -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: rtf files
Am 19.11.2014 um 13:33 schrieb Virgil Arrington: On Windows, I have found Atlantis to be very well behaved. It's default file format is RTF. It doesn't do tables, but everything else it does, it does well. .atlantiswordprocessor.com Virgil Thank you. It doesn't do tables. So this implementation is incomplete even though it uses rtf as its default file format. And it's Windows only. Why should I install this on a Windows box where I already have Microsoft WordPad? -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: rtf files
Italo Vignoli: RTF is not standard, and is not documented. You have been linked the specs. Also, it *is* the standard for the document interchange since 1986. the ODF standard, which should replace RTF and every other document format to achieve interoperability. So you claim that the bunch of complicated XML (!) files in a ZIP archive (!!) will replace the _plain text format_ which is RTF? That's typical freetard delusion. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: rtf files
Andreas Säger: Which non-MS application can handle every flavour of RTF you throw at it? The degree of support RTF in application is not related to the 'complexity' of RTF spec. It has to do with the feature set of particular app. Once again, if your app lacks half of the features MS Word had in its 2.0 incarnation (LO 4.4 included), it is not caused by Microsoft in any way. Blame the laziness of its developers and the complete lack of experience in office field. For example, KWord (aka Calligra) still does not support language tagging (the feature present in MSWord 2.0) after 15 years in development. Who is to blame here? -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
On 11/19/2014 8:14 AM, Andreas Säger wrote: Am 19.11.2014 um 13:33 schrieb Virgil Arrington: On Windows, I have found Atlantis to be very well behaved. It's default file format is RTF. It doesn't do tables, but everything else it does, it does well. .atlantiswordprocessor.com Virgil Thank you. It doesn't do tables. So this implementation is incomplete even though it uses rtf as its default file format. And it's Windows only. Why should I install this on a Windows box where I already have Microsoft WordPad? a. I'm not suggesting that you install it; I was only offering it as an example of a fairly full-featured program that uses RTF as its default file format. b. Atlantis is much more full-featured than WordPad. It supports paragraph styles, (and implements them much better and simpler than either MS-Word or LO), multiple columns, page/section breaks, editable headers/footers, and on and on. It has one of the best built-in EPUB translators I've seen, for creation of e-books. It imports ODT files nearly flawlessly. And I have found it to be rock-solid in terms of stability. No, it's not free; it's shareware with a $35 registration, and no, it doesn't run natively under Linux (but I have run it with Wine, although not without some rough edges). c. Again, I'm not advocating for Atlantis, only pointing out its existence in a thread about RTF files. I always use it when I need to share documents with my Word-bound colleagues. Virgil -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
Hi :) The Rtf spec kept changing at any whim of MS's. They wouldn't publish the new specs until month or even years later. So in order to 'stay' compatible everyone else had to reverse engineer or guess what changes MS might have made. The reason Italo is able to point to a spec of Rtf is because MS have abandoned it's development - not because the spec is being handled decently. MS was constantly promising that Rtf would be the best format for interoperability but it never quite worked out that way. Much the same way that DocX is panning out with all it's various transitional versions - except that Rtf was never had a version that was accepted as an ISO format. Also Rtf is not plain text as it contains tons of spurious coding and formatting. What IS curious is how MS has had such trouble implementing the ODF specs that everyone else seems to find so easy and which have been openly available from OASIS or (for a small fee) from the ISO people. Regards from Tom :) On 19 November 2014 13:05, Urmas davian...@gmail.com wrote: Andreas Säger: Which non-MS application can handle every flavour of RTF you throw at it? The degree of support RTF in application is not related to the 'complexity' of RTF spec. It has to do with the feature set of particular app. Once again, if your app lacks half of the features MS Word had in its 2.0 incarnation (LO 4.4 included), it is not caused by Microsoft in any way. Blame the laziness of its developers and the complete lack of experience in office field. For example, KWord (aka Calligra) still does not support language tagging (the feature present in MSWord 2.0) after 15 years in development. Who is to blame here? -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
Hi :) +1 I think i'm not the only one having a bad hair day. My guess is that most people realise what you were saying. It is annoying to have to deal with all these different formats with different programs most of which fall away or change beyond recognition. I tend to find that LibreOffice/OpenOffice tend to become the best tool for dealing with most formats that become abandoned by everyone else. Regards from Tom :) On 19 November 2014 14:49, Virgil Arrington arringto...@gmail.com wrote: On 11/19/2014 8:14 AM, Andreas Säger wrote: Am 19.11.2014 um 13:33 schrieb Virgil Arrington: On Windows, I have found Atlantis to be very well behaved. It's default file format is RTF. It doesn't do tables, but everything else it does, it does well. .atlantiswordprocessor.com Virgil Thank you. It doesn't do tables. So this implementation is incomplete even though it uses rtf as its default file format. And it's Windows only. Why should I install this on a Windows box where I already have Microsoft WordPad? a. I'm not suggesting that you install it; I was only offering it as an example of a fairly full-featured program that uses RTF as its default file format. b. Atlantis is much more full-featured than WordPad. It supports paragraph styles, (and implements them much better and simpler than either MS-Word or LO), multiple columns, page/section breaks, editable headers/footers, and on and on. It has one of the best built-in EPUB translators I've seen, for creation of e-books. It imports ODT files nearly flawlessly. And I have found it to be rock-solid in terms of stability. No, it's not free; it's shareware with a $35 registration, and no, it doesn't run natively under Linux (but I have run it with Wine, although not without some rough edges). c. Again, I'm not advocating for Atlantis, only pointing out its existence in a thread about RTF files. I always use it when I need to share documents with my Word-bound colleagues. Virgil -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: rtf files
Am 19.11.2014 um 14:05 schrieb Urmas: Andreas Säger: Which non-MS application can handle every flavour of RTF you throw at it? The degree of support RTF in application is not related to the 'complexity' of RTF spec. It has to do with the feature set of particular app. Once again, if your app lacks half of the features MS Word had in its 2.0 incarnation (LO 4.4 included), it is not caused by Microsoft in any way. Blame the laziness of its developers and the complete lack of experience in office field. For example, KWord (aka Calligra) still does not support language tagging (the feature present in MSWord 2.0) after 15 years in development. Who is to blame here? ODF is the new RTF. What is your aim? Complain about developers being lazy/stupid until the same developers implement your personal wishes? This is a _users_ list. We can recommend solutions and workarounds based on the availlable software tools. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: rtf files
Am 19.11.2014 um 15:49 schrieb Tom Davies: Also Rtf is not plain text as it contains tons of spurious coding and formatting. Open rtf in a text editor. Just like HTML, it is plain text indeed. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
On 11/19/2014 10:40 AM, Andreas Säger wrote: Open rtf in a text editor. Just like HTML, it is plain text indeed. That's one of the things I've always liked about RTF. In a pinch, one could open an RTF file in Notepad and strip out all of the RTF coding and be left with a document's contents. I've never had to do it, but it's nice that it can be done. With a binary file, you're left with smiley faces and no visible content. Virgil -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] macro to add annotation to selected text range
Hi, I am trying to add a really simple macro that I can bind to a key. I just want ot be able ot add checkmarks to student papers veyr quickly, so I would like to select a sentence or other text range, then press a key, and have the ckeckmark appear in a new comment. I can almost do htis, using code stolen from the web: rem--- rem -- misleadingly named macro adds a simple hceckmark at point, or in response to highlighted text. sub createComment rem create the annotation object oAnno = ThisComponent.createInstance(com.sun.star.text.textfield.Annotation) rem Chr 10004 is the decimal for hex code 2714, heavy checkmark oAnno.Content = Chr(10004) oAnno.Author = Matt Price oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then rem I don't know what to put in here Else oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) End If end sub --- You can see that, if there's no selection, I already know how to insert the annotation. But I don't know how to attach the annotation to the selected range instead of just the start of the cursor. In general, I don't know where to find the funciton references or even the source code for the relevant functions. I'm finding it quite difficult to figure out how to learn to program -- is there comprehensive documentation somewhere? Thanks, Matt -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] macro to add annotation to selected text range
Hi :) The best documentation is at; https://wiki.documentfoundation.org/Documentation/Publications and the most recent full books are also on the official LibreOffice website. For macros i think the best book by far is Andrew Pitonyak's guide on https://wiki.documentfoundation.org/Documentation/Other_Documentation_and_Resources#Programmers I'm not sure they will help for this specific use-case but they might help generally. Regards from Tom :) On 19 November 2014 16:05, Matt Price mopto...@gmail.com wrote: Hi, I am trying to add a really simple macro that I can bind to a key. I just want ot be able ot add checkmarks to student papers veyr quickly, so I would like to select a sentence or other text range, then press a key, and have the ckeckmark appear in a new comment. I can almost do htis, using code stolen from the web: rem--- rem -- misleadingly named macro adds a simple hceckmark at point, or in response to highlighted text. sub createComment rem create the annotation object oAnno = ThisComponent.createInstance(com.sun.star.text.textfield.Annotation) rem Chr 10004 is the decimal for hex code 2714, heavy checkmark oAnno.Content = Chr(10004) oAnno.Author = Matt Price oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then rem I don't know what to put in here Else oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) End If end sub --- You can see that, if there's no selection, I already know how to insert the annotation. But I don't know how to attach the annotation to the selected range instead of just the start of the cursor. In general, I don't know where to find the funciton references or even the source code for the relevant functions. I'm finding it quite difficult to figure out how to learn to program -- is there comprehensive documentation somewhere? Thanks, Matt -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
2014-11-19 16:58 GMT+01:00 Virgil Arrington arringto...@gmail.com: That's one of the things I've always liked about RTF. In a pinch, one could open an RTF file in Notepad and strip out all of the RTF coding and be left with a document's contents. I've never had to do it, but it's nice that it can be done. With a binary file, you're left with smiley faces and no visible content. Now, add a picture to your rtf file and see how fun it is to have all things in a plaintext, notepad friendly file format... More recent format like odt (and docx for that matter) are *WAY* better. (is there a way to emphasis this more?). They are in fact a collection of files in a simple ZIP, but the core of it (the text and structure) is in a straightforward XML file which is as plaintext as an RTF file. In fact, it's easier to strip the extra tags out of an XML file, since tools to manipulate/reformat XML are extremely common. With recent format, you get the possibility, should an issue arise, to extract the plaintext content, and even the attached files (pictures and other embedded OLE stuff) with common tools. This is even demonstrated on this list, when sometime someone get a corrupted file, and it is possible to recover it with stuff like notepad and windows' zip file explorer. There's no comparison between these format, heavily documented in case of ODT, that put a clear separation between content and format, and an RTF file that want to cram everything (content, format, and binary blobs for image) in a single plaintext file. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
Hi :) I'm really not getting plain text. When i right-click and open in a text-editor i get this sort of thing; {\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\fnil\fprq2\fcharset0 FreeSans;}{\f7\fswiss\fprq0\fcharset128 FreeSans;}} {\colortbl;\red0\green0\blue0;\red128\green128\blue128;} {\stylesheet{\s0\snext0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\dbch\af5\langfe2052\dbch\af6\afs24\alang1081\loch\f3\fs24\lang2057 Normal;} {\s15\sbasedon0\snext16\sb240\sa120\keepn\dbch\af5\dbch\af6\afs28\loch\f4\fs28 Heading;} {\s16\sbasedon0\snext16\sl288\slmult1\sb0\sa140 Text Body;} {\s17\sbasedon16\snext17\sl288\slmult1\sb0\sa140\dbch\af7 List;} {\s18\sbasedon0\snext18\sb120\sa120\noline\i\dbch\af7\afs24\ai\fs24 Caption;} {\s19\sbasedon0\snext19\noline\dbch\af7 Index;} }{\info{\creatim\yr2014\mo11\dy19\hr16\min29}{\revtim\yr0\mo0\dy0\hr0\min0}{\printim\yr0\mo0\dy0\hr0\min0}{\comment LibreOffice}{\vern67241730}}\deftab709 \viewscale100 {\*\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\af6\afs24\alang1081\loch\f3\fs24\lang2057{\rtlch \ltrch\loch asdfdf} \par } Regards from Tom :) On 19 November 2014 16:16, Cley Faye cleyf...@gmail.com wrote: 2014-11-19 16:58 GMT+01:00 Virgil Arrington arringto...@gmail.com: That's one of the things I've always liked about RTF. In a pinch, one could open an RTF file in Notepad and strip out all of the RTF coding and be left with a document's contents. I've never had to do it, but it's nice that it can be done. With a binary file, you're left with smiley faces and no visible content. Now, add a picture to your rtf file and see how fun it is to have all things in a plaintext, notepad friendly file format... More recent format like odt (and docx for that matter) are *WAY* better. (is there a way to emphasis this more?). They are in fact a collection of files in a simple ZIP, but the core of it (the text and structure) is in a straightforward XML file which is as plaintext as an RTF file. In fact, it's easier to strip the extra tags out of an XML file, since tools to manipulate/reformat XML are extremely common. With recent format, you get the possibility, should an issue arise, to extract the plaintext content, and even the attached files (pictures and other embedded OLE stuff) with common tools. This is even demonstrated on this list, when sometime someone get a corrupted file, and it is possible to recover it with stuff like notepad and windows' zip file explorer. There's no comparison between these format, heavily documented in case of ODT, that put a clear separation between content and format, and an RTF file that want to cram everything (content, format, and binary blobs for image) in a single plaintext file. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] macro to add annotation to selected text range
Thanks Tom, I've just spent some time looking htrough Andrew Pitonyak's macro guide. It helps a little but there doesn't seem to be any direct documentation of hte functions. What I'm looking at is the second line reproduced below: oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) I think oVC.Start needs to be replaced with something else, but I can't figure out what. All of Andrew's examples with insertTextContent insert the content at a single location, not at a text range, so maybe I need a different function. If someone knows another method I'd appreciate the advice. Thanks, Matt On Wed, Nov 19, 2014 at 11:15 AM, Tom Davies tomc...@gmail.com wrote: Hi :) The best documentation is at; https://wiki.documentfoundation.org/Documentation/Publications and the most recent full books are also on the official LibreOffice website. For macros i think the best book by far is Andrew Pitonyak's guide on https://wiki.documentfoundation.org/Documentation/Other_Documentation_and_Resources#Programmers I'm not sure they will help for this specific use-case but they might help generally. Regards from Tom :) On 19 November 2014 16:05, Matt Price mopto...@gmail.com wrote: Hi, I am trying to add a really simple macro that I can bind to a key. I just want ot be able ot add checkmarks to student papers veyr quickly, so I would like to select a sentence or other text range, then press a key, and have the ckeckmark appear in a new comment. I can almost do htis, using code stolen from the web: rem--- rem -- misleadingly named macro adds a simple hceckmark at point, or in response to highlighted text. sub createComment rem create the annotation object oAnno = ThisComponent.createInstance(com.sun.star.text.textfield.Annotation) rem Chr 10004 is the decimal for hex code 2714, heavy checkmark oAnno.Content = Chr(10004) oAnno.Author = Matt Price oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then rem I don't know what to put in here Else oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) End If end sub --- You can see that, if there's no selection, I already know how to insert the annotation. But I don't know how to attach the annotation to the selected range instead of just the start of the cursor. In general, I don't know where to find the funciton references or even the source code for the relevant functions. I'm finding it quite difficult to figure out how to learn to program -- is there comprehensive documentation somewhere? Thanks, Matt -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
Oh no it isn't (In England we have somewhat bizarre stage shows around this time of year with lots of routines that the audience knows in advances to help with audience participation. One of the classics gags is one of the thespian's says something like the above and the audience counters by all shouting at once Oh yes it is this goes back-and-forth several times until the audience is inevitably proven right) http://en.wikipedia.org/wiki/Pantomime Regards from Tom :) On 19 November 2014 15:40, Andreas Säger ville...@t-online.de wrote: Am 19.11.2014 um 15:49 schrieb Tom Davies: Also Rtf is not plain text as it contains tons of spurious coding and formatting. Open rtf in a text editor. Just like HTML, it is plain text indeed. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: macro to add annotation to selected text range
On 11/19/2014 10:55 AM, Matt Price wrote: Thanks Tom, I've just spent some time looking htrough Andrew Pitonyak's macro guide. It helps a little but there doesn't seem to be any direct documentation of hte functions. What I'm looking at is the second line reproduced below: oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) Matt, I don't use Writer much and honestly I'm not sure what you expect to see. Try this. In the above two lines change Start to End and False to True and put those two lines right under your rem I don't know what to put in here line. Then select some text and run the macro. Regards, Jim I think oVC.Start needs to be replaced with something else, but I can't figure out what. All of Andrew's examples with insertTextContent insert the content at a single location, not at a text range, so maybe I need a different function. If someone knows another method I'd appreciate the advice. Thanks, Matt On Wed, Nov 19, 2014 at 11:15 AM, Tom Davies tomc...@gmail.com wrote: Hi :) The best documentation is at; https://wiki.documentfoundation.org/Documentation/Publications and the most recent full books are also on the official LibreOffice website. For macros i think the best book by far is Andrew Pitonyak's guide on https://wiki.documentfoundation.org/Documentation/Other_Documentation_and_Resources#Programmers I'm not sure they will help for this specific use-case but they might help generally. Regards from Tom :) On 19 November 2014 16:05, Matt Price mopto...@gmail.com wrote: Hi, I am trying to add a really simple macro that I can bind to a key. I just want ot be able ot add checkmarks to student papers veyr quickly, so I would like to select a sentence or other text range, then press a key, and have the ckeckmark appear in a new comment. I can almost do htis, using code stolen from the web: rem--- rem -- misleadingly named macro adds a simple hceckmark at point, or in response to highlighted text. sub createComment rem create the annotation object oAnno = ThisComponent.createInstance(com.sun.star.text.textfield.Annotation) rem Chr 10004 is the decimal for hex code 2714, heavy checkmark oAnno.Content = Chr(10004) oAnno.Author = Matt Price oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then rem I don't know what to put in here Else oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) End If end sub --- You can see that, if there's no selection, I already know how to insert the annotation. But I don't know how to attach the annotation to the selected range instead of just the start of the cursor. In general, I don't know where to find the funciton references or even the source code for the relevant functions. I'm finding it quite difficult to figure out how to learn to program -- is there comprehensive documentation somewhere? Thanks, Matt -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: rtf files
Am 19.11.2014 um 17:33 schrieb Tom Davies: I'm really not getting plain text. When i right-click and open in a text-editor i get this sort of thing; Which is plain text in plain 7 bit ASCII. I can paste your rtf into any plain text editor, save as tom.rtf and open tom.rtf with any rtf capable word processor. Now I save this in binary .doc, open the doc in a text editor and what I see is this: \D0\CFࡱ\E1\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00;\00\00\FE\FF \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\FE\FF\FF\FF\00\00\00\00\00\00\00\00\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\F F\FF\FF\FF\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00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\FE\FF\FF\FF\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\FF\FF\FF\FF\FF\F
Re: [libreoffice-users] Re: rtf files
Sorry, Tom, that is plain text, just like HTML is plain text. Yes, it contains special codes, but it does not contain anything but plain ASCII characters. On Wed, Nov 19, 2014 at 11:33 AM, Tom Davies tomc...@gmail.com wrote: Hi :) I'm really not getting plain text. When i right-click and open in a text-editor i get this sort of thing; {\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\fnil\fprq2\fcharset0 FreeSans;}{\f7\fswiss\fprq0\fcharset128 FreeSans;}} {\colortbl;\red0\green0\blue0;\red128\green128\blue128;} {\stylesheet{\s0\snext0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\dbch\af5\langfe2052\dbch\af6\afs24\alang1081\loch\f3\fs24\lang2057 Normal;} {\s15\sbasedon0\snext16\sb240\sa120\keepn\dbch\af5\dbch\af6\afs28\loch\f4\fs28 Heading;} {\s16\sbasedon0\snext16\sl288\slmult1\sb0\sa140 Text Body;} {\s17\sbasedon16\snext17\sl288\slmult1\sb0\sa140\dbch\af7 List;} {\s18\sbasedon0\snext18\sb120\sa120\noline\i\dbch\af7\afs24\ai\fs24 Caption;} {\s19\sbasedon0\snext19\noline\dbch\af7 Index;} }{\info{\creatim\yr2014\mo11\dy19\hr16\min29}{\revtim\yr0\mo0\dy0\hr0\min0}{\printim\yr0\mo0\dy0\hr0\min0}{\comment LibreOffice}{\vern67241730}}\deftab709 \viewscale100 {\*\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\af6\afs24\alang1081\loch\f3\fs24\lang2057{\rtlch \ltrch\loch asdfdf} \par } Regards from Tom :) On 19 November 2014 16:16, Cley Faye cleyf...@gmail.com wrote: 2014-11-19 16:58 GMT+01:00 Virgil Arrington arringto...@gmail.com: That's one of the things I've always liked about RTF. In a pinch, one could open an RTF file in Notepad and strip out all of the RTF coding and be left with a document's contents. I've never had to do it, but it's nice that it can be done. With a binary file, you're left with smiley faces and no visible content. Now, add a picture to your rtf file and see how fun it is to have all things in a plaintext, notepad friendly file format... More recent format like odt (and docx for that matter) are *WAY* better. (is there a way to emphasis this more?). They are in fact a collection of files in a simple ZIP, but the core of it (the text and structure) is in a straightforward XML file which is as plaintext as an RTF file. In fact, it's easier to strip the extra tags out of an XML file, since tools to manipulate/reformat XML are extremely common. With recent format, you get the possibility, should an issue arise, to extract the plaintext content, and even the attached files (pictures and other embedded OLE stuff) with common tools. This is even demonstrated on this list, when sometime someone get a corrupted file, and it is possible to recover it with stuff like notepad and windows' zip file explorer. There's no comparison between these format, heavily documented in case of ODT, that put a clear separation between content and format, and an RTF file that want to cram everything (content, format, and binary blobs for image) in a single plaintext file. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: macro to add annotation to selected text range
Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what the various parameters actually d -- what is the final Boolean doing there? How do you know? But in any case, many thanks for solving htis problem, it's actually pretty awesome to be able to do this with a single keystroke! m On Wed, Nov 19, 2014 at 12:38 PM, Jim Byrnes jf_byr...@comcast.net wrote: On 11/19/2014 10:55 AM, Matt Price wrote: Thanks Tom, I've just spent some time looking htrough Andrew Pitonyak's macro guide. It helps a little but there doesn't seem to be any direct documentation of hte functions. What I'm looking at is the second line reproduced below: oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) Matt, I don't use Writer much and honestly I'm not sure what you expect to see. Try this. In the above two lines change Start to End and False to True and put those two lines right under your rem I don't know what to put in here line. Then select some text and run the macro. Regards, Jim I think oVC.Start needs to be replaced with something else, but I can't figure out what. All of Andrew's examples with insertTextContent insert the content at a single location, not at a text range, so maybe I need a different function. If someone knows another method I'd appreciate the advice. Thanks, Matt On Wed, Nov 19, 2014 at 11:15 AM, Tom Davies tomc...@gmail.com wrote: Hi :) The best documentation is at; https://wiki.documentfoundation.org/Documentation/Publications and the most recent full books are also on the official LibreOffice website. For macros i think the best book by far is Andrew Pitonyak's guide on https://wiki.documentfoundation.org/Documentation/Other_ Documentation_and_Resources#Programmers I'm not sure they will help for this specific use-case but they might help generally. Regards from Tom :) On 19 November 2014 16:05, Matt Price mopto...@gmail.com wrote: Hi, I am trying to add a really simple macro that I can bind to a key. I just want ot be able ot add checkmarks to student papers veyr quickly, so I would like to select a sentence or other text range, then press a key, and have the ckeckmark appear in a new comment. I can almost do htis, using code stolen from the web: rem--- rem -- misleadingly named macro adds a simple hceckmark at point, or in response to highlighted text. sub createComment rem create the annotation object oAnno = ThisComponent.createInstance(com.sun.star.text.textfield.Annotation) rem Chr 10004 is the decimal for hex code 2714, heavy checkmark oAnno.Content = Chr(10004) oAnno.Author = Matt Price oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then rem I don't know what to put in here Else oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) End If end sub --- You can see that, if there's no selection, I already know how to insert the annotation. But I don't know how to attach the annotation to the selected range instead of just the start of the cursor. In general, I don't know where to find the funciton references or even the source code for the relevant functions. I'm finding it quite difficult to figure out how to learn to program -- is there comprehensive documentation somewhere? Thanks, Matt -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: macro to add annotation to selected text range
So, I gues there is an API reference: http://api.libreoffice.org/docs/idl/ref/index.html But unfortunately it doesn't give direct documentation for Basic functions. I found this document instead, which tells me where in the API the actual function calls come from: http://bernard.marcelly.perso.sfr.fr/index2.html The useful macros are embedded in the XRay Tool. It would sure be nice to have something like this in the BASIC editor itself - -I am used to having access to functions documentation when I'm trying to program! On Wed, Nov 19, 2014 at 1:07 PM, Tom Davies tomc...@gmail.com wrote: Hi :) On a linux command-line you can type whatever command and then add a --help or -h tag to get a really neat quick-cheat-sheet, 2 examples; ls --help dir -h Also can often type a command after man (short for manual) to get a much more verbose, but still quite geeky, detail about what the command can do. So; man ls man dir Also just typing help info often gives quite a bit of general help. Is there anything like that for macros? Regards from Tom :) On 19 November 2014 17:59, Matt Price mopto...@gmail.com wrote: Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what the various parameters actually d -- what is the final Boolean doing there? How do you know? But in any case, many thanks for solving htis problem, it's actually pretty awesome to be able to do this with a single keystroke! m On Wed, Nov 19, 2014 at 12:38 PM, Jim Byrnes jf_byr...@comcast.net wrote: On 11/19/2014 10:55 AM, Matt Price wrote: Thanks Tom, I've just spent some time looking htrough Andrew Pitonyak's macro guide. It helps a little but there doesn't seem to be any direct documentation of hte functions. What I'm looking at is the second line reproduced below: oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) Matt, I don't use Writer much and honestly I'm not sure what you expect to see. Try this. In the above two lines change Start to End and False to True and put those two lines right under your rem I don't know what to put in here line. Then select some text and run the macro. Regards, Jim I think oVC.Start needs to be replaced with something else, but I can't figure out what. All of Andrew's examples with insertTextContent insert the content at a single location, not at a text range, so maybe I need a different function. If someone knows another method I'd appreciate the advice. Thanks, Matt On Wed, Nov 19, 2014 at 11:15 AM, Tom Davies tomc...@gmail.com wrote: Hi :) The best documentation is at; https://wiki.documentfoundation.org/Documentation/Publications and the most recent full books are also on the official LibreOffice website. For macros i think the best book by far is Andrew Pitonyak's guide on https://wiki.documentfoundation.org/Documentation/Other_ Documentation_and_Resources#Programmers I'm not sure they will help for this specific use-case but they might help generally. Regards from Tom :) On 19 November 2014 16:05, Matt Price mopto...@gmail.com wrote: Hi, I am trying to add a really simple macro that I can bind to a key. I just want ot be able ot add checkmarks to student papers veyr quickly, so I would like to select a sentence or other text range, then press a key, and have the ckeckmark appear in a new comment. I can almost do htis, using code stolen from the web: rem--- rem -- misleadingly named macro adds a simple hceckmark at point, or in response to highlighted text. sub createComment rem create the annotation object oAnno = ThisComponent.createInstance(com.sun.star.text.textfield.Annotation) rem Chr 10004 is the decimal for hex code 2714, heavy checkmark oAnno.Content = Chr(10004) oAnno.Author = Matt Price oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then rem I don't know what to put in here Else oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) End If end sub --- You can see that, if there's no selection, I already know how to insert the annotation. But I don't know how to attach the annotation to the selected range instead of just the start of the cursor. In general, I don't know where to find the funciton references or even the source code for the relevant functions. I'm finding it quite difficult to figure out how to learn to
Re: [libreoffice-users] Re: rtf files
Hi :) Ahh, right. Now i'm kinda regretting using 4-6 random letters but not enough to repeat the experiment. I suspect my adfs (or whatever) is probably something like E0\85\9F\F2\F9Oh \AB\91 Regards from Tom :) On 19 November 2014 17:40, Andreas Säger ville...@t-online.de wrote: Am 19.11.2014 um 17:33 schrieb Tom Davies: I'm really not getting plain text. When i right-click and open in a text-editor i get this sort of thing; Which is plain text in plain 7 bit ASCII. I can paste your rtf into any plain text editor, save as tom.rtf and open tom.rtf with any rtf capable word processor. Now I save this in binary .doc, open the doc in a text editor and what I see is this: \D0\CF ࡱ \E1\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00;\00 \00\FE\FF\00 \00\00\00\00\00\00\00\00\00\00\00 \00\00\00 \00\00\00\00\00\00\00\00 \00\00 \00\00\00 \00\00\00\FE\FF\FF\FF\00\00\00\00\00\00\00\00\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\F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\FF\FF\FF\FF\FF\FFR\00o\00o\00t\00 \00E\00n\00t\00r\00y\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00 \00 \00\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\FE\FF\FF\FF\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\FF\FF\FF\FF\FF\F
Re: [libreoffice-users] Re: rtf files
Hi :) Ahh, ok. If that counts as plain text of a 5 (ish) letter document then that explains a few misunderstandings i've had. Regards from Tom :) On 19 November 2014 17:44, jomali jomali3...@gmail.com wrote: Sorry, Tom, that is plain text, just like HTML is plain text. Yes, it contains special codes, but it does not contain anything but plain ASCII characters. On Wed, Nov 19, 2014 at 11:33 AM, Tom Davies tomc...@gmail.com wrote: Hi :) I'm really not getting plain text. When i right-click and open in a text-editor i get this sort of thing; {\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\fnil\fprq2\fcharset0 FreeSans;}{\f7\fswiss\fprq0\fcharset128 FreeSans;}} {\colortbl;\red0\green0\blue0;\red128\green128\blue128;} {\stylesheet{\s0\snext0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\dbch\af5\langfe2052\dbch\af6\afs24\alang1081\loch\f3\fs24\lang2057 Normal;} {\s15\sbasedon0\snext16\sb240\sa120\keepn\dbch\af5\dbch\af6\afs28\loch\f4\fs28 Heading;} {\s16\sbasedon0\snext16\sl288\slmult1\sb0\sa140 Text Body;} {\s17\sbasedon16\snext17\sl288\slmult1\sb0\sa140\dbch\af7 List;} {\s18\sbasedon0\snext18\sb120\sa120\noline\i\dbch\af7\afs24\ai\fs24 Caption;} {\s19\sbasedon0\snext19\noline\dbch\af7 Index;} }{\info{\creatim\yr2014\mo11\dy19\hr16\min29}{\revtim\yr0\mo0\dy0\hr0\min0}{\printim\yr0\mo0\dy0\hr0\min0}{\comment LibreOffice}{\vern67241730}}\deftab709 \viewscale100 {\*\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\af6\afs24\alang1081\loch\f3\fs24\lang2057{\rtlch \ltrch\loch asdfdf} \par } Regards from Tom :) On 19 November 2014 16:16, Cley Faye cleyf...@gmail.com wrote: 2014-11-19 16:58 GMT+01:00 Virgil Arrington arringto...@gmail.com: That's one of the things I've always liked about RTF. In a pinch, one could open an RTF file in Notepad and strip out all of the RTF coding and be left with a document's contents. I've never had to do it, but it's nice that it can be done. With a binary file, you're left with smiley faces and no visible content. Now, add a picture to your rtf file and see how fun it is to have all things in a plaintext, notepad friendly file format... More recent format like odt (and docx for that matter) are *WAY* better. (is there a way to emphasis this more?). They are in fact a collection of files in a simple ZIP, but the core of it (the text and structure) is in a straightforward XML file which is as plaintext as an RTF file. In fact, it's easier to strip the extra tags out of an XML file, since tools to manipulate/reformat XML are extremely common. With recent format, you get the possibility, should an issue arise, to extract the plaintext content, and even the attached files (pictures and other embedded OLE stuff) with common tools. This is even demonstrated on this list, when sometime someone get a corrupted file, and it is possible to recover it with stuff like notepad and windows' zip file explorer. There's no comparison between these format, heavily documented in case of ODT, that put a clear separation between content and format, and an RTF file that want to cram everything (content, format, and binary blobs for image) in a single plaintext file. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more:
Re: [libreoffice-users] Re: macro to add annotation to selected text range
Hi :) On a linux command-line you can type whatever command and then add a --help or -h tag to get a really neat quick-cheat-sheet, 2 examples; ls --help dir -h Also can often type a command after man (short for manual) to get a much more verbose, but still quite geeky, detail about what the command can do. So; man ls man dir Also just typing help info often gives quite a bit of general help. Is there anything like that for macros? Regards from Tom :) On 19 November 2014 17:59, Matt Price mopto...@gmail.com wrote: Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what the various parameters actually d -- what is the final Boolean doing there? How do you know? But in any case, many thanks for solving htis problem, it's actually pretty awesome to be able to do this with a single keystroke! m On Wed, Nov 19, 2014 at 12:38 PM, Jim Byrnes jf_byr...@comcast.net wrote: On 11/19/2014 10:55 AM, Matt Price wrote: Thanks Tom, I've just spent some time looking htrough Andrew Pitonyak's macro guide. It helps a little but there doesn't seem to be any direct documentation of hte functions. What I'm looking at is the second line reproduced below: oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) Matt, I don't use Writer much and honestly I'm not sure what you expect to see. Try this. In the above two lines change Start to End and False to True and put those two lines right under your rem I don't know what to put in here line. Then select some text and run the macro. Regards, Jim I think oVC.Start needs to be replaced with something else, but I can't figure out what. All of Andrew's examples with insertTextContent insert the content at a single location, not at a text range, so maybe I need a different function. If someone knows another method I'd appreciate the advice. Thanks, Matt On Wed, Nov 19, 2014 at 11:15 AM, Tom Davies tomc...@gmail.com wrote: Hi :) The best documentation is at; https://wiki.documentfoundation.org/Documentation/Publications and the most recent full books are also on the official LibreOffice website. For macros i think the best book by far is Andrew Pitonyak's guide on https://wiki.documentfoundation.org/Documentation/Other_ Documentation_and_Resources#Programmers I'm not sure they will help for this specific use-case but they might help generally. Regards from Tom :) On 19 November 2014 16:05, Matt Price mopto...@gmail.com wrote: Hi, I am trying to add a really simple macro that I can bind to a key. I just want ot be able ot add checkmarks to student papers veyr quickly, so I would like to select a sentence or other text range, then press a key, and have the ckeckmark appear in a new comment. I can almost do htis, using code stolen from the web: rem--- rem -- misleadingly named macro adds a simple hceckmark at point, or in response to highlighted text. sub createComment rem create the annotation object oAnno = ThisComponent.createInstance(com.sun.star.text.textfield.Annotation) rem Chr 10004 is the decimal for hex code 2714, heavy checkmark oAnno.Content = Chr(10004) oAnno.Author = Matt Price oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then rem I don't know what to put in here Else oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) End If end sub --- You can see that, if there's no selection, I already know how to insert the annotation. But I don't know how to attach the annotation to the selected range instead of just the start of the cursor. In general, I don't know where to find the funciton references or even the source code for the relevant functions. I'm finding it quite difficult to figure out how to learn to program -- is there comprehensive documentation somewhere? Thanks, Matt -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-
Re: [libreoffice-users] Re: rtf files
Huhu. Someone needs to write an extension that save odt files as base64-encoded. Tadaa, full plaintext files ;) I'm joking of course. But although rtf is technically plaintext, in practice it's not always straightforward to read with notepad, even when the text isn't mangled away in some way. The only advantage I can see is that it's easier to generate a simple RTF file from any program than to generate an odt. Beyond that, the actual content of an RTF file is at best as useful as the content of the content.xml file in an odt. Slightly more even, as tools to manipulate xml are more common. -- Cley Faye http://cleyfaye.net 2014-11-19 19:25 GMT+01:00 Tom Davies tomc...@gmail.com: Hi :) Ahh, right. Now i'm kinda regretting using 4-6 random letters but not enough to repeat the experiment. I suspect my adfs (or whatever) is probably something like E0\85\9F\F2\F9Oh \AB\91 Regards from Tom :) On 19 November 2014 17:40, Andreas Säger ville...@t-online.de wrote: Am 19.11.2014 um 17:33 schrieb Tom Davies: I'm really not getting plain text. When i right-click and open in a text-editor i get this sort of thing; Which is plain text in plain 7 bit ASCII. I can paste your rtf into any plain text editor, save as tom.rtf and open tom.rtf with any rtf capable word processor. Now I save this in binary .doc, open the doc in a text editor and what I see is this: \D0\CF ࡱ \E1\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00;\00 \00\FE\FF\00 \00\00\00\00\00\00\00\00\00\00\00 \00\00\00 \00\00\00\00\00\00\00\00 \00\00 \00\00\00 \00\00\00\FE\FF\FF\FF\00\00\00\00\00\00\00\00\FF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FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\F F\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\FFR\00o\00o\00t\00 \00E\00n\00t\00r\00y\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00 \00
[libreoffice-users] Re: rtf files
Am 19.11.2014 um 19:23 schrieb Tom Davies: Hi :) Ahh, ok. If that counts as plain text of a 5 (ish) letter document then that explains a few misunderstandings i've had. Regards from Tom :) It is a plain text description of an electronic document. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: macro to add annotation to selected text range
Am 19.11.2014 um 18:59 schrieb Matt Price: Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what the various parameters actually d -- what is the final Boolean doing there? How do you know? But in any case, many thanks for solving htis problem, it's actually pretty awesome to be able to do this with a single keystroke! m It is self documenting. Every object tells everything about itself. All you need is a tool to browse the object hierarchy starting from a given object: http://extensions.libreoffice.org/extension-center/mri-uno-object-inspection-tool OpenOffice tutorial on object inspection with MRI: https://forum.openoffice.org/en/forum/viewtopic.php?f=74t=49294 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: macro to add annotation to selected text range
Thank you Andreas. Unfortunately I don't seem to be able to install either version of the MRI tool -- the unreleased 1.1.4 appears not to be a valid zipfile, whiel 1.1.2 throws this error: (com.sun.star.uno.RuntimeException) { { Message = class 'SyntaxError': invalid syntax (MRI.py, line 21), traceback follows\X000a /usr/lib/libreoffice/program/pythonloader.py:102 in function getModuleFromUrl() [codeobject = compile( src, encfile(filename), \exec\ )]\X000a /usr/lib/libreoffice/program/pythonloader.py:149 in function writeRegistryInfo() [mod = self.getModuleFromUrl( locationUrl )]\X000a\X000a, Context = (com.sun.star.uno.XInterface) @0 } } I suppose this could be a problem with python version? I'm not certain. In any case, I'd really appreciate it if you could point me to a differnt version or to some other tools. Much appreciated! Matt On Wed, Nov 19, 2014 at 2:50 PM, Andreas Säger ville...@t-online.de wrote: Am 19.11.2014 um 18:59 schrieb Matt Price: Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what the various parameters actually d -- what is the final Boolean doing there? How do you know? But in any case, many thanks for solving htis problem, it's actually pretty awesome to be able to do this with a single keystroke! m It is self documenting. Every object tells everything about itself. All you need is a tool to browse the object hierarchy starting from a given object: http://extensions.libreoffice.org/extension-center/mri-uno-object-inspection-tool OpenOffice tutorial on object inspection with MRI: https://forum.openoffice.org/en/forum/viewtopic.php?f=74t=49294 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: Report in Base not executed
Tools - Options - Advanced and if LibreOffice grumbles then switch it back on again. Most people find they can live without Java in LibreOffice and maybe even uninstall it. Indeed LibreOffice grumbles if I switch off Java. As soon as I try to execute the report it reminds me that jre is not running and do I want to switch it on. If I switch it on, I get the error message that the JavaLoader cannot be found, as below: SQL Status: S1000 An error occurred while creating the report. An exception of type com.sun.star.uno.RuntimeException was caught. javaloader error - could not find class com/sun/star/comp/loader/JavaLoader Where is this missing class to be found? Cheers Harvey -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: rtf files
On 11/17/2014 07:41 AM, Andreas Säger wrote: Windows comes with a perfect RTF editor called WordPad. I thought it now used the new WTF format. ;-) -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
Re: [libreoffice-users] Re: macro to add annotation to selected text range
Matt, It occurs to me that I might come off a bit arrogant in my response, but, my intention is to point you at a couple of places that contain the answer to one of your questions. So, please grant me some grace while reading and assume that I have the best of intentions. I have been having some stressful days lately and I have very little time. On 11/19/2014 12:59 PM, Matt Price wrote: Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what the various parameters actually d -- what is the final Boolean doing there? How do you know? The answer is well hidden, but I know where to look :-) If you download this document (which has a bunch of macros so you will be warned that it has macros, you may tell it no, do not enable macros and it will still work fine, you just won't be able to click on all the buttons that run the macros from the document). http://www.pitonyak.org/OOME_3_0.odt Table 123 says the following: insertTextContent(XTextRange, XTextContent, boolean) Insert text content such as a text table, text frame, or text field. In general, the text content should be created by the text object. If the Boolean value is True, the text in the text range is overwritten; otherwise, the text content is inserted after the text range. How did I now to put that into the document? I probably looked here: AOO documentation here: http://www.openoffice.org/api/docs/common/ref/com/sun/star/text/XText.html#insertTextContent or here: LO documentation here: http://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1text_1_1XText.html On the web site, it reads as follows: void insertTextContent ( [in] com::sun::star::text::XTextRange xRange, [in] com::sun::star::text::XTextContent xContent, [in] boolean bAbsorb ) inserts a content, such as a text table, text frame or text field. Which contents are accepted is implementation-specific. Some implementations may only accept contents which were created by the factory that supplied the same text or the document which contains the text. Parameters xRangespecifies the position of insertion. xContentthe text content to be inserted. bAbsorbspecifies whether the text spanned by xRange will be replaced. If TRUE then the content of xRange will be replaced by xContent, otherwise xContent will be inserted at the end of xRange. No, if you are still reading, let me say that it was easy for me to find because I have spent literally thousands of hours working on this stuff and I knew exactly where to look and what to look for (especially since you had a snippet). I do not expect that you would have found it as fast as I and, it is also not clear that without more exposure that it would have been clear that it was what you needed to see. I found the LO link by searching for libreoffice API insertTextContent on Google. While playing with macros, it is common for me inspect the objects in question (I wrote my own object inspector, many people use XRay). I then identify method names that look promising and then use a Google search to figure out how to use that method. But in any case, many thanks for solving htis problem, it's actually pretty awesome to be able to do this with a single keystroke! Glad you figured it out. m On Wed, Nov 19, 2014 at 12:38 PM, Jim Byrnes jf_byr...@comcast.net wrote: On 11/19/2014 10:55 AM, Matt Price wrote: Thanks Tom, I've just spent some time looking htrough Andrew Pitonyak's macro guide. It helps a little but there doesn't seem to be any direct documentation of hte functions. What I'm looking at is the second line reproduced below: oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) Matt, I don't use Writer much and honestly I'm not sure what you expect to see. Try this. In the above two lines change Start to End and False to True and put those two lines right under your rem I don't know what to put in here line. Then select some text and run the macro. Regards, Jim I think oVC.Start needs to be replaced with something else, but I can't figure out what. All of Andrew's examples with insertTextContent insert the content at a single location, not at a text range, so maybe I need a different function. If someone knows another method I'd appreciate the advice. Thanks, Matt On Wed, Nov 19, 2014 at 11:15 AM, Tom Davies tomc...@gmail.com wrote: Hi :) The best documentation is at; https://wiki.documentfoundation.org/Documentation/Publications and the most recent full books are also on the official LibreOffice website. For macros i think the best book by far is Andrew Pitonyak's guide on https://wiki.documentfoundation.org/Documentation/Other_
[libreoffice-users] Re: macro to add annotation to selected text range
On 11/19/2014 12:30 PM, Matt Price wrote: So, I gues there is an API reference: http://api.libreoffice.org/docs/idl/ref/index.html I had trouble loading that page. I usually use the OpenOffice one at: http://www.openoffice.org/api/docs/common/ref/index-files/index-1.html But unfortunately it doesn't give direct documentation for Basic functions. I found this document instead, which tells me where in the API the actual function calls come from: Yes, lack of more comprehensive documentation is a real pain. Hopefully someone with more knowledge than myself will comment on what I am about to write if I am wrong. With the exception of ThisComponent, what you refer to as Basic functions are not really Basic functions at all. Basic simply uses functions/methods supplied by Uno. I could write the same macro in Python but still use the same functions. To me Uno is a huge complex beast that is sparsely documented and hard to use, but very powerful if you understand it. Regards, Jim http://bernard.marcelly.perso.sfr.fr/index2.html The useful macros are embedded in the XRay Tool. It would sure be nice to have something like this in the BASIC editor itself - -I am used to having access to functions documentation when I'm trying to program! On Wed, Nov 19, 2014 at 1:07 PM, Tom Davies tomc...@gmail.com wrote: Hi :) On a linux command-line you can type whatever command and then add a --help or -h tag to get a really neat quick-cheat-sheet, 2 examples; ls --help dir -h Also can often type a command after man (short for manual) to get a much more verbose, but still quite geeky, detail about what the command can do. So; man ls man dir Also just typing help info often gives quite a bit of general help. Is there anything like that for macros? Regards from Tom :) On 19 November 2014 17:59, Matt Price mopto...@gmail.com wrote: Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what the various parameters actually d -- what is the final Boolean doing there? How do you know? But in any case, many thanks for solving htis problem, it's actually pretty awesome to be able to do this with a single keystroke! m On Wed, Nov 19, 2014 at 12:38 PM, Jim Byrnes jf_byr...@comcast.net wrote: On 11/19/2014 10:55 AM, Matt Price wrote: Thanks Tom, I've just spent some time looking htrough Andrew Pitonyak's macro guide. It helps a little but there doesn't seem to be any direct documentation of hte functions. What I'm looking at is the second line reproduced below: oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) Matt, I don't use Writer much and honestly I'm not sure what you expect to see. Try this. In the above two lines change Start to End and False to True and put those two lines right under your rem I don't know what to put in here line. Then select some text and run the macro. Regards, Jim I think oVC.Start needs to be replaced with something else, but I can't figure out what. All of Andrew's examples with insertTextContent insert the content at a single location, not at a text range, so maybe I need a different function. If someone knows another method I'd appreciate the advice. Thanks, Matt On Wed, Nov 19, 2014 at 11:15 AM, Tom Davies tomc...@gmail.com wrote: Hi :) The best documentation is at; https://wiki.documentfoundation.org/Documentation/Publications and the most recent full books are also on the official LibreOffice website. For macros i think the best book by far is Andrew Pitonyak's guide on https://wiki.documentfoundation.org/Documentation/Other_ Documentation_and_Resources#Programmers I'm not sure they will help for this specific use-case but they might help generally. Regards from Tom :) On 19 November 2014 16:05, Matt Price mopto...@gmail.com wrote: Hi, I am trying to add a really simple macro that I can bind to a key. I just want ot be able ot add checkmarks to student papers veyr quickly, so I would like to select a sentence or other text range, then press a key, and have the ckeckmark appear in a new comment. I can almost do htis, using code stolen from the web: rem--- rem -- misleadingly named macro adds a simple hceckmark at point, or in response to highlighted text. sub createComment rem create the annotation object oAnno = ThisComponent.createInstance(com.sun.star.text.textfield.Annotation) rem Chr 10004 is the decimal for hex code 2714, heavy checkmark oAnno.Content = Chr(10004) oAnno.Author = Matt Price oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then rem I
[libreoffice-users] Re: rtf files
Tom Davies: The Rtf spec kept changing at any whim of MS's. They wouldn't publish the new specs until month or even years later. RTF spec is changed according to new product features. Also, it is extensible, so you can implement any subset you need being able to safely ignore the rest and following changes. It is not a problem. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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
[libreoffice-users] Re: rtf files
Cley Faye: is in a straightforward XML file which is as plaintext as an RTF file. In fact, it's easier to strip the extra tags out of an XML file Sure. Now tell us what {urn:oasis:names:tc:opendocument:xmlns:office:1.0}binary-data element is for, and what kind of 'plaintext' it does contain. heavily documented in case of ODT, that put a clear separation between content and format Really? And where, for example, this element is 'documented'? {urn:oasis:names:tc:opendocument:xmlns:style:1.0}num-format -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org 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