Created attachment 184601 [details] Bug Field Page Number Hello. When I insert the page number (using Insert >> Field >> Page Number) and double click on the page number field, the edit fields window opens and I can select one of those formats. But there is a bug: When I select the format "one, two, three,...", the number "1" is inserted instead of "one"! And when I select the "1st, 2nd, 3rd" format, the word "Ordinal-number1" is inserted! And when I select "a ..aa ..aaa" format, the word "1" is inserted! And when I selct "First,Second,Third", the word "Ordinal 1" is inserted! I attached the screenshots.
Created attachment 184602 [details] Bug Field Page Number
Created attachment 184603 [details] Bug Field Page Number
Thank you for your report! Could not reproduce in: Version: 7.5.0.1 (X86_64) / LibreOffice Community Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded nor in: Version: 7.4.3.2 / LibreOffice Community Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Could you please: - paste here the information from Help > About LibreOffice - test in safe mode (Help > Safe mode > Continue in safe mode) to see if it still happens Thank you!
Version: 7.4.3.2 / LibreOffice Community Build ID: 40(Build:2) CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: fa-IR (en_US.UTF-8); UI: en-US Ubuntu package version: 1:7.4.3~rc2-0ubuntu0.22.04.1~lo1 Calc: threaded
I tested this bug in Safe Mode and except for two formats (a..aa..aaa & A..AA..AAA) the rest of other formats were correct! I attached 2 screenshot.
Created attachment 184604 [details] Bug Field Page Number
Created attachment 184605 [details] Bug Field Page Number
@hossein Would you please also test?
OK, I can now reproduce for a.aa..aaa and A..AA..AAA: they are both equivalent to "a b c" and "A B C". Steps to reproduce: 1. Open Writer 2. Ctrl + Return for a page break 3. Insert > Page Number 4. Doube-click on the field 5. Change format to "a..aa..aaa", OK 6. On the next like, do steps 3-5 again but for format "A..AA..AAA" Reproduced in: OpenOffice.org 3.3.0 OOO330m20 (Build:9567) Version: 7.4.3.2 / LibreOffice Community Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Version: 7.5.0.1 (X86_64) / LibreOffice Community Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded And a master build from today: Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 92deea6301a02f5530f17263f58402344f82013c CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Same on Win 10 (tested with LO 7.5)
Created attachment 184606 [details] test ODT created in LO 7.4.3.2
On pc Debian x86-64 with master sources updated today + Stephane's example file, if I add some page break, I got: Insert > Page Number > a..aa..aaa: a Insert > Page Number > A..AA..AAA: A Insert > Page Number > a b c: a Insert > Page Number > A B C: A Insert > Page Number > a..aa..aaa: b Insert > Page Number > A..AA..AAA: B Insert > Page Number > a b c: b Insert > Page Number > A B C: B ... Insert > Page Number > a..aa..aaa: z Insert > Page Number > A..AA..AAA: Z Insert > Page Number > a b c: z Insert > Page Number > A B C: Z ... Insert > Page Number > a..aa..aaa: aa Insert > Page Number > A..AA..AAA: AA Insert > Page Number > a b c: aa Insert > Page Number > A B C: AA so identical for the moment, but after this: Insert > Page Number > a..aa..aaa: bb Insert > Page Number > A..AA..AAA: BB Insert > Page Number > a b c: ab Insert > Page Number > A B C: AB now it's different. So IMHO, no bug here, what do you think?
Dear Stéphane If the paragraph direction is right to left, the bug I mentioned is reproducible. I attached test file.
Created attachment 184613 [details] RTL Paragraph Page Number Bug
Created attachment 184614 [details] RTL Paragraph Page Number Bug
Dear Stéphane In RTL paragrapg direction, this bug is reproducible even in safe mode!
(In reply to Julien Nabet from comment #11) > [...] > so identical for the moment, but after this: > Insert > Page Number > a..aa..aaa: bb > Insert > Page Number > A..AA..AAA: BB > Insert > Page Number > a b c: ab > Insert > Page Number > A B C: AB > > now it's different. > > So IMHO, no bug here, what do you think? Ah, thank you for going further! Definitely a numbering system I am not familiar with. Looks like no bug there, but maybe extra documentation will help. (In reply to افشین from comment #12) > Dear Stéphane > > If the paragraph direction is right to left, the bug I mentioned is > reproducible. > > I attached test file. Thank you for testing some more! I could not reproduce with: Version: 7.5.0.1 (X86_64) / LibreOffice Community Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded But I could reproduce with: Version: 7.4.3.2 / LibreOffice Community Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded (Also on Windows 10.) And at least since LO 6.1: Version: 6.1.0.3 Build ID: efb621ed25068d70781dc026f7e9c5187a4decd1 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; Locale: en-AU (en_AU.UTF-8); Calc: group threaded So it has been fixed in version 7.5, probably because of all the work Khaled and others have done on RTL (see the release notes: https://wiki.documentfoundation.org/ReleaseNotes/7.5 Copying Khaled just in case the fix can be identified. Thank you all!
It seems to depend on the language set on the number fields, so possibly related to 6064b3382102bcbc153156f5874fbc8dfde97b98 which updated libnumbertext and added Persian support (among other things).
But I think there is still a bug to fix here, I think if the current language is not supported, the fallback should be the regular number (1, 2, etc), instead of things like “Ordinal-number 1”.
Thanks Khaled! Marking this specific case here as fixed by László Németh with core commit 6064b3382102bcbc153156f5874fbc8dfde97b98. I opened bug 153010 for tracking improvements to when the format is not available for the selected language (fallback string + inconsistency depending on the field).