|
|
#16 |
|
Enthusiast
![]() Posts: 43
Karma: 10
Join Date: Oct 2020
Device: none
|
Is the occasionally non-alphabetical behaviour of indices logged as a bug? I've only reported it here - is that sufficient?
|
|
|
|
|
|
#17 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,295
Karma: 7640672
Join Date: Nov 2009
Device: many
|
I am aware of it but if you want an official issue, you can file an actual bug in our github site. Warning: You do need a github account to file an issue on github.
But posting here (this Mobileread thread) works too. But either way be prepared to supply a minimal test case epub with specific detailed instructions to say exactly how we can generate the error on our own machines so we can debug what is going on. FYI, I have played around with self made indexes in Sigil and I can't recreate what you are seeing, so a test case epub with very specific instructions is a must to get this bug tracked down. Also information on exact Sigil version used and what operating system version you are using just in case the bug is platform specific. Then attach the requested test case and instructions here or on github if you decide to go that route. If your test case can not be shared publicly due to copyright, then consider pming KevinH here with a link to it. There are many ways to build an index, so please include enough details so that we can recreate the bug. Hope that helps. Last edited by KevinH; Yesterday at 10:10 PM. |
|
|
|
|
|
#18 |
|
Enthusiast
![]() Posts: 43
Karma: 10
Join Date: Oct 2020
Device: none
|
epub Attached.
To reproduce, add or remove 'disabled' from both instances of either VIndex1 or JIndex2 in Section0001.xhtml and select Tools -> Create Index and the non-alphabetical index entries will move from VIndex1 to JIndex2 and back again. Oops, forgot versions For this quick demo, I just realised I'm still just using Sigil-2.8.5-x86_64.AppImage This box is Slackware 15.0 KDE Plasma 5.27.12 I think that's a reasonably generic Linux box. Last edited by Simons Mith; Today at 01:59 PM. |
|
|
|
|
|
#19 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,295
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Perfect. Thank you.
|
|
|
|
|
|
#20 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,295
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Okay by moving the "disabled" in the title field, and generating the index I can see the problem move from one place to another.
I still have no idea where or how this is happening but at least I can recreate it. If I add disabled for both then both work. So the order of the titles seems to not be sorted unless there are multiple index entries under a single letter. If only a single independent entry under each letter (not counting children) it seems to default to the order that is determined by the word order in the text, and not alphabetical order. I will do more testing to see where in the code this is happening. |
|
|
|
|
|
#21 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,295
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Yes, if I change just one title from JIndex2 to JaIndex2 and one title from VIndex1 to VzIndex1 forcing multiple entries under the letter J and multiple entries under the letter V (but with different sort order) then all is properly sorted.
So some place in the code if there is only 1 entry under a letter (even if they have child nodes) no sort is being done. Probably some place in the code that skips sort when only one but that mistakenly ignores children. That case will need to count children as well. Now I just need to find where in the Index creation code, the problem exists. |
|
|
|
|
|
#22 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,295
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Okay, I can see where in the code the issue is happening, we were only sorting when the rowCount() of a parent was >= 1 (with the parent in this case being a letter category).
I can change that but I am unsure if there will be any side effects to that change when generating an index since the code is used at multiple levels. So I may have a fix but it is going to take me some time to make sure my "fix" is the right one (ie. without side-effects). |
|
|
|
|
|
#23 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,295
Karma: 7640672
Join Date: Nov 2009
Device: many
|
My fix seems to work. So I pushed that change to Sigil master and will generate a new pre-release build tomorrow with that bug fix in place. Once that happens, please test it as you are a much heavier index user than I am and report back any success or issues.
I will keep my fingers crossed! |
|
|
|
|
|
#24 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,295
Karma: 7640672
Join Date: Nov 2009
Device: many
|
I had time tonight and updated the Sigil pre-release 2.8.7 builds.
The post with the links can be found here: https://www.mobileread.com/forums/sh...d.php?t=376435 The info is in the first post of that thread. The version there has your bug fix in place. Last edited by KevinH; Today at 07:05 PM. |
|
|
|
![]() |
| Tags |
| alphabetize, bug, index |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Editor Crashing Occasionally After Paste | enuddleyarbl | Editor | 9 | 12-11-2022 11:59 AM |
| Paperwhite 3 restarting occasionally? | doctorat | Amazon Kindle | 6 | 05-31-2017 02:04 PM |
| [Viewer]Problem: occasionally repeating pages | millirem | Library Management | 0 | 01-11-2015 02:34 AM |
| occasionally losing the select menu | bounce | Marvin | 3 | 12-16-2013 04:30 PM |
| Non-numeric series indices (for Kobo) | GeoffR | Devices | 4 | 03-05-2013 10:06 PM |