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

Upright CJK characters in vertically-oriented labels - #7114

Merged
jfirebaugh merged 3 commits into
masterfrom
1ec5-縱排-7114
Feb 11, 2017

Hidden character warning

The head ref may contain hidden characters: "1ec5-\u7e31\u6392-7114"
Merged

jfirebaugh merged 3 commits into
masterfrom
1ec5-縱排-7114

Conversation

@1ec5

@1ec5 1ec5 commented Nov 18, 2016 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown

@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

kkaefer commented Jan 23, 2017

Copy link
Copy Markdown
Member

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

@1ec5

1ec5 commented Jan 23, 2017 •

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

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

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Contributor Author

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.

Comment thread src/mbgl/util/i18n.cpp

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

// if (isInMeroiticHieroglyphs(chr)) return true;

Copy link
Copy Markdown
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