Yes, actually I do both. m. On Jan 3, 2013, at 3:42 PM, Kyle Sluder wrote:
> On Thu, Jan 3, 2013, at 02:54 PM, Matt Neuburg wrote: >> I didn't say the transliteration was simple. I had to devise a code >> (properly called a "beta code") that would yield the correct result. To >> give a simple example, if you want a-accent-aigu to sort before >> a-accent-grave, you might transliterate them as a1 and a2. Or, just the >> other way round, if you want them to sort indifferently, you might >> transliterate them both as a. By the same token, I lowercased everything >> because I didn't want case to be significant in the sort order. But the >> point is that this code, once devised, can be machine-generated >> mechanically at the time you construct the database, and then Bob's your >> uncle. This technique is as old as the hills and quite as solid. m. > > Or, since you're doing this at database construction time, you could > just sort the entries lexicographically, store their sort rank in a > field, and only use 4 bytes per row instead of as many as your "clever" > code requires. > > --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com