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 with html reports and pagination, in particular,
but there is a solution for that, e.g., using paged.js
https://pagedjs.org/made-with-paged.js.html

I know paged.js from its use in an R package. Here's some examples:
- a report https://slides.yihui.org/2019-ISU-pagedown.html#12
- a poster with a complex layout
https://slides.yihui.org/2019-ISU-pagedown.html#20
- a letter https://slides.yihui.org/2019-ISU-pagedown.html#24
- a journal article in html and pdf side-by-side
https://slides.yihui.org/2019-ISU-pagedown.html#34

Or have I misunderstood the problem?

David

On Tue, 21 Nov 2023 at 03:36, john  wrote:
>
> 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 generates 
> PostScript vector graphics (https://graphviz.org <https://graphvizorg/> comes 
> to mind). That's a pretty big rewrite, probably a solid year of work for an 
> experienced developer with lots of available time and assuming that there's a 
> suitable library to abstract generating the PDF boilerplate.
>
> The reason using the web browser to display the html loses the 
> transaction/account links is because they're implemented using a callback 
> function that we can register with WebKitWebViewGtk. That goes away when the 
> browser isn't part of GnuCash. It's not impossible, of course: It should be 
> possible to embed a bit of javascript that calls back to GnuCash on a (new) 
> socket listener that would do the linked action.
>
> Regards,
> John Ralls
>
>
> > On Nov 19, 2023, at 21:32, Adrien Monteleone 
> >  wrote:
> >
> > 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 default browser
> > *Write reports directly to PDF
> >
> > The drill-down links I think get lost either way, and maybe that is 
> > unacceptable, but View, Print, PDF export, and get charts. (The writing to 
> > PDF would just be for export)
> >
> > And I'm not quite following the loss of drill-down links on the first 
> > option. Certainly, I can open a local HTML file in my browser and it can 
> > contain links to local resources. Is there a way to expose a URI to a 
> > GnuCash transaction or other resource that might work? Or is the fact that 
> > it has to leave 'GTK land' for 'native land' in the browser and back in 
> > such a case the problem? Or is it that targeting anything within the data 
> > file is the tricky/impossible part? (I admit, while I've used local HTML to 
> > access local files, I've never tried to access only a portion of a file or 
> > even a marker in a file)
> >
> > Apologies if my lack of understanding the guts of it all is noise.
> >
> > Regards,
> > Adrien
> >
> > On 11/19/23 11:20 PM, john wrote:
> >> 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 same as Sherlock's 
> >> suggested CEF, i.e. Chromium Embedded Framework. It supports Gtk only on 
> >> Linux; on macOS and Windows it build to the native toolkits, so we'd have 
> >> to hack the build to provide Gtk3 on macOS and Windows. There's no mention 
> >> of support for MinGW, so that might not be possible. The level of effort 
> >> needed both to get and keep the ports working might make it impractical 
> >> even if it is possible, but the only way to find that out is to try.
> >> Note that while most repos have a Chromium package, only Arch and Nix have 
> >> CEF packages. Adding it as a GnuCash dependency is likely to get most 
> >> distros to drop us, so nearly everybody on Linux/BSD would be forced to 
> >> use flatpak.
> >
> > ___
> > gnu

Re: [GNC-dev] [GNC] GnuCash 4.900 Released

2023-01-10 Thread david whiting
Here's the original email:
https://lists.gnucash.org/pipermail/gnucash-user/2023-January/104905.html

First two lines for context:

The GnuCash development team announces GnuCash 4.900, the first
unstable release leading to GnuCash 5.0.
This is an unstable release for testing purposes. Do not use it with
production data! Make a copy of your book to test this release.

David

On Tue, 10 Jan 2023 at 08:29, Jeff  wrote:
>
> On 1/10/23 12:14 AM, Adrien Monteleone wrote:
> > Lots of great improvements already and I'm sure more to look forward
> > to. (some new reports too!)
> >
> > But of the list so far, my money is on this one getting the most sighs
> > of relief and smiles:
> >
> > "The description field quickfill in the register now displays a
> > drop-down list of possible completions instead of just one inline
> > completion."
> >
> > (of course, a Stock Assistant is majorly cool too...)
> >
> > Thanks to all!
> >
> > Regards,
> > Adrien
> >
> > ___
> > gnucash-user mailing list
> > gnucash-u...@gnucash.org
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > -
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
>
> I missed something here, not surprising with the last 48 hour days I
> have spent.  All of the messages I see are Re.[GNC] GnuCash 4.900
> Released.  I cannot find the original message in any of the e-mails I
> down loaded.  Is there a new version or not?
>
> And how do I find it under Ubuntu 22.04.1 LTS?
>
> --
> --JEffrey Black M.B.A.
>
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



-- 
David Whiting
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Question about account list and typeahead

2020-03-15 Thread david whiting
That used to trip me up too, but there is now ctrl+i which pops up a
dialogue to search for accounts. One minor gripe with that is that the
focus is not on the search box so you have to tab twice, enter your search
expression, tab, then enter. You then get a list of matching accounts and
select the one you want. One advantage of this approach is that it also
works from any register (but not reports), but it is not quite as fast as
being able to do what you are after in the chart of accounts.

David



On Sat, 14 Mar 2020, 22:53 jean,  wrote:

> Or as a workaround, could we not provide a shortcut to expand/contract
> all accounts?
> That way, when you start typing any account in the hierarchy would be
> searched...
>
> J.
>
> On 3/14/20 12:34 PM, jeanl wrote:
> > Guys,
> >
> > When we're in the account list view (the main gnucash page), you can
> start
> > typing and this will open the account list to the first matching account.
> > This is very convenient to quickly access an account in a large, deep
> > hierarchy.
> > However if the account tree isn't expanded, its leaf accounts are not
> > matched, so unless the tree is fully expanded, the type ahead account
> match
> > isn't terribly useful.
> >
> > Question: Is this on purpose? I would imagine that would not be hard to
> fix,
> > so there must be a reason why it hasn't been...
> >
> > NOTE: This has nothing to do with the PR I submitted about matching
> account
> > in the transaction editing dialog)
> > Jean
> >
> >
> >
> > --
> > Sent from:
> http://gnucash.1415818.n4.nabble.com/GnuCash-Dev-f1435356.html
> > ___
> > gnucash-devel mailing list
> > gnucash-devel@gnucash.org
> > https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel