Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Issue 10532105: Use ICU script code "Jpan" instead of "Hrkt" in Japanese pref names (Closed)

Created:
8 years, 6 months ago by falken
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Use ICU script code "Jpan" instead of "Hrkt" in Japanese pref names. The script code "Jpan" ("Japanese") is more suitable for naming font prefs for rendering Japanese than "Hrkt" ("Hiragana or Katakana"). With this change, the script code used in Chrome pref names for Japanese will become different than the one used in WebKit settings. We would have used "Jpan" in both Chrome and WebKit to begin with, but it is a newer script code that the version of ICU included in WebKit for MacOS doesn't have. But since Chrome now exposes script codes in the Font Settings Extension API, it's better to use the more appropriate, modern one. This patch just changes the script used internally by Chrome and translates it to the one used by WebKit when talking to WebCore. BUG=2685 TEST=browser_tests --gtest_filter=ExtensionApiTest.FontSetting* TBR=pkasting,mpcomplete Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=144418

Patch Set 1 #

Patch Set 2 : change in tests and comment #

Total comments: 2

Patch Set 3 : sync #

Patch Set 4 : better sample texts #

Total comments: 9

Patch Set 5 : revert Hang->Kore #

Patch Set 6 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -35 lines) Patch
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/experimental_font_settings.json View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/fontSettings/popup.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/examples/api/fontSettings/popup.js View 1 2 3 4 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/static/experimental.fontSettings.html View 1 2 3 4 2 chunks +6 lines, -10 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M webkit/glue/webpreferences.cc View 1 2 3 4 5 1 chunk +26 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
falken
Tony: Can you please review? The only non-mechanical code change is under webkit/. Jungshik: FYI
8 years, 6 months ago (2012-06-12 15:24:53 UTC) #1
tony
The code looks fine, but I defer to Jungshik's review. webkit LGTM. http://codereview.chromium.org/10532105/diff/9001/chrome/common/extensions/docs/samples.json File chrome/common/extensions/docs/samples.json ...
8 years, 6 months ago (2012-06-12 18:15:31 UTC) #2
falken
Tony: thanks for the review! Jungshik: can you please review? http://codereview.chromium.org/10532105/diff/9001/chrome/common/extensions/docs/samples.json File chrome/common/extensions/docs/samples.json (left): http://codereview.chromium.org/10532105/diff/9001/chrome/common/extensions/docs/samples.json#oldcode2145 ...
8 years, 6 months ago (2012-06-12 23:49:37 UTC) #3
falken
Jungshik: friendly ping
8 years, 6 months ago (2012-06-14 10:28:18 UTC) #4
jungshik at Google
On 2012/06/14 10:28:18, falken wrote: > Jungshik: friendly ping Actually, 'hang' (for Hangul) had better ...
8 years, 6 months ago (2012-06-14 21:42:17 UTC) #5
jungshik at Google
Sorry again for Kore vs Hang. Could you revert that part of the CL? https://chromiumcodereview.appspot.com/10532105/diff/2020/chrome/browser/ui/prefs/prefs_tab_helper.cc ...
8 years, 6 months ago (2012-06-14 21:49:47 UTC) #6
falken
OK, I've reverted the Hang->Kore change. https://chromiumcodereview.appspot.com/10532105/diff/2020/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://chromiumcodereview.appspot.com/10532105/diff/2020/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode114 chrome/browser/ui/prefs/prefs_tab_helper.cc:114: // "fonts.serif.Arab", "fonts.serif.Kore", ...
8 years, 6 months ago (2012-06-15 03:58:11 UTC) #7
falken
Jungshik: ping
8 years, 6 months ago (2012-06-20 05:16:55 UTC) #8
jungshik at Google
LGTM Sorry I thought I lgtm'd this, but I didn't.
8 years, 6 months ago (2012-06-25 23:22:31 UTC) #9
falken
Jungshik: Thanks I plan to TBR the following OWNERS as it's a pretty mechanical change. ...
8 years, 6 months ago (2012-06-27 05:43:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/10532105/17001
8 years, 6 months ago (2012-06-27 05:47:17 UTC) #11
commit-bot: I haz the power
Presubmit check for 10532105-17001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-27 05:47:20 UTC) #12
Matt Perry
8 years, 5 months ago (2012-06-27 17:39:49 UTC) #13
lgtm

Powered by Google App Engine
This is Rietveld 408576698