Closed Bug 1719545 Opened 3 years ago Closed 2 years ago

Unify Intl APIs in gfx/thebes/gfxScriptItemizer.cpp

Categories

(Core :: Internationalization, task, P3)

task

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: gregtatum, Assigned: allstars.chh)

References

Details

(Whiteboard: [i18n-unification], [i18n-unification-help-wanted] )

Attachments

(4 files)

Work: Small
What it is: uscript_getScriptExtensions

Blocks: 1719664
Whiteboard: [i18n-unification-help-wanted]
Whiteboard: [i18n-unification-help-wanted] → [i18n-unification], [i18n-unification-help-wanted]
Assignee: nobody → allstars.chh

Hi Greg
I notice in Gecko we already have mozilla::unicode::Script defined in https://searchfox.org/mozilla-central/source/intl/unicharutil/util/nsUnicodeScriptCodes.h, though it is generated by script https://searchfox.org/mozilla-central/source/intl/unicharutil/tools/genUnicodePropertyData.pl.

Should I reuse the mozilla::unicode::Script enum in the Mozilla::intl ? Or should I define new enums in intl/component/src/ ?
This should be the Script defined in ICu4X in https://github.com/unicode-org/icu4x/blob/bf4b5dfc496f5580ebd8d8d5610b3e4bbacee625/components/properties/src/props.rs#L258

Flags: needinfo?(gtatum)

Sorry for the delay in the response, I was out of office last week.

It seems reasonable to re-use the nsUnicodeScriptCodes.h enum for now. I don't believe we've scoped out removing that build script, so it should be fine to just get rid of the ICU specific include here. In the if/when we look at unifying the mozilla::unicode::Script it should be obvious where the includes need to be updated.

Flags: needinfo?(gtatum)
Pushed by allstars.chh@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c23e1bc87eb8
Part 1: Add Script::GetExtensions. r=anba,platform-i18n-reviewers,gregtatum
https://hg.mozilla.org/integration/autoland/rev/6d96c65d9186
Part 2: Unify gfxScriptItemizer.cpp. r=platform-i18n-reviewers,gregtatum
https://hg.mozilla.org/integration/autoland/rev/b501cf0be072
Part 3: Unify nsIDNService.cpp. r=platform-i18n-reviewers,jfkthame,gregtatum,valentin
https://hg.mozilla.org/integration/autoland/rev/701d8641d9f7
Part 4: Fallback to script extension even it only has one extension or its own script code. r=jfkthame
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: