• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Snippet tool page order
#1
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 Win 10, ver 19.--
Samsung Note Pro SM-P900 12.2 Android 5.0.2
Asus TF700T, os = CROMi-kk_R1 KitKat-4.4.4r2-CM11-US DEODEX, Based on Android 4.4.4
Nook HD+ OEM
Reply
#2
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
Reply
#3
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 Win 10, ver 19.--
Samsung Note Pro SM-P900 12.2 Android 5.0.2
Asus TF700T, os = CROMi-kk_R1 KitKat-4.4.4r2-CM11-US DEODEX, Based on Android 4.4.4
Nook HD+ OEM
Reply
#4
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. Smile
Dell Latitude 13.5" 2-in-1 Win 10, ver 19.--
Samsung Note Pro SM-P900 12.2 Android 5.0.2
Asus TF700T, os = CROMi-kk_R1 KitKat-4.4.4r2-CM11-US DEODEX, Based on Android 4.4.4
Nook HD+ OEM
Reply
#5
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
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.