Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ucd2c.pl: Fix White_Space/space Unicode Property +many other improvements #786

Merged
merged 1 commit into from Jan 24, 2018

Conversation

samcv
Copy link
Member

@samcv samcv commented Jan 23, 2018

  • Fix Property Name 'space' so it doesn't incorrectly refer to the
    Line_Break=space property and fix White_Space property so it doesn't refer to
    Bidi_Class=White_Space and instead refers to the White_Space property.
    • Fixes "\t" ~~ /<:space>/ which now correctly matches
    • Fixes "1".uniprop('White_Space') so it doesn't return True
  • Fix property names/values so that more variations of case and underline's
    are used. Before if we had a property name called Foo_Bar we would get:
    • FooBar (No underscore)
    • foobar (lowercase and no underscore)
      Now an additional one is added:
    • foo_bar (lowercase but with underscore retained)
  • Add all property names first, before adding any property aliases. Also check
    that a property value does not have the same name as a property before
    putting it in the datastructure
  • Remove workaround for correcting union property values which is no longer
    needed anymore since commit
  • Rename some variables names to be more clear
  • Fix sprintf warning by not escaping % signs as %%
  • Add many more comments to this sub (emit_unicode_property_keypairs) than before

…ents

* Fix Property Name 'space' so it doesn't incorrectly refer to the
  Line_Break=space property and fix White_Space property so it doesn't refer to
  Bidi_Class=White_Space and instead refers to the White_Space property.
   * Fixes "\t" ~~ /<:space>/ which now correctly matches
   * Fixes "1".uniprop('White_Space') so it doesn't return `True`
* Fix property names/values so that more variations of case and underline's
  are used. Before if we had a property name called `Foo_Bar` we would get:
  * FooBar (No underscore)
  * foobar (lowercase and no underscore)
  Now an additional one is added:
  * foo_bar (lowercase but with underscore retained)
* Add all property names first, before adding any property aliases. Also check
  that a property value does not have the same name as a property before
  putting it in the datastructure
* Remove workaround for correcting union property values which is no longer
  needed anymore since commit
* Rename some variables names to be more clear
* Fix sprintf warning by not escaping % signs as %%
* Add many more comments to this sub (emit_unicode_property_keypairs) than before
@zoffixznet
Copy link
Contributor

That's a long list of changes. Perhaps, it's safer to merge it after the release? The whitespace thing was broken for some months; doesn't seem like it'd hurt to wait one more for its fix.

@lizmat
Copy link
Contributor

lizmat commented Jan 23, 2018 via email

@AlexDaniel
Copy link
Contributor

I'm OK with this merged before the release as long as @samcv is confident with the changes. For rakudo star users that's not just one month to wait. If that's merged I'll do a quick toaster run to make sure the world didn't break apart.

@lizmat
Copy link
Contributor

lizmat commented Jan 23, 2018 via email

@samcv samcv merged commit cd902eb into MoarVM:master Jan 24, 2018
@samcv
Copy link
Member Author

samcv commented Jan 24, 2018

@AlexDaniel yes i'm pretty confident in the changes :) pretty sure all will be fine on Toaster, but running it is a very good idea.

@samcv samcv deleted the White_Space branch April 4, 2018 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants