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

Upright CJK characters in vertically-oriented labels #7114

Merged
merged 3 commits into from
Feb 11, 2017

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Nov 18, 2016

CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement.

This is a port of mapbox/mapbox-gl-js#3438 that fixes #1682. I did most of the porting before #6984 landed, so I have yet to reconcile the WritingMode enumeration with the new WritingDirection enumeration. Also, vertical punctuation is correctly laid out but doesn’t appear for some reason. I suspect the issue has to do with the glyph range not being loaded, but I need to do further investigation.

chinese

punctuation

shenzhen

/cc @kkaefer @lucaswoj @ChrisLoer @LornTao

@1ec5 1ec5 added Core The cross-platform C++ core, aka mbgl feature text rendering labels Nov 18, 2016
@1ec5 1ec5 self-assigned this Nov 18, 2016
@mention-bot
Copy link

@1ec5, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jfirebaugh, @ChrisLoer and @kkaefer to be potential reviewers.

@1ec5 1ec5 added the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Nov 18, 2016
@1ec5 1ec5 added the localization Human language support and internationalization label Dec 7, 2016
@kkaefer
Copy link
Member

kkaefer commented Jan 23, 2017

@1ec5 what needs to happen until this can be merged?

@1ec5
Copy link
Contributor Author

1ec5 commented Jan 23, 2017

CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement.

Fixes #1682.
@jfirebaugh jfirebaugh self-assigned this Feb 10, 2017
@jfirebaugh jfirebaugh removed the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Feb 10, 2017
@jfirebaugh
Copy link
Contributor

@1ec5 I rebased this and debugged the test failures -- can you take a look?

Copy link
Contributor Author

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

Thanks @jfirebaugh! Now it all makes sense. 😊 These changes also look a lot cleaner now that the WritingDirection enumeration has been removed on master.


// https://github.com/mapbox/mapbox-gl/issues/29

// if (isInMeroiticHieroglyphs(chr)) return true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

mapbox/mapbox-gl-js#3608 (comment) requested that I put the list of vertical supplementary blocks in mapbox/DEPRECATED-mapbox-gl#29, now mapbox/mapbox-gl-js#4001, instead of leaving them here as commented out lines.

@jfirebaugh jfirebaugh merged commit e6c15d0 into master Feb 11, 2017
@jfirebaugh jfirebaugh deleted the 1ec5-縱排-7114 branch February 11, 2017 00:57
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 feature localization Human language support and internationalization text rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vertical CJK labels
4 participants