Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Update script detection for Unicode 10 #9401

Merged
merged 1 commit into from
Jul 6, 2017
Merged

Update script detection for Unicode 10 #9401

merged 1 commit into from
Jul 6, 2017

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jun 30, 2017

This change updates the script detection code to reflect changes in Unicode 10 and UTR #50 revision 17.

This is a port of mapbox/mapbox-gl-js#4919.

/cc @ChrisLoer

@1ec5 1ec5 self-assigned this Jun 30, 2017
@1ec5 1ec5 requested a review from mourner June 30, 2017 07:38
@kkaefer kkaefer added the Core The cross-platform C++ core, aka mbgl label Jun 30, 2017
@1ec5 1ec5 requested a review from ChrisLoer July 5, 2017 21:20
Copy link
Contributor

@ChrisLoer ChrisLoer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one tiny nit that will maybe avoid a bug in a future where we enable Zanabazar Square...

@@ -239,9 +240,12 @@ DEFINE_IS_IN_UNICODE_BLOCK(HalfwidthandFullwidthForms, 0xFF00, 0xFFEF)
// DEFINE_IS_IN_UNICODE_BLOCK(Takri, 0x11680, 0x116CF)
// DEFINE_IS_IN_UNICODE_BLOCK(Ahom, 0x11700, 0x1173F)
// DEFINE_IS_IN_UNICODE_BLOCK(WarangCiti, 0x118A0, 0x118FF)
// DEFINE_IS_IN_UNICODE_BLOCK(ZanabazarSquare, 0x11A00, 0x11A00)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this block actually end at 0x11a4f?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, good eye! Fixed in 3d50fd902e0ce480e2d12f7a583ffc53c4a004e0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fixed in mapbox/mapbox-gl-js#4940.

Copy link
Contributor

@ChrisLoer ChrisLoer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long may we remember Zanabazar

Updated script detection code to reflect changes in Unicode 10 and UTR 50 revision 17.
@1ec5 1ec5 merged commit 2fe3dd6 into master Jul 6, 2017
@1ec5 1ec5 deleted the 1ec5-unicode10 branch July 6, 2017 18:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl text rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants