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-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 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 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 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 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 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 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