Page 1 of 1

Finding text inside epub files

Posted: 06 Jan 2012 00:38
by Steadyhands
Hi,

I tried to use XY in normal search mode to look into an .epub file to search for the string "Page 5" but it couldn't find it. I had first tried a regex search for Page [0-9] but this didn't work either.

The contents of the .epub are just html files and the epub is just a zip file with another name so I thought this would work. XY did find the string Page 5 when I searched the .mobi file in both normal mode and in regex mode. I renamed the .epub to .zip and repeated the search it works - so is it a file association thing?

How can I search the epub's without renaming them?

Tested in 10.70.0203

Re: Finding text inside epub files

Posted: 06 Jan 2012 00:56
by serendipity
Steadyhands wrote:Hi,

I tried to use XY in normal search mode to look into an .epub file to search for the string "Page 5" but it couldn't find it. I had first tried a regex search for Page [0-9] but this didn't work either.

The contents of the .epub are just html files and the epub is just a zip file with another name so I thought this would work. XY did find the string Page 5 when I searched the .mobi file in both normal mode and in regex mode. I renamed the .epub to .zip and repeated the search it works - so is it a file association thing?

How can I search the epub's without renaming them?

Tested in 10.70.0203
Hi,
First, maybe you can try to include .epub in the same place as .zip in Tools>Config>Previewed formats.
Second, there is a key called "TextPreviewCustomExtensions" in the ini file (Tools>Open configuration file). Add your extension here, save ini file and restart without saving (File>Restart without saving).
Note: Save you config first before opening ini file, as you see in the second part you have restart XY without saving.
Hope that helps.