Tiddloid icon indicating copy to clipboard operation
Tiddloid copied to clipboard

Request for support for .hta file extension

Open whjou opened this issue 2 years ago • 6 comments

I use this "hack" https://tiddlywiki.com/static/Windows%2520HTA%2520Hack.html to use TiddlyWiki on Windows. Can you modify Tiddloid to support opening/saving files with .hta extension so that I can sync to my phone and open it in Tiddloid?

whjou avatar Mar 23 '22 05:03 whjou

I see. The .hta file is basically HTML file so it is possible to load it. I'll try it out if possible.

donmor avatar Mar 23 '22 05:03 donmor

Achieved. Will be in the next update.

donmor avatar Mar 23 '22 13:03 donmor

Thanks!

whjou avatar Mar 24 '22 10:03 whjou

@donmor the .hta support didn't exactly work as expected. While HTML files with .hta extension is handled, I think the UTF-16 part isn't. Tiddloid would try to load the .hta which is UTF-16 encoded HTML but fail. Can you add support to read UTF-16 encoding as well, if possible? I have a sample of empty.html in UTF-16 if you need one to test but do not know how to pass to you.

whjou avatar Apr 15 '22 16:04 whjou

To generate utf-16 encoded version, open a TiddlyWiki.html file in vim,

:set fileencoding=utf-16le :wq

Or use attached. TiddlyWiki-v5.2.2-Empty.hta.zip

whjou avatar Apr 29 '22 17:04 whjou

Support for utf16 files has been implemented and will be in the next version.

donmor avatar Apr 29 '22 23:04 donmor

Okay I uploaded 2.3.0 to GitHub/Gitee/CoolApk (F-droid version needs some time to be built). Try it and let me know if it ceased your problem.

donmor avatar Sep 24 '22 14:09 donmor

Is there still problem with 2.3.0 or later? I may close this if no problem reported.

donmor avatar Mar 05 '23 07:03 donmor

No more reports for nearly a year. Closing this. Reopen it if you're still concerned.

donmor avatar Mar 10 '23 14:03 donmor

Apologies for the long silence. Just for closure, the HTA changes seem to work with test files but crashed when I loaded my actual work .hta file.

Screenshot_20230514_080957_Device care

Since the phone was complaining about WebView, I'm assuming it's not a Tiddloid issue and am letting it be.

Thanks for your effort in trying to accommodate a random Internet user!

I recently discovered and tested https://github.com/slaymaker1907/TW5-browser-nativesaver that can save TW without additional add-ons and that obviates the need to use HTA hack in a locked down environment. Stating this here in case it helps others currently stuck on HTA. Also to clarify why I'd let the issue be.

whjou avatar May 14 '23 02:05 whjou