Re: [libreoffice-users] Re: LO Writer (Linux): Way to do text search in set of documents?

2014-09-12 Thread Brian Barker

At 16:30 12/09/2014 +, Maurice Noname wrote:
I've just started looking into Master Documents, although I have a 
suspicion it would be a 'sledgehammer to crack a walnut'. After 
studying the info I felt confident enough to try a test, but struck 
a rock almost immediately:


I made a small file with just one line of text, did File/Send/Master 
Document, got taken to the filename enter box (filter showed ODF 
Master Document), entered testmaster and hit 'Save'. Result: 
Error window saying Can't create document. No hint of why not, ...


I suppose the first culprit would be permissions in the appropriate 
folder: do you have rights to create files there?



... so not sure what to try next...


o Save your small file first.
o Create a new master document through File | New or the drop-down 
next to the New button.

o Use Insert | File in the Navigator to insert your small file.


(Presumably there is some minimum structure missing, but what?!)


I can insert an empty file into a master document using either 
technique, so I think not.


I trust this helps.

Brian Barker


--
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: LO Writer (Linux): Way to do text search in set of documents?

2014-09-02 Thread Tom Davies
Hi :)
Blimey!  I can't believe how many different ways of doing it have been
suggested and how many answers this thread has received.  Brilliant work
everyone!  I learn tons through this thread and really enjoyed it.
Many thanks and regards from
Tom :)



On 31 August 2014 18:30, anne-ology lagin...@gmail.com wrote:

Maybe it doesn't work in Linux,
   but LO's 'Find-Replace' works with multiple documents for me;
[still with 3.4 ]

The only thing that never worked is the 'Find', for some reason  ;-)
   I'll click on that one by mistake at times, only to have the
 document sit doing nothing ...
  then I click on the Find-Replace and can find, or whatever, fine
 ;-)

Was this a bug back-then or what?



 From: Tim---Kracked_P_P---webmaster webmas...@krackedpress.com
 Date: Sat, Aug 30, 2014 at 8:48 AM
 Subject: Re: [libreoffice-users] Re: LO Writer (Linux): Way to do text
 search in set of documents?
 To: users@global.libreoffice.org


 On 08/30/2014 07:34 AM, James Wilde wrote:

  On 2014-08-30 13:29, Tom Davies wrote:
 
  Hi :)
  Hmm, sadly Writer doesn't seem to do quite the same thing as GEdit.
 
  Tom, I have an idea that there is a find/copy/paste add-on for LO which
  works on multiple files.  I used it when I was using LO for my writing
  (I now use Scrivener for books and such).  I could change the name of a
  character throughout a book with a simple command.
 
  James
 
 
 Yes, I remember something like that as well, but I do not remember what it
 was or what version of LO it was used with.

 That would be real handy for book authors and editors.

 Piers Anthony, a highly regarded SciFi and Fantasy writer, used Fedora and
 LO for writing his books.  He is in his mid 70's now so he has scaled back
 to 1 or 2 books per year, instead of 3 or more.  He has created macros to
 help him do the work he needs and uses a different keyboard layout than the
 standard QWERTY keyboard.  In one of his Author's Notes, he stated that he
 needed a package that worked with his type of keyboard and had the ability
 to create/use the types of macros he needs for making his writing easier.
 He seems to be a big fan of having multiple documents open at the same
 time and editing across those documents.

 SO, you should be able to find the extension needed for your cross-document
 editing.

 --
 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: LO Writer (Linux): Way to do text search in set of documents?

2014-09-02 Thread MR ZenWiz
Here's another one that's not quite clean, but it's nicer than the original:

http://www.techrepublic.com/blog/linux-and-open-source/how-to-search-for-text-inside-many-opendocument-files/

Cheers.
MR

On Tue, Sep 2, 2014 at 2:10 AM, Tom Davies tomc...@gmail.com wrote:
 Hi :)
 Blimey!  I can't believe how many different ways of doing it have been
 suggested and how many answers this thread has received.  Brilliant work
 everyone!  I learn tons through this thread and really enjoyed it.
 Many thanks and regards from
 Tom :)



 On 31 August 2014 18:30, anne-ology lagin...@gmail.com wrote:

Maybe it doesn't work in Linux,
   but LO's 'Find-Replace' works with multiple documents for me;
[still with 3.4 ]

The only thing that never worked is the 'Find', for some reason  ;-)
   I'll click on that one by mistake at times, only to have the
 document sit doing nothing ...
  then I click on the Find-Replace and can find, or whatever, fine
 ;-)

Was this a bug back-then or what?



 From: Tim---Kracked_P_P---webmaster webmas...@krackedpress.com
 Date: Sat, Aug 30, 2014 at 8:48 AM
 Subject: Re: [libreoffice-users] Re: LO Writer (Linux): Way to do text
 search in set of documents?
 To: users@global.libreoffice.org


 On 08/30/2014 07:34 AM, James Wilde wrote:

  On 2014-08-30 13:29, Tom Davies wrote:
 
  Hi :)
  Hmm, sadly Writer doesn't seem to do quite the same thing as GEdit.
 
  Tom, I have an idea that there is a find/copy/paste add-on for LO which
  works on multiple files.  I used it when I was using LO for my writing
  (I now use Scrivener for books and such).  I could change the name of a
  character throughout a book with a simple command.
 
  James
 
 
 Yes, I remember something like that as well, but I do not remember what it
 was or what version of LO it was used with.

 That would be real handy for book authors and editors.

 Piers Anthony, a highly regarded SciFi and Fantasy writer, used Fedora and
 LO for writing his books.  He is in his mid 70's now so he has scaled back
 to 1 or 2 books per year, instead of 3 or more.  He has created macros to
 help him do the work he needs and uses a different keyboard layout than the
 standard QWERTY keyboard.  In one of his Author's Notes, he stated that he
 needed a package that worked with his type of keyboard and had the ability
 to create/use the types of macros he needs for making his writing easier.
 He seems to be a big fan of having multiple documents open at the same
 time and editing across those documents.

 SO, you should be able to find the extension needed for your cross-document
 editing.

 --
 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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-31 Thread anne-ology
   Maybe it doesn't work in Linux,
  but LO's 'Find-Replace' works with multiple documents for me;
   [still with 3.4 ]

   The only thing that never worked is the 'Find', for some reason  ;-)
  I'll click on that one by mistake at times, only to have the
document sit doing nothing ...
 then I click on the Find-Replace and can find, or whatever, fine
;-)

   Was this a bug back-then or what?



From: Tim---Kracked_P_P---webmaster webmas...@krackedpress.com
Date: Sat, Aug 30, 2014 at 8:48 AM
Subject: Re: [libreoffice-users] Re: LO Writer (Linux): Way to do text
search in set of documents?
To: users@global.libreoffice.org


On 08/30/2014 07:34 AM, James Wilde wrote:

 On 2014-08-30 13:29, Tom Davies wrote:

 Hi :)
 Hmm, sadly Writer doesn't seem to do quite the same thing as GEdit.

 Tom, I have an idea that there is a find/copy/paste add-on for LO which
 works on multiple files.  I used it when I was using LO for my writing
 (I now use Scrivener for books and such).  I could change the name of a
 character throughout a book with a simple command.

 James


Yes, I remember something like that as well, but I do not remember what it
was or what version of LO it was used with.

That would be real handy for book authors and editors.

Piers Anthony, a highly regarded SciFi and Fantasy writer, used Fedora and
LO for writing his books.  He is in his mid 70's now so he has scaled back
to 1 or 2 books per year, instead of 3 or more.  He has created macros to
help him do the work he needs and uses a different keyboard layout than the
standard QWERTY keyboard.  In one of his Author's Notes, he stated that he
needed a package that worked with his type of keyboard and had the ability
to create/use the types of macros he needs for making his writing easier.
He seems to be a big fan of having multiple documents open at the same
time and editing across those documents.

SO, you should be able to find the extension needed for your cross-document
editing.

-- 
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-30 Thread Tom Davies
Hi :)
Hmm, sadly Writer doesn't seem to do quite the same thing as GEdit.

With GEdit i could;
1.  select all 10 files,
2.  right-click to open in GEdit,
3.  do the search in any of the documents
4.  Ctrl z to close that document and arrive in the next automatically
5.  when i open the find dialogue it already has the search criteria i used
in the last document

Sadly with Writer i'd have to copypaste the criteria each time.  I guess
that's another argument in favour of tabbed UI
Regards from
Tom :)





On 30 August 2014 12:01, Maurice maur...@bcs.org.uk wrote:

 On Fri, 29 Aug 2014 07:35:05 +1200, Steve Edmonds wrote:

  There could be a feature request. In the existing find and replace
  dialogue to have an option All open documents.

   Mmm. Will take a look at how to make such a request.

  You need only have the documents opened in LO and working on multiple
  documents you can search and replace them as one.

   Well, if, say, there are 10 documents in the list to be searched, how
 would one open all 10 conveniently?

 --
 /\/\aurice


 --
 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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-30 Thread James Wilde

On 2014-08-30 13:29, Tom Davies wrote:
 Hi :)
 Hmm, sadly Writer doesn't seem to do quite the same thing as GEdit.
Tom, I have an idea that there is a find/copy/paste add-on for LO which
works on multiple files.  I used it when I was using LO for my writing
(I now use Scrivener for books and such).  I could change the name of a
character throughout a book with a simple command.

James

-- 
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-30 Thread Tim---Kracked_P_P---webmaster

On 08/30/2014 07:34 AM, James Wilde wrote:

On 2014-08-30 13:29, Tom Davies wrote:

Hi :)
Hmm, sadly Writer doesn't seem to do quite the same thing as GEdit.

Tom, I have an idea that there is a find/copy/paste add-on for LO which
works on multiple files.  I used it when I was using LO for my writing
(I now use Scrivener for books and such).  I could change the name of a
character throughout a book with a simple command.

James



Yes, I remember something like that as well, but I do not remember what 
it was or what version of LO it was used with.


That would be real handy for book authors and editors.

Piers Anthony, a highly regarded SciFi and Fantasy writer, used Fedora 
and LO for writing his books.  He is in his mid 70's now so he has 
scaled back to 1 or 2 books per year, instead of 3 or more.  He has 
created macros to help him do the work he needs and uses a different 
keyboard layout than the standard QWERTY keyboard.  In one of his 
Author's Notes, he stated that he needed a package that worked with his 
type of keyboard and had the ability to create/use the types of macros 
he needs for making his writing easier.  He seems to be a big fan of 
having multiple documents open at the same time and editing across those 
documents.


SO, you should be able to find the extension needed for your 
cross-document editing.


--
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-30 Thread Felmon Davis

On Sat, 30 Aug 2014, Tom Davies wrote:


Hi :)
Hmm, sadly Writer doesn't seem to do quite the same thing as GEdit.

With GEdit i could;
1.  select all 10 files,
2.  right-click to open in GEdit,
3.  do the search in any of the documents
4.  Ctrl z to close that document and arrive in the next automatically
5.  when i open the find dialogue it already has the search criteria i used
in the last document

Sadly with Writer i'd have to copypaste the criteria each time.  I guess
that's another argument in favour of tabbed UI
Regards from
Tom :)


I am sure I'm not quite following what is ultimately wanted but about 
opening multiple copies, but suppose I have a directory containing the 
desired files, say, 1.doc, 2.doc, Another.doc; is there a verbot 
against going into the directory and doing


soffice *.doc

at the commandline? or does this not work?

but pardon and ignore me if I'm way off-target.

F.

  




On 30 August 2014 12:01, Maurice maur...@bcs.org.uk wrote:


On Fri, 29 Aug 2014 07:35:05 +1200, Steve Edmonds wrote:

 There could be a feature request. In the existing find and replace
 dialogue to have an option All open documents.

  Mmm. Will take a look at how to make such a request.

 You need only have the documents opened in LO and working on multiple
 documents you can search and replace them as one.

  Well, if, say, there are 10 documents in the list to be searched, how
would one open all 10 conveniently?

--
/\/\aurice



--
Felmon Davis

Once a word has been allowed to escape, it cannot be recalled.  -- 
Horace


--
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-28 Thread Tom Davies
Hi :)
I think i'd first try just dragging a couple of the relevant files into an
empty document and see if that is enough to do what you need.  I thought
that was all the Master Documents did but i guess there is a lot more to it!
Regards from
Tom :)


On 28 August 2014 14:41, Maurice maur...@bcs.org.uk wrote:

 On Wed, 27 Aug 2014 13:59:45 +0100, Tom Davies wrote:

  Chapter 13 Working with Master Documents might help!

 Thanks for the pointer, Tom!

 (At first glance it looks somewhat tedious, but it might do the trick.)

 --
 /\/\aurice


 --
 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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-28 Thread Cley Faye
2014-08-28 16:01 GMT+02:00 Tom Davies tomc...@gmail.com:

 I thought
 that was all the Master Documents did but i guess there is a lot more to
 it!


​One of the great feature of master documents is overriding styles from
sub documents. With that you can have for example a whole book written with
a set of files, and different master documents that will format it for
printing, pdf, multi-column, etc...

(not that this is relevant at all for OP's problem, just a head up!)​

-- 
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-28 Thread Tom Davies
Hi :)
It might be easier to just start figuring out Master Documents!  At least
there is documentation for it!

If you create a new document or open an existing one can you still see the
file-browser?  (ie so that you can still see the icons of various different
files?)  If you can see the files then try dragging one of those files into
the document you have opened.  LibreOffice will create a new section for
the extra document.
Regards from
Tom :)




On 28 August 2014 16:31, Maurice maur...@bcs.org.uk wrote:

 On Thu, 28 Aug 2014 15:01:21 +0100, Tom Davies wrote:

  try just dragging a couple of the relevant files into an empty document

  By what means are you thinking, Tom?!

 --
 /\/\aurice


 --
 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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-28 Thread Tom Davies
Hi :)
+1
same thing i was suggesting but a slightly different process.
Regards from
Tom :)




On 28 August 2014 18:09, Felmon Davis dav...@union.edu wrote:

 On Thu, 28 Aug 2014, Tom Davies wrote:

  Hi :)
 It might be easier to just start figuring out Master Documents!  At least
 there is documentation for it!

 If you create a new document or open an existing one can you still see the
 file-browser?  (ie so that you can still see the icons of various
 different
 files?)  If you can see the files then try dragging one of those files
 into
 the document you have opened.  LibreOffice will create a new section for
 the extra document.
 Regards from
 Tom :)


 I may have lost the point of the thread but if one is going to these
 lengths, why not simply _insert_ the other documents into one and do one's
 search?

 'insert--file--...'

 what is the drawback to this?

 F.


  




 On 28 August 2014 16:31, Maurice maur...@bcs.org.uk wrote:

  On Thu, 28 Aug 2014 15:01:21 +0100, Tom Davies wrote:

  try just dragging a couple of the relevant files into an empty document

  By what means are you thinking, Tom?!

 --
 /\/\aurice



 --
 Felmon Davis

 The world is in danger from two sources:  Order and Disorder.
 -- Valery


 --
 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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-28 Thread Steve Edmonds
There could be a feature request. In the existing find and replace 
dialogue to have an option All open documents.
You need only have the documents opened in LO and working on multiple 
documents you can search and replace them as one.

Steve
On 2014-08-29 05:31, Maurice wrote:

On Thu, 28 Aug 2014 13:09:06 -0400, Felmon Davis wrote:


why not simply _insert_ the other documents into one and do one's
search?

'insert--file--...'

Whether using Tom's suggestion of drag-'n-drop or yours to 'Insert file',
both would bee tedious when several files are often involved, but would
be
usable in the occasional general case.

The particular requirement is for a routine search through the same
set of files, with the requirement that the contents are the latest
version
in each case, so for convenience it needs to be a pre-defined list.

It may be that the Master Document facility will allow me to have a
master
document that permanently lists that set of files, and brings their
current
contents in dynamically whenever the master document is opened.
   Will look further into that; I'm hoping that the contents of each file
are
not frozen at the time when they are first inserted into the master.

   Thanks to all for pointing out so many options! Much appreciated...



