You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upper- or lowercasing Unicode strings is not possible by mapping one character to one character in each case, in contradiction of what the GLib functions g_unichar_tolower() and g_unichar_toupper() would seem to suggest. There is unfortunately no title-casing function in GLib that allows for the title-case of a character to be longer than one character, so we either have to wait for one to be added, or roll our own.
The text was updated successfully, but these errors were encountered:
Fixes a long-standing bug with glk_buffer_to_title_case_uni() where the
results would be incorrect for characters that expand into more than one
character in titlecase. We hardcode a list of titlecase exceptions from
Unicode, and otherwise continue to use the GLib 1-to-1 mapping from
g_unichar_totitle().
Closes: #28
Fixes a long-standing bug with glk_buffer_to_title_case_uni() where the
results would be incorrect for characters that expand into more than one
character in titlecase. We hardcode a list of titlecase exceptions from
Unicode, and otherwise continue to use the GLib 1-to-1 mapping from
g_unichar_totitle().
Closes: #28
Opened 2011-05-08:
Upper- or lowercasing Unicode strings is not possible by mapping one character to one character in each case, in contradiction of what the GLib functions
g_unichar_tolower()
andg_unichar_toupper()
would seem to suggest. There is unfortunately no title-casing function in GLib that allows for the title-case of a character to be longer than one character, so we either have to wait for one to be added, or roll our own.The text was updated successfully, but these errors were encountered: