Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dave Yeo

Pages: 1 2 [3] 4 5 ... 333
31
Internet / Re: Dooble releases-Qt6
« on: August 30, 2024, 07:07:24 am »
Hi Pete, Hunspell uses the myspell dictionaries and I believe most have hunspell installed, Firefox and Thunderbird require it, SeaMonkey I accidentally used the intree version and then decided to leave it that way.
Anyways the ones I posted are likely more up to date and already converted.

32
Programming / Re: Qt6 Application Testing
« on: August 30, 2024, 06:20:28 am »
Hi Paul, I fixed dooble.pro to process the dictionary files, make failed as it expected qwebengine_convert_dict to be in qt6-6.2.x\libexec instead of bin. I notice that Qt5 puts it in @unixroot/usr/lib/qt5/bin along with a lot of other Qt5 exe's.
Is that how your build left it or are you manually installing?

33
Internet / Re: Dooble releases-Qt6
« on: August 30, 2024, 12:29:55 am »
They're the same as the Qt5 dictionaries. To get the ones Paul pointed to means doing a git clone. Easier to get the ones in @unixroot\usr\share\myspell. Either way they need to be converted with qwebengine_convert_dict.exe, either the one in @unixroot\usr\lib\qt5\bin or x:\qt6-6.2.x\bin. See my previous post.
I'd post the dictionaries directory, but zipped it is 35MB's. If you need an individual one, ask.
Actually here's my dictionaries, various en, now removed
Edit: figured out how to automatically create the dictionaries during build, so here's the ones I think we would like to have.

34
Internet / Re: Dooble releases-Qt6
« on: August 29, 2024, 07:34:05 am »
Here's the commit that broke finding the dictionaries when installed as qtwebengine_dictionaries as a child directory under the directory where the dooble binary resides.
I can't quickly see the problem, have to sleep on it. I do notice that dooble.sh, the Linux wrapper script has  various export QTWEBENGINE_DICTIONARIES_PATH= added. Perhaps we should just do similar rather then getting further from upstream by reverting this commit or otherwise changing things.
Code: [Select]
From 02958934b6771efdebbb9dfdc8d77e3d7018c2c2 Mon Sep 17 00:00:00 2001
From: textbrowser <textbrowser@gmail.com>
Date: Fri, 26 Apr 2024 18:35:35 -0400
Subject: [PATCH] Improved error messages.

---
 Source/dooble_settings.cc | 22 ++++++++++++++--------
 dooble.sh                 |  4 ++++
 2 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/Source/dooble_settings.cc b/Source/dooble_settings.cc