--
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-27 Thread Cley Faye
2014-08-27 13:15 GMT+02:00 Maurice maur...@bcs.org.uk:

 The simplest way would presumably be to write an app that would create
 a temporary composite document from a list, and do the Find through
 that.


​I don't know if that's what you meant, but it might be possible to achieve
this through a macro inside LibreOffice.

-- 
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-27 Thread Tom Davies
Hi :)
I guess that would be another way of doing it.  A bit of a shame after
there have been so many different coding ways of doing it!

Chapter 13 Working with Master Documents might help!
https://wiki.documentfoundation.org/Documentation/Publications#LibreOffice_Writer_Guide

Regards from
Tom :)



On 27 August 2014 13:46, Maurice maur...@bcs.org.uk wrote:

 On Wed, 27 Aug 2014 13:23:23 +0200, Cley Faye wrote:

  it might be possible to achieve this through a macro inside LibreOffice.

 That sounds interesting!.

 Actually, many years ago I was using a word processor which (like some
 assembler languages) accepted an 'include file' control.

 Ideally I would have a master file just containing, e.g.

   %include filename-A
   %include filename-B
 etc...

 - which I would then give to Writer, which would then pull in the
 contents of those files to produce the composite document I need.

 --
 /\/\aurice


 --
 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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-25 Thread Paul
On Mon, 25 Aug 2014 11:46:53 + (UTC)
Maurice maur...@bcs.org.uk wrote:

 On Sun, 24 Aug 2014 20:29:22 +0200, Paul wrote:
 
  You could also make a script to pull the contents of all the files
  and concatenate them in such a way that you can use Writer to do
  find inside one big document, but that would be considerably
  harder. Try this first.
 
 That's what I shall perhaps finish up doing...

Any particular reason? Did the arguments to grep not work, or do you
just not find that style of output particularly useful?

-- 
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-25 Thread Paul
Well, Maurice quoted from my mail, so I'm pretty sure he did receive it.

Btw: Tom, your mail was addressed to me directly, and CCd to the group,
causing my default reply-to to go to just you (luckily I noticed in
time). Not sure why this happens for some messages, did you do anything
differently for your message?


On Mon, 25 Aug 2014 13:41:14 +0100
Tom Davies tomc...@gmail.com wrote:

 Hi :)
 I suspect that Paul's post below has not yet arrived in Maurice's
 time-line.
 
 Email threads sometimes get a bit disjointed, especially if an
 over-enthusiastic junk/spam-filter tends to carefully reject anything
 with any hint of code in it!  However it could easily be that someone
 starts from their older messages and work forwards to newer and newer
 ones instead of the more sensible approach (imo) of working from the
 newest posts backwards to the oldest.  By starting with the newest
 ones first i often find that older posts have already been dealt with
 and can thus be safely ignored even if they stir-up side-issues
 (which also might have already been largely dealt with).
 
 
 On the other hand it might be good if someone could test Paul's
 script. Perhaps it's possible to combine the 2 ideas so that both the
 file-name AND the few lines of surrounding text could be output?
 Would that help?  Also it might be good to have the output directed
 into a file rather than just onto the command-line?
 
 I really like Don Pobanz's answer and the way Paul was able to help
 tweak it.  It felt like a return to what this mailing list is largely
 about = collaborating to build-up a better answer faster than the
 individuals had time to do on their own.  Good work!! :)))
 Regards from
 Tom :)
 
 
 
 On 24 August 2014 19:29, Paul paulste...@afrihost.co.za wrote:
 
  Try changing the line:
 
   unzip -ca $file content.xml | grep -ql $1
 
  to:
 
   unzip -ca $file content.xml | grep -qC 10 $1
 
  the -l to grep makes it show only the names of files that match,
  not the content. The -C # gives # lines of context around the
  match. Or you could use -B # and -A # to print # lines of
  leading and trailing conext, respectively.
 
  You could also make a script to pull the contents of all the files
  and concatenate them in such a way that you can use Writer to do
  find inside one big document, but that would be considerably
  harder. Try this first.
 
 
  Paul
 
 
 
  Disclaimer: I haven't actually tested this, just done a man grep,
  but I think the syntax is right...
 
 
 
 
  On Sun, 24 Aug 2014 18:16:35 + (UTC)
  Maurice maur...@bcs.org.uk wrote:
 
   On Sun, 24 Aug 2014 11:44:31 -0500, Don Pobanz wrote:
  
I find it very useful for finding a word or phrase within my odt
documents.
  
   Thank you, Don, but that only shows which files contain the
   search string. (It's likely that all files in the list will
   contain at least one occurrence of the string.)
  
   That would be a start, but what I am looking for is a means of
   seeing the string as if Writer was showing the file contents, so
   that I can see the surrounding text.
  
   (Equivalent to joining all the doc's into one big file, then
   doing a Find.   Perhaps I shall have to do the joining
   manually...)
  
 
 
  --
  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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-25 Thread Tom Davies
Hi :)
Nope, it;s the standard way these mailing lists have behaved for a long
time now.

It used to be that people could just click on Reply to and their message
would go straight to the mailing list.  Now most email-clients require
people to click on Reply to all ... and the mailing list's address is
only in the CC rather than in the To field.  Numerous people have
grumbled about it in here but few bother to post a complaint to the
postmaster address and those that do just seem to get agro for it.

One person here did try to show how he re-configured his own email-client
to get around the problem and a few of the other longer-term people here
might well have followed his lead but i am not sure what effect that sort
of thing has on non-LO emails.  Also i kinda believe in the Eat your own
dog food principle so that i stay in touch with the problems normal users
have when they first approach this mailing list.
Regards from
Tom :)






On 25 August 2014 13:56, Paul paulste...@afrihost.co.za wrote:

 Well, Maurice quoted from my mail, so I'm pretty sure he did receive it.

 Btw: Tom, your mail was addressed to me directly, and CCd to the group,
 causing my default reply-to to go to just you (luckily I noticed in
 time). Not sure why this happens for some messages, did you do anything
 differently for your message?


 On Mon, 25 Aug 2014 13:41:14 +0100
 Tom Davies tomc...@gmail.com wrote:

  Hi :)
  I suspect that Paul's post below has not yet arrived in Maurice's
  time-line.
 
  Email threads sometimes get a bit disjointed, especially if an
  over-enthusiastic junk/spam-filter tends to carefully reject anything
  with any hint of code in it!  However it could easily be that someone
  starts from their older messages and work forwards to newer and newer
  ones instead of the more sensible approach (imo) of working from the
  newest posts backwards to the oldest.  By starting with the newest
  ones first i often find that older posts have already been dealt with
  and can thus be safely ignored even if they stir-up side-issues
  (which also might have already been largely dealt with).
 
 
  On the other hand it might be good if someone could test Paul's
  script. Perhaps it's possible to combine the 2 ideas so that both the
  file-name AND the few lines of surrounding text could be output?
  Would that help?  Also it might be good to have the output directed
  into a file rather than just onto the command-line?
 
  I really like Don Pobanz's answer and the way Paul was able to help
  tweak it.  It felt like a return to what this mailing list is largely
  about = collaborating to build-up a better answer faster than the
  individuals had time to do on their own.  Good work!! :)))
  Regards from
  Tom :)
 
 
 
  On 24 August 2014 19:29, Paul paulste...@afrihost.co.za wrote:
 
   Try changing the line:
  
unzip -ca $file content.xml | grep -ql $1
  
   to:
  
unzip -ca $file content.xml | grep -qC 10 $1
  
   the -l to grep makes it show only the names of files that match,
   not the content. The -C # gives # lines of context around the
   match. Or you could use -B # and -A # to print # lines of
   leading and trailing conext, respectively.
  
   You could also make a script to pull the contents of all the files
   and concatenate them in such a way that you can use Writer to do
   find inside one big document, but that would be considerably
   harder. Try this first.
  
  
   Paul
  
  
  
   Disclaimer: I haven't actually tested this, just done a man grep,
   but I think the syntax is right...
  
  
  
  
   On Sun, 24 Aug 2014 18:16:35 + (UTC)
   Maurice maur...@bcs.org.uk wrote:
  
On Sun, 24 Aug 2014 11:44:31 -0500, Don Pobanz wrote:
   
 I find it very useful for finding a word or phrase within my odt
 documents.
   
Thank you, Don, but that only shows which files contain the
search string. (It's likely that all files in the list will
contain at least one occurrence of the string.)
   
That would be a start, but what I am looking for is a means of
seeing the string as if Writer was showing the file contents, so
that I can see the surrounding text.
   
(Equivalent to joining all the doc's into one big file, then
doing a Find.   Perhaps I shall have to do the joining
manually...)
   
  
  
   --
   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: 

Re: [libreoffice-users] Re: LO Writer (Linux): Way to do text search in set of documents?

2014-08-25 Thread Tom Davies
Hi :)
I suspect that Paul's post below has not yet arrived in Maurice's
time-line.

Email threads sometimes get a bit disjointed, especially if an
over-enthusiastic junk/spam-filter tends to carefully reject anything with
any hint of code in it!  However it could easily be that someone starts
from their older messages and work forwards to newer and newer ones instead
of the more sensible approach (imo) of working from the newest posts
backwards to the oldest.  By starting with the newest ones first i often
find that older posts have already been dealt with and can thus be safely
ignored even if they stir-up side-issues (which also might have already
been largely dealt with).


On the other hand it might be good if someone could test Paul's script.
Perhaps it's possible to combine the 2 ideas so that both the file-name AND
the few lines of surrounding text could be output?  Would that help?  Also
it might be good to have the output directed into a file rather than just
onto the command-line?

I really like Don Pobanz's answer and the way Paul was able to help tweak
it.  It felt like a return to what this mailing list is largely about =
collaborating to build-up a better answer faster than the individuals had
time to do on their own.  Good work!! :)))
Regards from
Tom :)



On 24 August 2014 19:29, Paul paulste...@afrihost.co.za wrote:

 Try changing the line:

  unzip -ca $file content.xml | grep -ql $1

 to:

  unzip -ca $file content.xml | grep -qC 10 $1

 the -l to grep makes it show only the names of files that match, not
 the content. The -C # gives # lines of context around the match. Or
 you could use -B # and -A # to print # lines of leading and
 trailing conext, respectively.

 You could also make a script to pull the contents of all the files and
 concatenate them in such a way that you can use Writer to do find
 inside one big document, but that would be considerably harder. Try
 this first.


 Paul



 Disclaimer: I haven't actually tested this, just done a man grep, but
 I think the syntax is right...




 On Sun, 24 Aug 2014 18:16:35 + (UTC)
 Maurice maur...@bcs.org.uk wrote:

  On Sun, 24 Aug 2014 11:44:31 -0500, Don Pobanz wrote:
 
   I find it very useful for finding a word or phrase within my odt
   documents.
 
  Thank you, Don, but that only shows which files contain the
  search string. (It's likely that all files in the list will contain
  at least one occurrence of the string.)
 
  That would be a start, but what I am looking for is a means of seeing
  the string as if Writer was showing the file contents, so that I can
  see the surrounding text.
 
  (Equivalent to joining all the doc's into one big file, then doing a
  Find.   Perhaps I shall have to do the joining manually...)
 


 --
 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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-25 Thread Paul D. Mirowsky
If the Python code were modified to also add filename with path and 
inject it at end of paragraph as URL.


It might be possible to re-direct python command output to a .txt file 
that could be opened by Writer.


I am not sure whether or not Writer could be set to recognize and Open 
File URL automatically to modify original document.


Hm


On 8/25/2014 10:03 AM, P. . wrote:

Try this, even if it isn't exactly an 'out of the box' solution, it
can be useful:
in few words, the script parses the xml file inside the .odt - in fact
an archive file, and search for a keyword after having extracted the
text part.

A short excerpt, from the page 3 of Extract and Parse ODF Files with Python:
In this particular program, I collect all the text as a list of
paragraphs, and then I search for the keywords passed in from the
command line. If the searched word matches, the paragraph is printed
out.

The text found in each text:p is Unicode text. You have to convert
this to normal text in order to print correctly and/or use in a
widget. The encode() command translates the Unicode to a printable
string. 


http://www.linuxjournal.com/article/9347?page=0,2


On 25 August 2014 15:31, Paul paulste...@afrihost.co.za wrote:

Well, it does seem like all your mails do this, but not all mails from
this list exhibit this behaviour. Most mails from the list, even
replies, are addressed to the list. Yours are different in that they're
not addressed to the list, only CCd to the list. Some other people's
replies are the same, but I'd say not most.

When the mail is addressed to the list, or addressed to someone else and CCd
to the list, I can just click reply, but when the mail is addressed to
me personally and only CCd to the list clicking Reply replies to the
sender only.

I can only think that it's a difference in email clients and how they
handle list messages. The messages contain list headers, so most
clients, like mine, must pick that up and automatically reply to the
list, but some, like yours, must be ignoring those and replying to the
sender instead. I think.

So if I'm understanding the process right, it's not so much a problem
with how the list is set up (other than that it doesn't rewrite the
sender header), but rather with some clients not honouring the list
headers.



Paul



On Mon, 25 Aug 2014 14:08:01 +0100
Tom Davies tomc...@gmail.com wrote:


Hi :)
Nope, it;s the standard way these mailing lists have behaved for a
long time now.

It used to be that people could just click on Reply to and their
message would go straight to the mailing list.  Now most
email-clients require people to click on Reply to all ... and the
mailing list's address is only in the CC rather than in the To
field.  Numerous people have grumbled about it in here but few bother
to post a complaint to the postmaster address and those that do just
seem to get agro for it.

One person here did try to show how he re-configured his own
email-client to get around the problem and a few of the other
longer-term people here might well have followed his lead but i am
not sure what effect that sort of thing has on non-LO emails.  Also i
kinda believe in the Eat your own dog food principle so that i stay
in touch with the problems normal users have when they first approach
this mailing list. Regards from
Tom :)






On 25 August 2014 13:56, Paul paulste...@afrihost.co.za wrote:


Well, Maurice quoted from my mail, so I'm pretty sure he did
receive it.

Btw: Tom, your mail was addressed to me directly, and CCd to the
group, causing my default reply-to to go to just you (luckily I
noticed in time). Not sure why this happens for some messages, did
you do anything differently for your message?


On Mon, 25 Aug 2014 13:41:14 +0100
Tom Davies tomc...@gmail.com wrote:


Hi :)
I suspect that Paul's post below has not yet arrived in Maurice's
time-line.

Email threads sometimes get a bit disjointed, especially if an
over-enthusiastic junk/spam-filter tends to carefully reject
anything with any hint of code in it!  However it could easily be
that someone starts from their older messages and work forwards
to newer and newer ones instead of the more sensible approach
(imo) of working from the newest posts backwards to the oldest.
By starting with the newest ones first i often find that older
posts have already been dealt with and can thus be safely ignored
even if they stir-up side-issues (which also might have already
been largely dealt with).


On the other hand it might be good if someone could test Paul's
script. Perhaps it's possible to combine the 2 ideas so that both
the file-name AND the few lines of surrounding text could be
output? Would that help?  Also it might be good to have the
output directed into a file rather than just onto the
command-line?

I really like Don Pobanz's answer and the way Paul was able to
help tweak it.  It felt like a return to what this mailing list
is largely about = collaborating to build-up a better answer
faster than the 

Re: [libreoffice-users] Re: LO Writer (Linux): Way to do text search in set of documents?

2014-08-25 Thread Felmon Davis

On Mon, 25 Aug 2014, Paul wrote:


Well, it does seem like all your mails do this, but not all mails from
this list exhibit this behaviour. Most mails from the list, even
replies, are addressed to the list. Yours are different in that they're
not addressed to the list, only CCd to the list. Some other people's
replies are the same, but I'd say not most.


I have to manually remove the OP's address and put the list address in 
the To: field.


it is tiresome. no other list I know (or manage) works this way.

I use 'alpine' when posting to the list.

I would be happy to write the postmaster; I forget who that is.

F.



When the mail is addressed to the list, or addressed to someone else and CCd
to the list, I can just click reply, but when the mail is addressed to
me personally and only CCd to the list clicking Reply replies to the
sender only.

