Posts: 873
Threads: 87
Joined: Dec 2013
Reputation:
10
I thought the snippet tool used to accept out of order pages. I just tried to put a snippet together with paging 2-3-5-4 [just pages 2 and 3 displayed] and then just 5-4 [not acceptable].
Dell Latitude 13.5" 2-in-1 Ubuntu/Win 11
Samsung Note Pro SM-P900 12.2 Android 5.0.2
Samsung S7+, Android 12
Posts: 13,243
Threads: 301
Joined: Apr 2012
Reputation:
234
05-02-2017, 03:52 PM
(This post was last modified: 05-02-2017, 03:53 PM by Zubersoft.)
I don't currently allow page ranges that go backward (i.e. 5-4), but I think you are right that I used to accept them. My parsing code correctly flips page ranges like that, but my validation code does not. I can fix this for the next update. Having said that, if you want to have separate page regions, they are expected to be separated by commas. So in your example, it should be "2-3,5-4", not "2-3-5-4". My code is not catching this error right now, so I'm going to have to fix that. If what you intended was pages 2 through 5, then page 4, that should be 2-5,4.
Thanks,
Mike
Posts: 873
Threads: 87
Joined: Dec 2013
Reputation:
10
Thanks Mike. Either 2-3,5-4 or 2-3-5-4, page reversal, is what I'm after.
Dell Latitude 13.5" 2-in-1 Ubuntu/Win 11
Samsung Note Pro SM-P900 12.2 Android 5.0.2
Samsung S7+, Android 12
Posts: 873
Threads: 87
Joined: Dec 2013
Reputation:
10
Mike; I used the comma separator and everything works fine [2-3,5,4]. You probably had a good reason for doing it that way, dash for an inclusive range and comma for random order. I'm a bit slow sometimes and it finally sunk in.
Dell Latitude 13.5" 2-in-1 Ubuntu/Win 11
Samsung Note Pro SM-P900 12.2 Android 5.0.2
Samsung S7+, Android 12
Posts: 13,243
Threads: 301
Joined: Apr 2012
Reputation:
234
Yes, that will certainly work. I still have added changes to support page ranges that go backward for the next update, so after that, either approach will work.
Mike