index a84e9f76..0ff17f49 100644
--- a/Source/dooble_settings.cc
+++ b/Source/dooble_settings.cc
@@ -2304,21 +2304,22 @@ void dooble_settings::show_panel(dooble_settings::Panels panel)
 
 void dooble_settings::show_qtwebengine_dictionaries_warning_label(void)
 {
-  m_ui.qtwebengine_dictionaries_warning_label->setText
-    (tr("<b>Warning!</b> "
- "The directory qtwebengine_dictionaries cannot be accessed. "
- "Dooble searched QTWEBENGINE_DICTIONARIES_PATH and the relative "
- "qtwebengine_dictionaries directories. "
- "Please read %1, line %2.").arg(__FILE__).arg(__LINE__));
   m_ui.qtwebengine_dictionaries_warning_label->setVisible(false);
 
   auto bytes(qgetenv("QTWEBENGINE_DICTIONARIES_PATH"));
 
   if(bytes.trimmed().isEmpty())
     {
-      bytes = "qtwebengine_dictionaries";
+      auto directory
+ (QDir::currentPath() + QDir::separator() + "qtwebengine_dictionaries");
 
-      if(!QFileInfo(bytes).isReadable())
+      m_ui.qtwebengine_dictionaries_warning_label->setText
+ (tr("<b>Warning!</b> "
+     "The directory qtwebengine_dictionaries cannot be accessed. "
+     "Dooble searched %1. Please read %2, line %3.").
+ arg(directory).arg(__FILE__).arg(__LINE__));
+
+      if(!QFileInfo(directory).isReadable())
  {
    m_ui.qtwebengine_dictionaries_warning_label->setVisible(true);
    return;
@@ -2326,6 +2327,11 @@ void dooble_settings::show_qtwebengine_dictionaries_warning_label(void)
     }
   else if(!QFileInfo(bytes).isReadable())
     {
+      m_ui.qtwebengine_dictionaries_warning_label->setText
+ (tr("<b>Warning!</b> "
+     "The directory qtwebengine_dictionaries cannot be accessed. "
+     "Dooble searched %1. Please read %2, line %3.").
+ arg(bytes.constData()).arg(__FILE__).arg(__LINE__));
       m_ui.qtwebengine_dictionaries_warning_label->setVisible(true);
       return;
     }
diff --git a/dooble.sh b/dooble.sh
index dd7f8d02..ac5d06a8 100755
--- a/dooble.sh
+++ b/dooble.sh
@@ -28,6 +28,7 @@ export QT_X11_NO_MITSHM=1
 if [ -r ./Dooble ] && [ -x ./Dooble ]
 then
     echo "Launching a local Dooble."
+    export QTWEBENGINE_DICTIONARIES_PATH=qtwebengine_dictionaries
 
     if [ -r ./Lib ]
     then
@@ -46,6 +47,7 @@ then
     echo "Launching an official Dooble."
     export DOOBLE_TRANSLATIONS_PATH=/opt/dooble/Translations
     export LD_LIBRARY_PATH=/opt/dooble/Lib
+    export QTWEBENGINE_DICTIONARIES_PATH=/opt/dooble/qtwebengine_dictionaries
     export QT_PLUGIN_PATH=/opt/dooble/plugins
     cd /opt/dooble && exec ./Dooble "$@"
     exit $?
@@ -54,6 +56,8 @@ then
     echo "Launching an official Dooble."
     export DOOBLE_TRANSLATIONS_PATH=/usr/local/dooble/Translations
     export LD_LIBRARY_PATH=/usr/local/dooble/Lib
+    export QTWEBENGINE_DICTIONARIES_PATH=/usr/local/dooble/\
+    qtwebengine_dictionaries
     export QT_PLUGIN_PATH=/usr/local/dooble/plugins
     cd /usr/local/dooble && exec ./Dooble "$@"
     exit $?
--
2.30.2

35
Try using AMouse, there's an older version on Hobbesarchive which says it runs on Warp. http://hobbesarchive.com/Home/Download?path=/Hobbes/pub/os2/system/drivers/mouse/Amouse_2-80.wpi.

36
Internet / Re: Dooble releases-Qt6
« on: August 28, 2024, 05:57:13 pm »
About UA (User Agent) detection. A lot of sites seem to have crappy UA detection. Ideally they shouldn't even care about the UA, rather detecting browser features and adjusting the page or rejecting the browser based on the detection.
Instead they seem to detect the browser, compare to a list and fail when a browser or Operating System appears that is not in the list. I monitor the SeaMonkey newsgroup and UA's often come up. Which version of Firefox to advertise in SeaMonkey's UA, whether to mention Firefox are common topics. They've even added, in about:settings, the capability to vary the UA depending on site.
I still use SeaMonkey mostly and have the UA switcher extension installed. There are sites where I actually use the Dooble UA string to get the page to display the page.
Basically, using uncommon browsers breaks the UA detection on too many pages, so have to change the UA

37
Internet / Re: Dooble releases-Qt6
« on: August 28, 2024, 05:20:06 pm »
Hi David, seems really the dictionaries should be packaged during the build, at least the other day when I built Dooble on Linux Mint, that happened. Not sure if a bug or missing directive in the dooble.pro file.
I do have this howto, from Bitwise? or did I write it and forgot?
Quote
Create x:\qt6\qtwebengine_dictionaries
copy dictionary files such as en_CA.aff and en_CA.dic from @uixroot/usr/share/myspell to the above.
From x:\qt6\qtwebengine_dictionaries, run qwebengine_convert_dict ./en_CA ./en_CA.bdic so something like
Code: [Select]
[L:\qt6\bin\qtwebengine_dictionaries]qwebengine_convert_dict ./en_CA.dic ./en_CA.bdic
./en_CA.dic_delta not found.
Reading ./en_CA.aff
Reading ./en_CA.dic
Serializing...
Verifying...
Writing ./en_CA.bdic
Success. Dictionary converted.

Of course you have to install the language you desire, hunspell-fr for French for example.

38
Internet / Re: Dooble releases-Qt6
« on: August 28, 2024, 05:06:30 pm »
Hi Remy, seems there's been a patch applied upstream that broke the dictionary search, notice the 2 versions refer to different addresses. Looking quickly with git blame, all I found was a commit that created better error reporting.
Later I'll bisect the tree to try to find the commit that broke things.

39
Internet / Re: Dooble releases-Qt6
« on: August 28, 2024, 06:01:52 am »
Other things I found:
Trying to use the google translate option, the processes link is set incorrectly.

Original link:
https://www.os2world.com/cms/

The issued link for google !
https://www-os2world-com.translate.goog//cms/?_x_tr_sl=auto&.........

A duplicate // before cms

Hmm, this did work, see the original posted picture referenced here, https://github.com/textbrowser/dooble/issues/200#issuecomment-1819629660 the picture clearly shows a double // and working.
It is easy enough to remove the / It needs more testing, so here is a test build if you want to put it through its paces.

Hi Dave,
This build corrects the double // for the google translate tool.

But, dictionaries aren't found (canot be accessed *.bdic) and the message when renaming the dictionary path start with:
"Please read K:/work/dooble-dry/source/...." this is your disk path  ;)
Something got wrong into this Dooble build.
Back to previous build, message is correct and after correcting the path name, dictionaries are found

 :)   

Did the message say where in the source to read? Quickly looking, I can't find it.
set qtwebengine_dictionaries= does work here with the full path name including drive letter and using / instead of \ for directory separator.

40
Internet / Re: Dooble releases-Qt6
« on: August 27, 2024, 06:03:28 am »
Perhaps it is only a problem with some languages, or translating from English to English. The example in the ticket image, https://baotanglichsu.vn/vi translates fine to https://baotanglichsu-vn.translate.goog//vi?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp which even with the // displays fine.

41
Internet / Re: Dooble releases-Qt6
« on: August 27, 2024, 05:55:08 am »
Tested Translate on Linux Mint, same problem with the double //

42
Internet / Re: Dooble releases-Qt6
« on: August 27, 2024, 02:44:45 am »
Other things I found:
Trying to use the google translate option, the processes link is set incorrectly.

Original link:
https://www.os2world.com/cms/

The issued link for google !
https://www-os2world-com.translate.goog//cms/?_x_tr_sl=auto&.........

A duplicate // before cms

Hmm, this did work, see the original posted picture referenced here, https://github.com/textbrowser/dooble/issues/200#issuecomment-1819629660 the picture clearly shows a double // and working.
It is easy enough to remove the / It needs more testing, so here is a test build if you want to put it through its paces.

43
Internet / Re: Dooble releases-Qt6
« on: August 26, 2024, 11:48:46 pm »
Yea, we pretty well have to use single process mode due to limitations with our operating system and some things don't work, another one is private windows.
The JavaScript errors are likely due to the old version of Chrome.

44
Internet / Re: Dooble releases-Qt6
« on: August 26, 2024, 11:25:44 pm »
Some of these problems are still due to using an old version of Chrome. Some sites only support the latest and the latest minus one and even the newest Firefox has problems, basically bad web authoring.
The title bar problem is that OS/2 doesn't support Unicode in things like window titles. Code could be added to convert the Unicode to which ever codepage the user is using. As Paul says, just finding the code to be extended is hard and there are better things to focus on.
The user agent could be a problem with the web sites parsing of it, previously we had problems with Firefox and sites serving up a mobile version as they have no idea what OS/2 is. Here you can experiment with user agents.
The other problem is Dooble has a tendency to freeze when playing some videos, don't try Youtube
It's also a good idea to regularly back up the profile, it seems to get corrupted sometimes when the system freezes.

45
Internet / Re: Dooble releases-Qt6
« on: August 26, 2024, 05:51:03 am »
The core DLLs in post 1 of that thread are still current (November 2023).

That build is still current, but to support drive letters in the urlbar, needs the updated DLLs from yesterday.

Sure you haven't lost track? Seems I'm running the build referenced in https://www.os2world.com/forum/index.php/topic,3182.msg44371.html#msg44371.
Perhaps I've lost track.
Code: [Select]
L:\qt6-6.2.x\lib>bldlevel Qt6Core.dll
Build Level Display Facility Version 6.12.675 Sep 25 2001
(C) Copyright IBM Corporation 1993-2001
Signature:       @#cmake build system:6.2.8#@##1## 18 May 2024 09:58:11     ARCAOS-803C4C0::::0::@@Core
Vendor:          cmake build system
Revision:        6.02.8
Date/Time:       18 May 2024 09:58:11
Build Machine:   ARCAOS-803C4C0
ASD Feature ID:  4C0
File Version:    6.2
Description:     Core

Pages: 1 2 [3] 4 5 ... 333