I can only think that it's a difference in email clients and how they
handle list messages. The messages contain list headers, so most
clients, like mine, must pick that up and automatically reply to the
list, but some, like yours, must be ignoring those and replying to the
sender instead. I think.

So if I'm understanding the process right, it's not so much a problem
with how the list is set up (other than that it doesn't rewrite the
sender header), but rather with some clients not honouring the list
headers.



Paul



On Mon, 25 Aug 2014 14:08:01 +0100
Tom Davies tomc...@gmail.com wrote:


Hi :)
Nope, it;s the standard way these mailing lists have behaved for a
long time now.

It used to be that people could just click on Reply to and their
message would go straight to the mailing list.  Now most
email-clients require people to click on Reply to all ... and the
mailing list's address is only in the CC rather than in the To
field.  Numerous people have grumbled about it in here but few bother
to post a complaint to the postmaster address and those that do just
seem to get agro for it.

One person here did try to show how he re-configured his own
email-client to get around the problem and a few of the other
longer-term people here might well have followed his lead but i am
not sure what effect that sort of thing has on non-LO emails.  Also i
kinda believe in the Eat your own dog food principle so that i stay
in touch with the problems normal users have when they first approach
this mailing list. Regards from
Tom :)






On 25 August 2014 13:56, Paul paulste...@afrihost.co.za wrote:


Well, Maurice quoted from my mail, so I'm pretty sure he did
receive it.

Btw: Tom, your mail was addressed to me directly, and CCd to the
group, causing my default reply-to to go to just you (luckily I
noticed in time). Not sure why this happens for some messages, did
you do anything differently for your message?


On Mon, 25 Aug 2014 13:41:14 +0100
Tom Davies tomc...@gmail.com wrote:


Hi :)
I suspect that Paul's post below has not yet arrived in Maurice's
time-line.

Email threads sometimes get a bit disjointed, especially if an
over-enthusiastic junk/spam-filter tends to carefully reject
anything with any hint of code in it!  However it could easily be
that someone starts from their older messages and work forwards
to newer and newer ones instead of the more sensible approach
(imo) of working from the newest posts backwards to the oldest.
By starting with the newest ones first i often find that older
posts have already been dealt with and can thus be safely ignored
even if they stir-up side-issues (which also might have already
been largely dealt with).


On the other hand it might be good if someone could test Paul's
script. Perhaps it's possible to combine the 2 ideas so that both
the file-name AND the few lines of surrounding text could be
output? Would that help?  Also it might be good to have the
output directed into a file rather than just onto the
command-line?

I really like Don Pobanz's answer and the way Paul was able to
help tweak it.  It felt like a return to what this mailing list
is largely about = collaborating to build-up a better answer
faster than the individuals had time to do on their own.  Good
work!! :))) Regards from
Tom :)



On 24 August 2014 19:29, Paul paulste...@afrihost.co.za wrote:


Try changing the line:

 unzip -ca $file content.xml | grep -ql $1

to:

 unzip -ca $file content.xml | grep -qC 10 $1

the -l to grep makes it show only the names of files that
match, not the content. The -C # gives # lines of context
around the match. Or you could use -B # and -A # to print #
lines of leading and trailing conext, respectively.

You could also make a script to pull the contents of all the
files and concatenate them in such a way that you can use
Writer to do find inside one big document, but that would be
considerably harder. Try this first.


Paul



Disclaimer: I haven't actually tested this, just done a man
grep, but I think the syntax is right...




On Sun, 24 Aug 2014 18:16:35 + (UTC)
Maurice maur...@bcs.org.uk wrote:


On Sun, 24 Aug 

Re: [libreoffice-users] Re: LO Writer (Linux): Way to do text search in set of documents?

2014-08-25 Thread Mark Bourne

Paul wrote:

Well, it does seem like all your mails do this, but not all mails from
this list exhibit this behaviour. Most mails from the list, even
replies, are addressed to the list. Yours are different in that they're
not addressed to the list, only CCd to the list. Some other people's
replies are the same, but I'd say not most.

When the mail is addressed to the list, or addressed to someone else and CCd
to the list, I can just click reply, but when the mail is addressed to
me personally and only CCd to the list clicking Reply replies to the
sender only.

I can only think that it's a difference in email clients and how they
handle list messages. The messages contain list headers, so most
clients, like mine, must pick that up and automatically reply to the
list, but some, like yours, must be ignoring those and replying to the
sender instead. I think.


Indeed. I think Tom tends to Reply All, so you get two copies - one 
direct and one through the list. If you reply to the direct one, that 
doesn't have the List-* headers, so will go only to Tom by default. If 
you reply to the one received through the list, that does have the 
List-* headers and if your mail client uses them it will reply to the list.


In my client, I have to select Reply to List to use the List-Reply 
header, but it sounds like yours uses it by default if available.



So if I'm understanding the process right, it's not so much a problem
with how the list is set up (other than that it doesn't rewrite the
sender header), but rather with some clients not honouring the list
headers.


Yep. This list is set up differently from many others, but it is more 
correct. It shouldn't rewrite the From or Reply-To headers as that 
causes other problems, particularly as this list accepts emails from 
non-subscribed users who sometimes request a direct copy of replies. If 
the From or Reply-To address has been overwritten, it is difficult or 
even impossible to email or copy someone individually. The Sender header 
I think would be safe to overwrite, but doing so wouldn't be 
particularly useful as mail clients don't use it for replies.


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] Re: LO Writer (Linux): Way to do text search in set of documents?

