From: duerst Date: 2022-01-28T09:33:58+00:00 Subject: [ruby-core:107317] [Ruby master Feature#18554] Move unicode_normalize to a default gem Issue #18554 has been updated by duerst (Martin D��rst). Just a few comments, not sure I have thought everything through completely. One of the motivations for implementing unciode_normalize in pure Ruby was to make it easy for other Ruby implementations to use this code, so from this viewpoint, if it helps JRuby, that would be a plus. However, contrary to stuff that is in gems now, unicode_normalize part and parcel of the String class, without needing require. It just is placed in lib/ because there was no other, better, place for it. There is already some mechanism for automatic requiring, see function unicode_normalize_common in Regarding Unicode versions, if somebody wants to change to a specific Unicode version different from what a Ruby version offers, then this would apply not only to unicode_normalize, but also, and probably much more importantly, to regular expressions. But regular expressions are quite tightly linked with Ruby itself, and it would probably be difficult to disentangle them, because it's not much Ruby and a lot of C. Also, the updating of Unicode versions uses the same logic to get the necessary data for both regular expressions and unicode_normalize, so if unicode_normalize would be separated into a gem, that part might have to be duplicated, creating additional work on this end. ---------------------------------------- Feature #18554: Move unicode_normalize to a default gem https://bugs.ruby-lang.org/issues/18554#change-96215 * Author: headius (Charles Nutter) * Status: Open * Priority: Normal ---------------------------------------- Could we move the rest of unicode_normalize to a default gem? The recent updates were mostly updating the Unicode tables, which a user might want to be able to update in an existing Ruby installation. Additionally, this is one of the few stdlib we have to copy into JRuby from the CRuby repository; it would be easier for both if we just pulled in a default gem. -- https://bugs.ruby-lang.org/ Unsubscribe: