Re: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
On Thu, 5 May 2016, Piet van Oostrum wrote: Robert Funnell wrote: > Felipe - > > The hidden text being discussed here is described at > https://help.libreoffice.org/Writer/Hiding_Text > That doesn't seem to be what you're talking about? > > - Robert > That is missing one important case, that I think we were talking about. It is normal text, that has been formatted with Format > Character > Font Effects > Hidden. OK, now I know there are two ways of hiding text :-) Thank you. -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Walther Koehler wrote: > I posted the tag, which I think is the relevant, before: > > >>> blabla > I assume "P2" refers to printable, suppressing output on paper. > if you have a simple command line No, "P2" is just a name, it could be anything. You would have to look up the style definition of "P2" and see if it has a text:display="none" in it. And there can be more than one of these styles, depending on the other character attributes, like font, size or color. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Robert Funnell wrote: > Felipe - > > The hidden text being discussed here is described at > https://help.libreoffice.org/Writer/Hiding_Text > That doesn't seem to be what you're talking about? > > - Robert > That is missing one important case, that I think we were talking about. It is normal text, that has been formatted with Format > Character > Font Effects > Hidden. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Hallo, look at your *.txt file: the previously hidden formated text appears as plain string. enjoy LO Am Donnerstag, 5. Mai 2016 schrieb Luuk: > On 03-05-16 19:13, Walther Koehler wrote: > > Hallo, > > > > Am Dienstag, 3. Mai 2016 schrieb Bruce Hohl: > >>> Do you have some advice how to remove the hidden (hard-)formatted text > >>> in > >> > >> a > >> > >>> simple way? > >> > >> File > Save :: Save as type = Text (.txt) OR Text - Choose Encoding > >> (.txt) Thus, LO can be used to read, create and edit unformatted text > >> files. > > > > Yes, you are right, but it does not solve my problem. The text file will > > contain the hidden formated text. > > > > To make it very clear: > > I do not care about the format information in the file. > > I do not want the content (the hidden formated characters) in the file > > before shipping. > > Are you saying that there are still 'hidden formated text' things in the > textfile that is created when one does do 'File/SaveAs/.txt' ?? > > ? -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt
Hi Piet, your makro is ingenious, short and effective, it does the job, than you very much, I am happy. Walther Am Mittwoch, 4. Mai 2016 schrieb Piet van Oostrum: > Walther Koehler wrote: > > Am Mittwoch, 4. Mai 2016 schrieb Piet van Oostrum: > > > Walther Koehler wrote: > > > > Thank you. > > > > Your procedure is principally what I need. > > > > However, quite complicated for routine work. > > > > > > > > Walther > > > > > > The first part (replacing hidden text with colored text) could be done > > > with a script. > > > > yes, and the whole procedure could be packed in a basic makro. > > The script can be called by a shell command within a makro, the replace > > functions realized with dispatcher commands. > > > > Let us try it. > > > > Walther > > Even simpler: > > Here is a Basic macro that just walks through the document, and deletes all > hidden text. No unzipping, editing, etc. It just works inside the ODT > document in LO. > > It only considers normal plain text, i.e. not inside tables, sections, > frames, footnotes, etc. If you want that, these have to be specially coded. > > REM * BASIC * > > Sub Main > > Dim oEnum 'com.sun.star.container.XEnumerationAccess > Dim oPar > Dim oSecEnum'com.sun.star.container.XEnumerationAccess > Dim oParSection > > oEnum = ThisComponent.Text.createEnumeration() > Do While oEnum.hasMoreElements() > oPar = oEnum.nextElement() > If oPar.supportsService("com.sun.star.text.Paragraph") Then > oSecEnum = oPar.createEnumeration() > Do While oSecEnum.hasMoreElements() > oParSection = > oSecEnum.nextElement() > If oParSection.TextPortionType > = "Text" AND oParSection.CharHidden > Then oParSection.setString("") > End If > Loop > > End If > Loop > > End Sub > -- > Piet van Oostrum > WWW: http://pietvanoostrum.com/ > PGP key: [8DAE142BE17999C4] -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt
Hi Piet, superb, a makro! I will try it later on. Walther Am Mittwoch, 4. Mai 2016 schrieb Piet van Oostrum: > Walther Koehler wrote: > > Am Mittwoch, 4. Mai 2016 schrieb Piet van Oostrum: > > > Walther Koehler wrote: > > > > Thank you. > > > > Your procedure is principally what I need. > > > > However, quite complicated for routine work. > > > > > > > > Walther > > > > > > The first part (replacing hidden text with colored text) could be done > > > with a script. > > > > yes, and the whole procedure could be packed in a basic makro. > > The script can be called by a shell command within a makro, the replace > > functions realized with dispatcher commands. > > > > Let us try it. > > > > Walther > > Even simpler: > > Here is a Basic macro that just walks through the document, and deletes all > hidden text. No unzipping, editing, etc. It just works inside the ODT > document in LO. > > It only considers normal plain text, i.e. not inside tables, sections, > frames, footnotes, etc. If you want that, these have to be specially coded. > > REM * BASIC * > > Sub Main > > Dim oEnum 'com.sun.star.container.XEnumerationAccess > Dim oPar > Dim oSecEnum'com.sun.star.container.XEnumerationAccess > Dim oParSection > > oEnum = ThisComponent.Text.createEnumeration() > Do While oEnum.hasMoreElements() > oPar = oEnum.nextElement() > If oPar.supportsService("com.sun.star.text.Paragraph") Then > oSecEnum = oPar.createEnumeration() > Do While oSecEnum.hasMoreElements() > oParSection = > oSecEnum.nextElement() > If oParSection.TextPortionType > = "Text" AND oParSection.CharHidden > Then oParSection.setString("") > End If > Loop > > End If > Loop > > End Sub > -- > Piet van Oostrum > WWW: http://pietvanoostrum.com/ > PGP key: [8DAE142BE17999C4] -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Am Mittwoch, 4. Mai 2016 schrieben Sie: > Does this sound like a workable approach if you were familiar with > Emacs? If you were able to identify exactly what needs to be removed > from content.xml, and sent me a fragment of a file to illustrate it, I > might be able to specify a sequence of commands that you could use. I posted the tag, which I think is the relevant, before: > >>> blabla I assume "P2" refers to printable, suppressing output on paper. if you have a simple command line > > On Tue, 3 May 2016, Walther Koehler wrote: > > Hi Robert > > > > Am Dienstag, 3. Mai 2016 schrieb Robert Funnell: > >> Walther - > >> > >> Could you open your content.xml with Emacs and record a macro to > >> find and remove the hidden text? (I'm not sure that qualifies as > >> simple.) > > > > Unfortunately, I am not used to emacs, although I know it is a very > > powerful editor. > > > > Walther > > > >> - Robert > >> > >> On Tue, 3 May 2016, Walther Koehler wrote: > >>> Hallo, > >>> > >>> Am Dienstag, 3. Mai 2016 schrieb Bruce Hohl: > > Do you have some advice how to remove the hidden (hard-)formatted > > text in > > a > > > simple way? > > File > Save :: Save as type = Text (.txt) OR Text - Choose Encoding > (.txt) Thus, LO can be used to read, create and edit unformatted text > files. > >>> > >>> Yes, you are right, but it does not solve my problem. The text file > >>> will contain the hidden formated text. > >>> > >>> To make it very clear: > >>> I do not care about the format information in the file. > >>> I do not want the content (the hidden formated characters) in the file > >>> before shipping. > >>> > >>> Using linux, the command line program xpath might do the job. It is > >>> capable of removing certain xml tags in a file like > >>> > >>> blabla > >>> > >>> Regards > >>> > >>> Walther > >>> > >>> ... > >>> > >> From: Walther Koehler > >> Date: Fri, Apr 29, 2016 at 5:54 AM > >> Subject: [libreoffice-users] delete hidden formated text in odt > >> To: users@global.libreoffice.org > >> > >> > >> Dear LO users, > >> > >> I would like to give away *.odt files without hidden formated text. > >> Do you have some advice how to remove the hidden (hard-)formatted > >> text > > > > in a > > > >> simple way? > >> Is it possible by a macro? > >> > >> (I am aware that you can make hidden text invisible and print the > >> file without > >> hidden text on paper. I also know how to remove properties) > >> > >> Thank you in advance > >> > >> Walther -- 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
Fwd: Re: free text editor (was: [libreoffice-users] delete hidden formated text in odt
Hi Piet, because your makro left over empty paragraph marks I added a few lines. Walther -- Weitergeleitete Nachricht -- Subject: Re: free text editor (was: [libreoffice-users] delete hidden formated text in odt Date: Donnerstag, 5. Mai 2016 From: Walther Koehler To: Piet van Oostrum Hi Piet, superb, a makro! I will try it later on. Walther Am Mittwoch, 4. Mai 2016 schrieb Piet van Oostrum: > Walther Koehler wrote: > > Am Mittwoch, 4. Mai 2016 schrieb Piet van Oostrum: > > > Walther Koehler wrote: > > > > Thank you. > > > > Your procedure is principally what I need. > > > > However, quite complicated for routine work. > > > > > > > > Walther > > > > > > The first part (replacing hidden text with colored text) could be done > > > with a script. > > > > yes, and the whole procedure could be packed in a basic makro. > > The script can be called by a shell command within a makro, the replace > > functions realized with dispatcher commands. > > > > Let us try it. > > > > Walther > > Even simpler: > > Here is a Basic macro that just walks through the document, and deletes all > hidden text. No unzipping, editing, etc. It just works inside the ODT > document in LO. > > It only considers normal plain text, i.e. not inside tables, sections, > frames, footnotes, etc. If you want that, these have to be specially coded. > > REM * BASIC * > > Sub Main > > Dim oEnum 'com.sun.star.container.XEnumerationAccess > Dim oPar > Dim oSecEnum'com.sun.star.container.XEnumerationAccess > Dim oParSection > > oEnum = ThisComponent.Text.createEnumeration() > oTxt=ThisComponent.Text > Do While oEnum.hasMoreElements() > oPar = oEnum.nextElement() > If oPar.supportsService("com.sun.star.text.Paragraph") Then > oSecEnum = oPar.createEnumeration() > flag=0 > Do While oSecEnum.hasMoreElements() > oParSection = > oSecEnum.nextElement() > If oParSection.TextPortionType > = "Text" AND oParSection.CharHidden Then > oParSection.setString("") > else >flag=1 > End If > Loop > if flag=0 then oTxt.removeTextContent(oPar) > End If > Loop > > End Sub > -- > Piet van Oostrum > WWW: http://pietvanoostrum.com/ > PGP key: [8DAE142BE17999C4] --- -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Felipe - The hidden text being discussed here is described at https://help.libreoffice.org/Writer/Hiding_Text That doesn't seem to be what you're talking about? - Robert On Thu, 5 May 2016, Felipe T. Dorado wrote: Hello Luuk : ) On Thu, 5 May 2016 13:18:23 +0200, Luuk wrote: L> On 05-05-16 11:12, Piet van Oostrum wrote: L> > Save as .txt des save all text, including hidden text. Just try it out. I have, Piet. L> I think i have a different meaning of 'hidden text', than the average L> reader here :-) It would seem so. Re-inventing the wheel isn't either smart nor efficient: I wrote a file containing just: "This an ODT file written in LibreOffice 5.1. " I saved it in LO native format: an_odt_file.odt Then I saved it as text (plain, flat, ascii): an_odt_file.txt I listed the directory where I saved them and: bytes datefile 8628may 5 20:07an_odt_file.odt 49 may 5 20:07an_odt_file.txt I opened the txt file with various text editors (nano, leafpad, gedit, even notepad through wine) and have not been able to find any "hidden text" ... Just 49 bytes including spaces and Line Feed. What do people understand by "hidden text"? The coding put there by a word processor? Saving a file as text is just that: saving it as text (plain, flat, ascii) with nothing else. M$Win seems to produce strange things in how some users conceive files: macros, scripts, programs, etc. just to strip the good old codes WordStar, WordPerfect and many others nowadays simply _hide away_ so the user cannot see them. But they are there, doing their tasks. Text is text. Just like this I've just written is text and nothing more. Felipe : ) -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Hello Luuk : ) On Thu, 5 May 2016 13:18:23 +0200, Luuk wrote: L> On 05-05-16 11:12, Piet van Oostrum wrote: L> > Save as .txt des save all text, including hidden text. Just try it out. I have, Piet. L> I think i have a different meaning of 'hidden text', than the average L> reader here :-) It would seem so. Re-inventing the wheel isn't either smart nor efficient: I wrote a file containing just: "This an ODT file written in LibreOffice 5.1. " I saved it in LO native format: an_odt_file.odt Then I saved it as text (plain, flat, ascii): an_odt_file.txt I listed the directory where I saved them and: bytes datefile 8628may 5 20:07an_odt_file.odt 49 may 5 20:07an_odt_file.txt I opened the txt file with various text editors (nano, leafpad, gedit, even notepad through wine) and have not been able to find any "hidden text" ... Just 49 bytes including spaces and Line Feed. What do people understand by "hidden text"? The coding put there by a word processor? Saving a file as text is just that: saving it as text (plain, flat, ascii) with nothing else. M$Win seems to produce strange things in how some users conceive files: macros, scripts, programs, etc. just to strip the good old codes WordStar, WordPerfect and many others nowadays simply _hide away_ so the user cannot see them. But they are there, doing their tasks. Text is text. Just like this I've just written is text and nothing more. Felipe : ) -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
On 05-05-16 11:12, Piet van Oostrum wrote: Luuk wrote: > > Are you saying that there are still 'hidden formated text' things in the > textfile that is created when one does do 'File/SaveAs/.txt' ?? > Save as .txt des save all text, including hidden text. Just try it out. I think i have a different meaning of 'hidden text', than the average reader 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Luuk wrote: > > Are you saying that there are still 'hidden formated text' things in the > textfile that is created when one does do 'File/SaveAs/.txt' ?? > Save as .txt des save all text, including hidden text. Just try it out. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
On 03-05-16 19:13, Walther Koehler wrote: Hallo, Am Dienstag, 3. Mai 2016 schrieb Bruce Hohl: Do you have some advice how to remove the hidden (hard-)formatted text in a simple way? File > Save :: Save as type = Text (.txt) OR Text - Choose Encoding (.txt) Thus, LO can be used to read, create and edit unformatted text files. Yes, you are right, but it does not solve my problem. The text file will contain the hidden formated text. To make it very clear: I do not care about the format information in the file. I do not want the content (the hidden formated characters) in the file before shipping. Are you saying that there are still 'hidden formated text' things in the textfile that is created when one does do 'File/SaveAs/.txt' ?? ? -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt
Walther Koehler wrote: > Am Mittwoch, 4. Mai 2016 schrieb Piet van Oostrum: > > Walther Koehler wrote: > > > Thank you. > > > Your procedure is principally what I need. > > > However, quite complicated for routine work. > > > > > > Walther > > > > The first part (replacing hidden text with colored text) could be done with > > a script. > yes, and the whole procedure could be packed in a basic makro. > The script can be called by a shell command within a makro, the replace > functions realized with dispatcher commands. > > Let us try it. > > Walther Even simpler: Here is a Basic macro that just walks through the document, and deletes all hidden text. No unzipping, editing, etc. It just works inside the ODT document in LO. It only considers normal plain text, i.e. not inside tables, sections, frames, footnotes, etc. If you want that, these have to be specially coded. REM * BASIC * Sub Main Dim oEnum 'com.sun.star.container.XEnumerationAccess Dim oPar Dim oSecEnum'com.sun.star.container.XEnumerationAccess Dim oParSection oEnum = ThisComponent.Text.createEnumeration() Do While oEnum.hasMoreElements() oPar = oEnum.nextElement() If oPar.supportsService("com.sun.star.text.Paragraph") Then oSecEnum = oPar.createEnumeration() Do While oSecEnum.hasMoreElements() oParSection = oSecEnum.nextElement() If oParSection.TextPortionType = "Text" AND oParSection.CharHidden Then oParSection.setString("") End If Loop End If Loop End Sub -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Hallo, thanks for your reply. But I dont want to use another editor. Walther Am Dienstag, 3. Mai 2016 schrieb Barry Smith: > Notepad was still in Windows distributions the last time I was aware. > Windows 7 included it, and i think Windows 10 still includes Notepad. > If not, there is a free program named Notepad++ . > > Another fairly independent way to distribute documents is by outputting to > PDF. Every platform that I know of supports PDF. > > On Tuesday, May 3, 2016, anne-ology > > wrote: > >Thanks for this information; > > some on this list might enjoying knowing about it. > > > >Since I think you sent this to me by mistake, am sending on to the > > list; > > I am not interested in changing. > > > > > > > > From: Tim Deaton > > Date: Mon, May 2, 2016 at 9:44 PM > > Subject: Re: free text editor (was: [libreoffice-users] delete hidden > > formated text in odt) > > To: anne-ology > > > > > > I've been using NoteTab (from Fookes Software, in Switzerland) for > > several years now as my text editor. After using the free version > > (NoteTab Light) for a few years, I upgraded to the paid version. I still > > don't use any features that aren't in the free version, but I figured the > > authors deserved something for their excellent work. > > > > You can find the free version here: > > http://www.notetab.com/notetab-light > > > > I think you'll really enjoy it. > > > > -- Tim Deaton > > > > > > > > On 4/29/2016 2:39 PM, anne-ology wrote: > > > > If you're referring to eliminating the formatting, then I think > > > > > you'll have a non-formatted document; > > >if so, then using a simple text document should do this. > > > > > > The only one I know that still exists is Notepad - once placed > > > on all MsFt machines, but now not; > > >I still have it - saved from my older machine - & would be > > > > glad > > > > > to upload to you if you so wish. > > > > > > > > > > > > From: Walther Koehler > > > Date: Fri, Apr 29, 2016 at 5:54 AM > > > Subject: [libreoffice-users] delete hidden formated text in odt > > > To: users@global.libreoffice.org > > > > > > > > > Dear LO users, > > > > > > I would like to give away *.odt files without hidden formated text. > > > Do you have some advice how to remove the hidden (hard-)formatted text > > > > in a > > > > > simple way? > > > Is it possible by a macro? > > > > > > (I am aware that you can make hidden text invisible and print the file > > > without > > > hidden text on paper. I also know how to remove properties) > > > > > > Thank you in advance > > > > > > Walther > > > > -- > > 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 > > -- > > -- > Barry Smith > Secure Computer Service > c 704-497-4217 > e bnsmith...@gmail.com > e scs.bns...@gmail.com > e barry.judy.sm...@gmail.com > w1 http://bit.ly/l8QJup > w2 <http://bit.ly/l8QJup w2> http://scs-llc.info/ > Feel free to donate to my survival fund at http://j.mp/OOSsz6 -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Walther Koehler wrote: > Hi Robert > > Am Dienstag, 3. Mai 2016 schrieb Robert Funnell: > > Walther - > > > > Could you open your content.xml with Emacs and record a macro to > > find and remove the hidden text? (I'm not sure that qualifies as > > simple.) > Unfortunately, I am not used to emacs, although I know it is a very powerful > editor. Here is a simple recipe that you can use with any text editor (including sed): Please do this on a copy of your original document, or make a backup copy first. Unzip from your document the file content.xml: > unzip HiddenText.odt content.xml Edit content.xml, replace all occurrences of text:display="none" with fo:color="#800080" This replaces the hidden text with a colored text. I have chosen magenta (#800080) here; you should choose a color that is not used in your document. > sed -e 's/text:display="none"/fo:color="#800080"/' content.xml > content2.xml Rename the new file to content.xml > mv content2.xml content.xml Replace content.xml in the ODT file > zip HiddenText.odt content.xml Now open the file in LibreOffice, and replace the magenta-colored text with empty text. Edit > Find & Replace Other Options > Format > Font Effects > Font color > Magenta I found that Replace All did not work. It said that it replaced the text but it didn't (LO 5.1.2.2 on Mac OS X). The alternative Replace and Find extension, however, did work. There you choose [:::CharColor=8388736::] as search criterium (colors are given in decimal). -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Hi Robert Am Dienstag, 3. Mai 2016 schrieb Robert Funnell: > Walther - > > Could you open your content.xml with Emacs and record a macro to > find and remove the hidden text? (I'm not sure that qualifies as > simple.) Unfortunately, I am not used to emacs, although I know it is a very powerful editor. Walther > > - Robert > > On Tue, 3 May 2016, Walther Koehler wrote: > > Hallo, > > > > Am Dienstag, 3. Mai 2016 schrieb Bruce Hohl: > >> > Do you have some advice how to remove the hidden (hard-)formatted text > >> > in > >> > >> a > >> > >> > simple way? > >> > >> File > Save :: Save as type = Text (.txt) OR Text - Choose Encoding > >> (.txt) Thus, LO can be used to read, create and edit unformatted text > >> files. > > > > Yes, you are right, but it does not solve my problem. The text file will > > contain the hidden formated text. > > > > To make it very clear: > > I do not care about the format information in the file. > > I do not want the content (the hidden formated characters) in the file > > before shipping. > > > > Using linux, the command line program xpath might do the job. It is > > capable of removing certain xml tags in a file like > > > > blabla > > > > Regards > > > > Walther > > > > ... > > > >> > > From: Walther Koehler > >> > > Date: Fri, Apr 29, 2016 at 5:54 AM > >> > > Subject: [libreoffice-users] delete hidden formated text in odt > >> > > To: users@global.libreoffice.org > >> > > > >> > > > >> > > Dear LO users, > >> > > > >> > > I would like to give away *.odt files without hidden formated text. > >> > > Do you have some advice how to remove the hidden (hard-)formatted > >> > > text > >> > > >> > in a > >> > > >> > > simple way? > >> > > Is it possible by a macro? > >> > > > >> > > (I am aware that you can make hidden text invisible and print the > >> > > file without > >> > > hidden text on paper. I also know how to remove properties) > >> > > > >> > > Thank you in advance > >> > > > >> > > Walther -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
I tend to have NoteTab and Notepad++ installed on most of the Windows systems - Win7 through Win10. Both works fine for me. I used one or the other when I was hand coding web pages back in the WinXP days. This was before I switched to Ubuntu Linux. On 05/03/2016 05:13 PM, Barry Smith wrote: Notepad was still in Windows distributions the last time I was aware. Windows 7 included it, and i think Windows 10 still includes Notepad. If not, there is a free program named Notepad++ . Another fairly independent way to distribute documents is by outputting to PDF. Every platform that I know of supports PDF. On Tuesday, May 3, 2016, anne-ology > wrote: Thanks for this information; some on this list might enjoying knowing about it. Since I think you sent this to me by mistake, am sending on to the list; I am not interested in changing. From: Tim Deaton Date: Mon, May 2, 2016 at 9:44 PM Subject: Re: free text editor (was: [libreoffice-users] delete hidden formated text in odt) To: anne-ology I've been using NoteTab (from Fookes Software, in Switzerland) for several years now as my text editor. After using the free version (NoteTab Light) for a few years, I upgraded to the paid version. I still don't use any features that aren't in the free version, but I figured the authors deserved something for their excellent work. You can find the free version here: http://www.notetab.com/notetab-light I think you'll really enjoy it. -- Tim Deaton On 4/29/2016 2:39 PM, anne-ology wrote: If you're referring to eliminating the formatting, then I think you'll have a non-formatted document; if so, then using a simple text document should do this. The only one I know that still exists is Notepad - once placed on all MsFt machines, but now not; I still have it - saved from my older machine - & would be glad to upload to you if you so wish. From: Walther Koehler Date: Fri, Apr 29, 2016 at 5:54 AM Subject: [libreoffice-users] delete hidden formated text in odt To: users@global.libreoffice.org Dear LO users, I would like to give away *.odt files without hidden formated text. Do you have some advice how to remove the hidden (hard-)formatted text in a simple way? Is it possible by a macro? (I am aware that you can make hidden text invisible and print the file without hidden text on paper. I also know how to remove properties) Thank you in advance Walther -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Notepad was still in Windows distributions the last time I was aware. Windows 7 included it, and i think Windows 10 still includes Notepad. If not, there is a free program named Notepad++ . Another fairly independent way to distribute documents is by outputting to PDF. Every platform that I know of supports PDF. On Tuesday, May 3, 2016, anne-ology > wrote: >Thanks for this information; > some on this list might enjoying knowing about it. > >Since I think you sent this to me by mistake, am sending on to the > list; > I am not interested in changing. > > > > From: Tim Deaton > Date: Mon, May 2, 2016 at 9:44 PM > Subject: Re: free text editor (was: [libreoffice-users] delete hidden > formated text in odt) > To: anne-ology > > > I've been using NoteTab (from Fookes Software, in Switzerland) for several > years now as my text editor. After using the free version (NoteTab Light) > for a few years, I upgraded to the paid version. I still don't use any > features that aren't in the free version, but I figured the authors > deserved something for their excellent work. > > You can find the free version here: > http://www.notetab.com/notetab-light > > I think you'll really enjoy it. > > -- Tim Deaton > > > > On 4/29/2016 2:39 PM, anne-ology wrote: > > If you're referring to eliminating the formatting, then I think > > you'll have a non-formatted document; > >if so, then using a simple text document should do this. > > > > The only one I know that still exists is Notepad - once placed on > > all MsFt machines, but now not; > >I still have it - saved from my older machine - & would be > glad > > to upload to you if you so wish. > > > > > > > > From: Walther Koehler > > Date: Fri, Apr 29, 2016 at 5:54 AM > > Subject: [libreoffice-users] delete hidden formated text in odt > > To: users@global.libreoffice.org > > > > > > Dear LO users, > > > > I would like to give away *.odt files without hidden formated text. > > Do you have some advice how to remove the hidden (hard-)formatted text > in a > > simple way? > > Is it possible by a macro? > > > > (I am aware that you can make hidden text invisible and print the file > > without > > hidden text on paper. I also know how to remove properties) > > > > Thank you in advance > > > > Walther > > > > > > -- > 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 > -- -- Barry Smith Secure Computer Service c 704-497-4217 e bnsmith...@gmail.com e scs.bns...@gmail.com e barry.judy.sm...@gmail.com w1 http://bit.ly/l8QJup w2 <http://bit.ly/l8QJup w2> http://scs-llc.info/ Feel free to donate to my survival fund at http://j.mp/OOSsz6 -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Perhaps LO Find & Replace using Regular expressions would work. Not an LO solution but SED can be useful for such tasks. Can you post a sample of the file contents? On Tue, May 3, 2016 at 4:16 PM, Robert Funnell wrote: > Walther - > > Could you open your content.xml with Emacs and record a macro to find and > remove the hidden text? (I'm not sure that qualifies as simple.) > > - Robert > > On Tue, 3 May 2016, Walther Koehler wrote: > > Hallo, >> Am Dienstag, 3. Mai 2016 schrieb Bruce Hohl: >> >>> > Do you have some advice how to remove the hidden (hard-)formatted text >>> in >>> >>> a >>> >>> > simple way? >>> >>> File > Save :: Save as type = Text (.txt) OR Text - Choose Encoding >>> (.txt) >>> Thus, LO can be used to read, create and edit unformatted text files. >>> >> >> Yes, you are right, but it does not solve my problem. The text file will >> contain the hidden formated text. >> >> To make it very clear: >> I do not care about the format information in the file. >> I do not want the content (the hidden formated characters) in the file >> before shipping. >> >> Using linux, the command line program xpath might do the job. It is >> capable of removing certain xml tags in a file like >> >> blabla >> >> Regards >> >> Walther >> >> ... >> >> > > From: Walther Koehler >>> > > Date: Fri, Apr 29, 2016 at 5:54 AM >>> > > Subject: [libreoffice-users] delete hidden formated text in odt >>> > > To: users@global.libreoffice.org >>> > > >>> > > >>> > > Dear LO users, >>> > > >>> > > I would like to give away *.odt files without hidden formated text. >>> > > Do you have some advice how to remove the hidden (hard-)formatted >>> text >>> > >>> > in a >>> > >>> > > simple way? >>> > > Is it possible by a macro? >>> > > >>> > > (I am aware that you can make hidden text invisible and print the >>> file >>> > > without >>> > > hidden text on paper. I also know how to remove properties) >>> > > >>> > > Thank you in advance >>> > > >>> > > Walther >>> >> > -- > 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Walther - Could you open your content.xml with Emacs and record a macro to find and remove the hidden text? (I'm not sure that qualifies as simple.) - Robert On Tue, 3 May 2016, Walther Koehler wrote: Hallo, Am Dienstag, 3. Mai 2016 schrieb Bruce Hohl: > Do you have some advice how to remove the hidden (hard-)formatted text in a > simple way? File > Save :: Save as type = Text (.txt) OR Text - Choose Encoding (.txt) Thus, LO can be used to read, create and edit unformatted text files. Yes, you are right, but it does not solve my problem. The text file will contain the hidden formated text. To make it very clear: I do not care about the format information in the file. I do not want the content (the hidden formated characters) in the file before shipping. Using linux, the command line program xpath might do the job. It is capable of removing certain xml tags in a file like blabla Regards Walther ... > > From: Walther Koehler > > Date: Fri, Apr 29, 2016 at 5:54 AM > > Subject: [libreoffice-users] delete hidden formated text in odt > > To: users@global.libreoffice.org > > > > > > Dear LO users, > > > > I would like to give away *.odt files without hidden formated text. > > Do you have some advice how to remove the hidden (hard-)formatted text > > in a > > > simple way? > > Is it possible by a macro? > > > > (I am aware that you can make hidden text invisible and print the file > > without > > hidden text on paper. I also know how to remove properties) > > > > Thank you in advance > > > > Walther -- 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Hallo, Am Dienstag, 3. Mai 2016 schrieb Bruce Hohl: > > Do you have some advice how to remove the hidden (hard-)formatted text in > > a > > > simple way? > > File > Save :: Save as type = Text (.txt) OR Text - Choose Encoding (.txt) > Thus, LO can be used to read, create and edit unformatted text files. Yes, you are right, but it does not solve my problem. The text file will contain the hidden formated text. To make it very clear: I do not care about the format information in the file. I do not want the content (the hidden formated characters) in the file before shipping. Using linux, the command line program xpath might do the job. It is capable of removing certain xml tags in a file like blabla Regards Walther > > On Tue, May 3, 2016 at 12:37 PM, anne-ology wrote: > >Thanks for this information; > > some on this list might enjoying knowing about it. > > > >Since I think you sent this to me by mistake, am sending on to the > > list; > > I am not interested in changing. > > > > > > > > From: Tim Deaton > > Date: Mon, May 2, 2016 at 9:44 PM > > Subject: Re: free text editor (was: [libreoffice-users] delete hidden > > formated text in odt) > > To: anne-ology > > > > > > I've been using NoteTab (from Fookes Software, in Switzerland) for > > several years now as my text editor. After using the free version > > (NoteTab Light) for a few years, I upgraded to the paid version. I still > > don't use any features that aren't in the free version, but I figured the > > authors deserved something for their excellent work. > > > > You can find the free version here: > > http://www.notetab.com/notetab-light > > > > I think you'll really enjoy it. > > > > -- Tim Deaton > > > > > > > > On 4/29/2016 2:39 PM, anne-ology wrote: > > > > If you're referring to eliminating the formatting, then I think > > > > > you'll have a non-formatted document; > > >if so, then using a simple text document should do this. > > > > > > The only one I know that still exists is Notepad - once placed > > > on all MsFt machines, but now not; > > >I still have it - saved from my older machine - & would be > > > > glad > > > > > to upload to you if you so wish. > > > > > > > > > > > > From: Walther Koehler > > > Date: Fri, Apr 29, 2016 at 5:54 AM > > > Subject: [libreoffice-users] delete hidden formated text in odt > > > To: users@global.libreoffice.org > > > > > > > > > Dear LO users, > > > > > > I would like to give away *.odt files without hidden formated text. > > > Do you have some advice how to remove the hidden (hard-)formatted text > > > > in a > > > > > simple way? > > > Is it possible by a macro? > > > > > > (I am aware that you can make hidden text invisible and print the file > > > without > > > hidden text on paper. I also know how to remove properties) > > > > > > Thank you in advance > > > > > > Walther > > > > -- > > 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
> Do you have some advice how to remove the hidden (hard-)formatted text in a > simple way? File > Save :: Save as type = Text (.txt) OR Text - Choose Encoding (.txt) Thus, LO can be used to read, create and edit unformatted text files. On Tue, May 3, 2016 at 12:37 PM, anne-ology wrote: >Thanks for this information; > some on this list might enjoying knowing about it. > >Since I think you sent this to me by mistake, am sending on to the > list; > I am not interested in changing. > > > > From: Tim Deaton > Date: Mon, May 2, 2016 at 9:44 PM > Subject: Re: free text editor (was: [libreoffice-users] delete hidden > formated text in odt) > To: anne-ology > > > I've been using NoteTab (from Fookes Software, in Switzerland) for several > years now as my text editor. After using the free version (NoteTab Light) > for a few years, I upgraded to the paid version. I still don't use any > features that aren't in the free version, but I figured the authors > deserved something for their excellent work. > > You can find the free version here: > http://www.notetab.com/notetab-light > > I think you'll really enjoy it. > > -- Tim Deaton > > > > On 4/29/2016 2:39 PM, anne-ology wrote: > > If you're referring to eliminating the formatting, then I think > > you'll have a non-formatted document; > >if so, then using a simple text document should do this. > > > > The only one I know that still exists is Notepad - once placed on > > all MsFt machines, but now not; > >I still have it - saved from my older machine - & would be > glad > > to upload to you if you so wish. > > > > > > > > From: Walther Koehler > > Date: Fri, Apr 29, 2016 at 5:54 AM > > Subject: [libreoffice-users] delete hidden formated text in odt > > To: users@global.libreoffice.org > > > > > > Dear LO users, > > > > I would like to give away *.odt files without hidden formated text. > > Do you have some advice how to remove the hidden (hard-)formatted text > in a > > simple way? > > Is it possible by a macro? > > > > (I am aware that you can make hidden text invisible and print the file > > without > > hidden text on paper. I also know how to remove properties) > > > > Thank you in advance > > > > Walther > > > > > > -- > 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: free text editor (was: [libreoffice-users] delete hidden formated text in odt)
Thanks for this information; some on this list might enjoying knowing about it. Since I think you sent this to me by mistake, am sending on to the list; I am not interested in changing. From: Tim Deaton Date: Mon, May 2, 2016 at 9:44 PM Subject: Re: free text editor (was: [libreoffice-users] delete hidden formated text in odt) To: anne-ology I've been using NoteTab (from Fookes Software, in Switzerland) for several years now as my text editor. After using the free version (NoteTab Light) for a few years, I upgraded to the paid version. I still don't use any features that aren't in the free version, but I figured the authors deserved something for their excellent work. You can find the free version here: http://www.notetab.com/notetab-light I think you'll really enjoy it. -- Tim Deaton On 4/29/2016 2:39 PM, anne-ology wrote: If you're referring to eliminating the formatting, then I think > you'll have a non-formatted document; >if so, then using a simple text document should do this. > > The only one I know that still exists is Notepad - once placed on > all MsFt machines, but now not; >I still have it - saved from my older machine - & would be glad > to upload to you if you so wish. > > > > From: Walther Koehler > Date: Fri, Apr 29, 2016 at 5:54 AM > Subject: [libreoffice-users] delete hidden formated text in odt > To: users@global.libreoffice.org > > > Dear LO users, > > I would like to give away *.odt files without hidden formated text. > Do you have some advice how to remove the hidden (hard-)formatted text in a > simple way? > Is it possible by a macro? > > (I am aware that you can make hidden text invisible and print the file > without > hidden text on paper. I also know how to remove properties) > > Thank you in advance > > Walther > > -- 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