EdgeViewer - Modern HTML viewer plugin

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
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *LonerD »

Thank you for update.
Please, add page encoding for mht/mhtml files.
As example, page with Cyrillic symbols. Saved in Edge (the same situation if it saved in Chrome)
https://www.upload.ee/files/15713391/Page.mhtml.html
Edge displays it correctly, TC plugin HTMLView - correctly.
EdgeViewer - кракозябры. Image: https://i.imgur.com/o3fhqhg.png
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

Horst.Epp wrote: 2023-09-22, 09:58 UTC For me, it doesn't.
I have HTMLView and the EdgeViewer installed.
This way, HTMLView displays dir content.
This is a recurring topic here. I don't know how to combine this functionality with detect string. It seems that a directory doesn't match any detect string, so my ListLoad() is not called. It seems the only way to get ListLoad() called is to completely abandon a detect string. Correct me if I am wrong.
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

LonerD wrote: 2023-09-22, 13:26 UTC Thank you for update.
Please, add page encoding for mht/mhtml files.
Will try to investigate. It seems that the conversion module mangles it :( Not sure if I can fix it, but clearly an issue.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

rg_software wrote: 2023-09-22, 16:21 UTC This is a recurring topic here. I don't know how to combine this functionality with detect string. It seems that a directory doesn't match any detect string, so my ListLoad() is not called. It seems the only way to get ListLoad() called is to completely abandon a detect string. Correct me if I am wrong.
You are wrong :)
Even with an empty detect string, EdgeViewer doesn't display dirs.
HTMLView always displays dirs.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

Horst.Epp wrote: 2023-09-22, 16:34 UTC You are wrong :)
Even with an empty detect string, EdgeViewer doesn't display dirs.
HTMLView always displays dirs.
I can do it with an empty detect string, but I can't do it when it isn't empty. Does HTMLView display dirs with a non-empty detect string? F3, Ctrl+Q, go to next file?
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *petermad »

Does HTMLView display dirs with a non-empty detect string? F3, Ctrl+Q, go to next file?

Yes. (for Ctrl+Q when ShowDirs=1 is set in the [options] section of HTMLView.ini)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

rg_software wrote: 2023-09-22, 23:08 UTC I can do it with an empty detect string, but I can't do it when it isn't empty. Does HTMLView display dirs with a non-empty detect string? F3, Ctrl+Q, go to next file?
No, Dir display is only working with an empty detect string.
With a non-empty string, TC shows the details about the dir
or in my case, DirSizeCalc shows a graphic with the sizes of the dir entries.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *petermad »

With a non-empty string, TC shows the details about the dir
You can use for example:

Code: Select all

X_detect="EXT="" | EXT="PDF" | EXT="HTM""
or

Code: Select all

X_detect="EXT="" | EXT="PDF" | FORCE"
then HTMLView will also show dir content (and no - it does not try to show files without and extension, and it does work for folders with with a dot in the name)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

2petermad
You are right, as always :wink:
"EXT="" does the job.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *MaxX »

I have some old MHTs - https://www.upload.ee/files/15718654/TEST_MHT.rar.html
None of them could be opened with 1.0.3 version. I see just blank white page.

wincmd.ini :

Code: Select all

2=%COMMANDER_PATH%\Plugins\wlx\EdgeViewer\EdgeViewer.wlx
2_detect="EXT="HTM"|EXT="HTML"|EXT="XML"|EXT="PDF"|EXT="PHP"|EXT="MD"|EXT="MARKDOWN"|EXT="ADOC"|EXT="ASCIIDOC"|EXT="URL"|EXT="MHT"|EXT="MHTML""
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

MaxX wrote: 2023-09-24, 06:54 UTC I have some old MHTs - https://www.upload.ee/files/15718654/TEST_MHT.rar.html
None of them could be opened with 1.0.3 version. I see just blank white page.
Same here.
All of them can be shown with HTMLView, ULister or MS Edge.
EdgeViewer only shows blank pages.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

EdgeViewer only shows blank pages.
They aren't blank pages, they are conversion errors of mhtml2html library. Someone will have to fix that.

Speaking of directories, are you guys mostly interested in image thumbnails? It seems that the old HTMLView is pretty robust, BUT it doesn't really do anything itself, its all the functionality of underlying IE engine. Edge doesn't have it, so I can make an image gallery, for example, or something more interesting, but in any case it would be my job to decide how to show the dir content.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

With HMTMLView I like the display of directory thumbnails
and for files the details list.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *MaxX »

rg_software wrote: 2023-09-24, 14:33 UTC
EdgeViewer only shows blank pages.
They aren't blank pages, they are conversion errors of mhtml2html library. Someone will have to fix that.
What can we do with that ourselves now?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

MaxX wrote: 2023-09-25, 13:29 UTC What can we do with that ourselves now?
Wait until someone fixes it and use HTMLView :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Post Reply