TextSearch (Content plugin for fulltext search in DOC)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Carolina wrote: First I'm new to Total Commander;-), but I don't get this plugin to work.
I've created a new subfolder XDOC (like PDF and ODF given by the plugin) and extracted the xdoc2txt.exe (v1.26).
Then I've updated the TextSearch.ini with the text from above, but when I search ~300 .html files I didn't get any match.
I use such definition with 1.26 version :

Code: Select all

XDOC=%COMSPEC% /C CONV\XDOC\XDOC2TXT.EXE -n -o=0 -c "{In}">"{Out}" 
it seems to work for me !
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Carolina
Maybe you extracted "xdoc2txt.exe" not to the Conv folder of plugin folder?
It works here OK.


BTW, I may include "xdoc2txt.exe" into TextSearch archive, if author give me such permission. I wrote him, no reply.
Carolina
Junior Member
Junior Member
Posts: 2
Joined: 2007-11-27, 10:36 UTC

Post by *Carolina »

nsp wrote:

Code: Select all

XDOC=%COMSPEC% /C CONV\XDOC\XDOC2TXT.EXE -n -o=0 -c "{In}">"{Out}" 
it seems to work for me !
Hmmm, same result as before... nothing... ;-(

Edit: Ah... my mistake... not .html files but .htm... *damn*
Everything is working fine now. Thanks...
Dreamer
Junior Member
Junior Member
Posts: 77
Joined: 2004-12-22, 00:52 UTC

Post by *Dreamer »

theosdikaios wrote: It works fine with TextSearch if TextSearch.ini contains this lines:
TextSearch.ini wrote:; xdoc2txt
XDOC=%COMSPEC% /CCONV\XDOC\XDOC2TXT.EXE "{In}">"{Out}"
docx=XDOC
docm=XDOC
xlsx=XDOC
xlsm=XDOC
pptx=XDOC
pptm=XDOC
doc=XDOC
xls=XDOC
ppt=XDOC
pdf=XDOC
html=XDOC
Why I can only search .Doc files, can't search .XLS and .PPT files?
Dreamer
Junior Member
Junior Member
Posts: 77
Joined: 2004-12-22, 00:52 UTC

Post by *Dreamer »

I know why.

Xdoc2txt can convert .doc file in Chinese to txt perfectly.

But it can't convert .xls and .ppt files's Chinese characters.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Alex, could you add option to search for ANSI / UTF text in binary files?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2m^2
it's done. I have option for encoding of *any file: see Readme...
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

I missed it, thanks.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

I'm currently doing a search for some text in a large collection of PDFs.
xdoc2txt crashed twice.

Suggestion: can you detect such situation and give some hint about a file on which it happened?
I'd like to submit a but to xdoc2txt devs, but binsearch through the pdfs would take long...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

i can detect, that converter still gives no out file.
Then i can show errorbox.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

That would be nice.
EDIT:
..or maybe not. With incorrect files this could give a lot of unnecessary messages.
How about checking return codes?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

for crashed app you'll have no return code..
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

http://msdn.microsoft.com/en-us/library/ms683189.aspx :
If the process has terminated and the function succeeds, the status returned is one of the following values:

* The exit value specified in the ExitProcess or TerminateProcess function.
* The return value from the main or WinMain function of the process.
* The exception value for an unhandled exception that caused the process to terminate.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2m^2 thanks, I'll see it.
Have you sample of calling it, after calling CreateProcess?
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Post Reply