View Single Post
Old 02-24-2025, 02:23 PM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post


Curious: How are the ranges determined considering Interface language issues - reference to an imported library or code will be fine. I recall wrestling with such issues on VAX/VMS 40+ years ago, I think we ended up rolling our own for Latin and Cyrillic only.

BR
The list of actions is first sorted by display name, which can be translated. The sort takes language/locale into consideration. The actions are then grouped together by translated first letter. The ranges are then built by combining first letters together until the count in the group exceeds the arbitrary value of IIRC 7. Given that we know the total action count is at most in the hundreds, we don't need to make the group size dynamic.
chaley is offline   Reply With Quote