Works very fast, but absolutely not like IE does after selecting and copying the contents of a file.
that is, after Alt+Shift (select) Ctrl+C (copy) Ctrl+v (paste to editor)
But if the file is very large IE is not good: drawing can take several minutes.
The Russian translation takes about three times longer to draw than the English original.
And then selecting and copying after drawing may have inaccuracies.
The extracttext() function does it very quickly, it extracts the text, but not in the way I see it with my eyes in the htm file.
There are many extra paragraphs and, conversely, many paragraphs are written on one line.
In addition, the invisible text in the htm file oft extracted additionally.
---------------
I would like to have the same extracted text as after copying from IE.
---------------
I get large HTM file by combining the files that make up CHM help into one file.
Such a single file allows for an improved search.
After unpacking CHM I do three steps:
1) sort 2) select the necessary files 3) Run script:
Code: Select all
global $iniFile = "<curpath>\New_ru_8184.htm";
$contents = "";
foreach($file, <get "SelectedItemsPathNames" <crlf>>, <crlf>) {
$contents = $contents . <crlf> . "[$file]" . <crlf> . readfile($file) . <crlf>;
}
writefile($iniFile, $contents);After downloading the zip using a browser, you have to copy or move zip manually to any location and thus get permissions to open the files inside it without unzipping.
XYplorer Beta Club