2014-08-25 Thread Tom Davies
Hi :)
I think it's easier to just edit the bash script isn't it?

Surely to get it's output into a file all that is needed is something like

filename.txt

to be added to the end of the relevant lines?  or better would be if it
could keep adding to the end of a file after first creating the file with
the first bit of output.  I think Python is a bit of an over-kill for this
although it might be really nice to have as a permanent Extension written
in a decent language like Python.
Regards from
Tom :)




On 25 August 2014 17:53, Paul D. Mirowsky p_mirow...@bentaxna.com wrote:

 If the Python code were modified to also add filename with path and inject
 it at end of paragraph as URL.

 It might be possible to re-direct python command output to a .txt file
 that could be opened by Writer.

 I am not sure whether or not Writer could be set to recognize and Open
 File URL automatically to modify original document.

 Hm



 On 8/25/2014 10:03 AM, P. . wrote:

 Try this, even if it isn't exactly an 'out of the box' solution, it
 can be useful:
 in few words, the script parses the xml file inside the .odt - in fact
 an archive file, and search for a keyword after having extracted the
 text part.

 A short excerpt, from the page 3 of Extract and Parse ODF Files with
 Python:
 In this particular program, I collect all the text as a list of
 paragraphs, and then I search for the keywords passed in from the
 command line. If the searched word matches, the paragraph is printed
 out.

 The text found in each text:p is Unicode text. You have to convert
 this to normal text in order to print correctly and/or use in a
 widget. The encode() command translates the Unicode to a printable
 string. 


 http://www.linuxjournal.com/article/9347?page=0,2


 On 25 August 2014 15:31, Paul paulste...@afrihost.co.za wrote:

 Well, it does seem like all your mails do this,


 snip /


 On Mon, 25 Aug 2014 13:41:14 +0100
 Tom Davies tomc...@gmail.com wrote:

  Hi :)
 I suspect that Paul's post below has not yet arrived in Maurice's
 time-line.

 snip /


 On the other hand it might be good if someone could test Paul's
 script. Perhaps it's possible to combine the 2 ideas so that both
 the file-name AND the few lines of surrounding text could be
 output? Would that help?  Also it might be good to have the
 output directed into a file rather than just onto the
 command-line?

 snip /

 Regards from
 Tom :)



 On 24 August 2014 19:29, Paul paulste...@afrihost.co.za wrote:

  Try changing the line:

   unzip -ca $file content.xml | grep -ql $1

 to:

   unzip -ca $file content.xml | grep -qC 10 $1

 the -l to grep makes it show only the names of files that
 match, not the content. The -C # gives # lines of context
 around the match. Or you could use -B # and -A # to print #
 lines of leading and trailing conext, respectively.

 You could also make a script to pull the contents of all the
 files and concatenate them in such a way that you can use
 Writer to do find inside one big document, but that would be
 considerably harder. Try this first.


 Paul



 Disclaimer: I haven't actually tested this, just done a man
 grep, but I think the syntax is right...




 On Sun, 24 Aug 2014 18:16:35 + (UTC)
 Maurice maur...@bcs.org.uk wrote:

  On Sun, 24 Aug 2014 11:44:31 -0500, Don Pobanz wrote:

 snip /




-- 
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: LO Writer (Linux): Way to do text search in set of documents?

2014-08-24 Thread Tom Davies
Hi :)
I could easily be wrong but I think the first echo could use updating?
It doesn't affect how it runs or any processing because the echo is only
regurgitated into the display for human being to read.  It's where you'd
put hello world if you wanted the display to just show that.  I'm not
sure if i've explained that well or just made it as clear as mud because
i'm guessing everyone else already knew that, right?

Even though it's not processed by the machine and is just for human-readers
to see, it's still (imo) handy for it to give the correct information.  So,
probably change

echo Usage:   searchodt   searchterm

to

echo Usage:   search_odt_filessearchterm

or else change the scripts' file-name back to searchodt as it appears to
have been as some previous point in the scripts' 'life'.
Regards from
Tom :)





On 24 August 2014 19:29, Paul paulste...@afrihost.co.za wrote:

 Try changing the line:

  unzip -ca $file content.xml | grep -ql $1

 to:

  unzip -ca $file content.xml | grep -qC 10 $1

 the -l to grep makes it show only the names of files that match, not
 the content. The -C # gives # lines of context around the match. Or
 you could use -B # and -A # to print # lines of leading and
 trailing conext, respectively.

 You could also make a script to pull the contents of all the files and
 concatenate them in such a way that you can use Writer to do find
 inside one big document, but that would be considerably harder. Try
 this first.


 Paul



 Disclaimer: I haven't actually tested this, just done a man grep, but
 I think the syntax is right...




 On Sun, 24 Aug 2014 18:16:35 + (UTC)
 Maurice maur...@bcs.org.uk wrote:

  On Sun, 24 Aug 2014 11:44:31 -0500, Don Pobanz wrote:
 
   I find it very useful for finding a word or phrase within my odt
   documents.
 
  Thank you, Don, but that only shows which files contain the
  search string. (It's likely that all files in the list will contain
  at least one occurrence of the string.)
 
  That would be a start, but what I am looking for is a means of seeing
  the string as if Writer was showing the file contents, so that I can
  see the surrounding text.
 
  (Equivalent to joining all the doc's into one big file, then doing a
  Find.   Perhaps I shall have to do the joining manually...)
 


 --
 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