Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-21 Thread John Ralls
> On Nov 21, 2023, at 1:13 PM, Geert Janssens > wrote: > > > * Configure a > > GtkTextView to understand HTML tags. This doesn't support charts, printing, > > or PDF export. > > While probably less work, the result would be a huge step back IMO. > Maybe just a step sideways: It actually

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-21 Thread John Ralls
> On Nov 21, 2023, at 1:13 PM, Geert Janssens > wrote: > > Keeping the links as you suggested in another reply in this thread is > definitely tricky. I have been researching this for an unrelated project. > Browsers are (rightfully) very reluctant to let a webpage interface with the >

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-21 Thread Geert Janssens
Op zondag 19 november 2023 05:00:49 CET schreef john: > I spent some time this afternoon poking at webkit replacement. The options I > found are: > * Keep using WebKitGtk > * Figure out how to wrap a native (meaning Apple AppKit or Microsoft) > WebView in a GtkWidget I agree it's probably a lot

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-21 Thread john
> On Nov 21, 2023, at 02:29, Christopher Lam wrote: > > > > On Sun, 19 Nov 2023 at 12:01, john > wrote: >> I spent some time this afternoon poking at webkit replacement. The options I >> found are: >> * Keep using WebKitGtk >> * Figure out how to wrap a native

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-21 Thread john
Adrien, I haven't looked at those specific recommendations, but a general caution about dependencies: They must either be widely supported by Linux distros or small and simple enough to add to GnuCash itself in the "borrowed" subdirectory. In the latter case it means we've forked the project

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-21 Thread Adrien Monteleone
Thanks John, If the internal links are indeed possible, I'd think HTML to the browser would be the way to go. As David noted, if someone wants a PDF, they can save it from there. But all is not lost with respect to a direct PDF export. That might be possible by first generating the HTML,

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-21 Thread Christopher Lam
On Sun, 19 Nov 2023 at 12:01, john wrote: > I spent some time this afternoon poking at webkit replacement. The options > I found are: > * Keep using WebKitGtk > * Figure out how to wrap a native (meaning Apple AppKit or Microsoft) > WebView in a GtkWidget > ^ This one would be my vote if it's

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-21 Thread david whiting
Just want to check that I understand the problem correctly. Is there a reason why we can't send HTML reports to the browser, as suggested, then print or save to pdf from the browser? Do we need to generate postscript or pdf directly from gnucash? I know that at the moment there can be problems

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-20 Thread john
Adrien, Sending the HTML to the browser is easy. Writing the reports in PDF directly requires a complete rewrite of the report output code that's hardwired to generate HTML using basic scheme text output, plus replacing the javascript-based charts solution with some other library that

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-19 Thread Adrien Monteleone
Thank you for the explanation John. I seem to recall a bit of that from an older discussion. While it seems there is no ideal all-in-one solution, might two of your last three suggestions be doable or is each one a serious pile of work on its own? That is: *Send the HTML/JS/CSS to the

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-19 Thread john
The reason for selecting WebKitGtk is the Gtk: It had WebKitWebView and was supported in most distros and Mingw. The Mozilla team seem to have stopped maintaining their embedding facility around 2015 and it is apparently badly bit-rotted. Blink is Chromium's rendering engine so that's the

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-19 Thread Adrien Monteleone
Gecko? Blink? I'm sure there was a reason for selecting WebKit originally. Does that still hold true? Regards, Adrien On 11/18/23 10:00 PM, john wrote: I spent some time this afternoon poking at webkit replacement. The options I found are: * Keep using WebKitGtk * Figure out how to wrap a

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-19 Thread Sherlock
CEF? > On Nov 18, 2023, at 8:00 PM, john wrote: > > I spent some time this afternoon poking at webkit replacement. The options I > found are: > * Keep using WebKitGtk > * Figure out how to wrap a native (meaning Apple AppKit or Microsoft) WebView > in a GtkWidget > * Send the HTML/JS/CSS to

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-18 Thread john
I spent some time this afternoon poking at webkit replacement. The options I found are: * Keep using WebKitGtk * Figure out how to wrap a native (meaning Apple AppKit or Microsoft) WebView in a GtkWidget * Send the HTML/JS/CSS to the default browser. This will lose the links to GnuCash objects

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-18 Thread john
WebKitGtk. When I wrote that I was thinking Gtk4, but that won't work on Windows because WebKitGtk 2.4, the last release before they ripped out all of the Windows support code, obviously doesn't support Gtk4. I don't know that we have until 2026 because I don't know what are the other

Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-18 Thread Robert Fewell
Can I get clarification, is that migrating to Gtk4 or move away from WebKitGtk ? I suppose either change would be a major one so that would be version 6.0 I assume. I seem to recall there was a question on release cycles but can not find where, so if 6.0 is that still 08/03/2026 ? Regards, Bob

[GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-17 Thread john
WebKitGtk 2.43.1 was just released and one of its changes is that it's Gtk4 by default and one must specify a build option, -DGTK4=OFF, to use it with Gtk3. I asked on the webkitgtk mailing list if there's a schedule for dropping Gtk3 support. Carlos Garcia Campos replied "No, but it will take