On 4/8/24 22:23, Waldek Hebisch wrote:
It is reasonably good target. The problem as of today is that code in 'i-output.boot' is our most robust formatter and ideally replacement would more robust.
I agree here. Even though I am pretty sure that Format2D gives better output then i-output.boot (and src/input/outputtest.input seems to confirm this), Format2D lacks a reasonable line-breaking algorithm. If somehow could help with that, it would be progress.
Ralf have written a few formatters and Format2D in most cases works fine. But robustness is about remaining cases.
"Remaining" means what here? One problem probably was that i-output.boot is not only used for the output from src/algebra, but also to format constructors when errors occur. Assuming the linebreaking stuff being settled, one could perhaps manage to let i-output.boot only do the contructor printing, i.e. first split it and let Format2D take over the algebra part.
Also, Ralf uses different way to control formatters. ATM it is not clear to me how to hook his formatter so that it presents control interface like earlier formatters _and_ works like Ralf want it to work...
Yes, I want these formatters to stay as flexible as they are, but I do not really understand what you mean by "hook" or what the "control interface" is. I basically wrote those formatters from scratch, because it was too hard to do a new format by a simple change of a few lines of code.
If it ever becomes relevant, we should start a discussion about the goals and then how to get there.
Ralf -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/d3aac9f9-213a-4e46-aefc-2dd11d443d65%40hemmecke.org.
