[Bug 35694] "Page number" automatic field stops counting before last page if offset >0 (see comment 22)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 25 20:22:06 UTC 2024


https://bugs.documentfoundation.org/show_bug.cgi?id=35694

--- Comment #76 from Eyal Rozenberg <eyalroz1 at gmx.com> ---
(In reply to Mike Kaganski from comment #70)
> Generally, "ApplyOffset(GetNumberOf(CurrentPage()), N )" implies a numeric 
> "page number", which is not a requirement.

It isn't? Page numbers are numbers, and numbers are numeric, aren't they? If
you're referring to the styling of the number, i.e. A B C or i ii iii vs 1 2 3,
that's just formatting; the offset applies to the number itself, not its
formatted form.

> Any such arithmetics will not give you
> a *number*, but a "page number" - thus, the only sensible thing is
> "GetNumberOf(ApplyOffset(CurrentPage(), N))".

I have argued above that it is not a sensible thing. A user who chooses to
[Insert | Page Number] does not want to insert the number of another page. For
doing that, they would [Insert | Cross Reference]. 

(By the way, if a user does [Insert | Field], the dialog clearly separates
"Cross Reference" from where we get the page number. But then, within the
"Document" tab, in the "Select" column, we have "Page Number", "Previous Page",
"Next Page". This suggests that we do get cross-ref-type fields on this pane;
but it also suggests that the way to refer to another page is through the
"Select" box, not through the Offset field, and that "Page Number" itself will
only be the current page's number, not the number of any other page)

> And we are back to the wording. It should be fixed.

If you want to fix the UI so that Page Numbers are not necessarily numbers, you
have to rework:

1. Some items on the Insert menu
2. The [Insert | Field] dialog <- which makes that assumption in multiple ways,
including by have a number sequence choice box
3. The Insert Page Numbers dialog

... and I wonder whether replacing Page Numbers with something else will be a
positive development for our users. Although I still don't know what you intend
to replace "Page Number" with, so maybe it won't be that bad? :-\

> Now we have a *different* field, namely, Insert Formula field,

We do? I can't find it on the Insert menu, nor in the Insert Field dialog. 

Anyway, this could certainly be a basis for getting the
"ApplyOffset(GetNumberOf(CurrentPage()), N )" effect. If we take that
direction, then I believe the UI for [Insert | Page Number] would have to be
rebased on this formula mechanism to begin with.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list