Commit Graph

5859 Commits

Author SHA1 Message Date
Jonathan Kew
213ad19af0 Bug 1824671 - patch 10 - Switch unicode-bidi-ffi to use icu_properties as data source. r=platform-i18n-reviewers,dminor
Looking up the BidiClass property via icu_properties is more efficient than the
built-in version provided in unicode-bidi.

Differential Revision: https://phabricator.services.mozilla.com/D198449
2024-02-06 11:41:12 +00:00
Jonathan Kew
5941b4e7cd Bug 1824671 - patch 8 - Add icu_properties as a dependency to unicode-bidi-ffi. r=platform-i18n-reviewers,dminor
This will cause `./mach vendor rust` to pull it into the tree.

Note that actually running `./mach vendor rust` requires the file-size limit in vendor_rust.py
to be temporarily raised (from 100K to 300K is enough) because of large files in the icu_properties
crate. This does not contribute significant bloat to the binary, though, because only actually-used
data ends up in the build.

Differential Revision: https://phabricator.services.mozilla.com/D198446
2024-02-06 11:41:11 +00:00
Jonathan Kew
54fc0320be Bug 1824671 - patch 4 - Update Gtest to accept either ICU4C or unicode-bidi handling of the embedding controls (explicitly unspecified by UAX#9). r=platform-i18n-reviewers,dminor
unicode-bidi more closely follows the UAX#9 recommendations for processing embedding controls
if they're not actually removed from the text; but this is not an actual spec requirement,
so either behavior is acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D197891
2024-02-06 11:41:09 +00:00
Jonathan Kew
fafbd7f128 Bug 1824671 - patch 3 - Convert intl Bidi component to be backed by the unicode-bidi crate. r=platform-i18n-reviewers,dminor
With this, the intl::Bidi component no longer relies on ICU4C's ubidi_* APIs.

Differential Revision: https://phabricator.services.mozilla.com/D197890
2024-02-06 11:41:09 +00:00
Jonathan Kew
7731a2b908 Bug 1824671 - patch 2 - Create a minimal unicode-bidi-ffi crate to expose APIs needed by the intl::Bidi component. r=platform-i18n-reviewers,dminor
Rather than Diplomat-generated, this is hand-written to provide just the functionality needed in intl::Bidi,
to minimize the amount of glue code and ensure a close match to Gecko requirements.

Differential Revision: https://phabricator.services.mozilla.com/D197889
2024-02-06 11:41:09 +00:00
Mike Hommey
da840cd693 Bug 1878778 - Mark ICU4XDataStruct as dead code as it's never read from Rust. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D200734
2024-02-06 05:36:43 +00:00
Pier Angelo Vendrame
69ffaa7b95 Bug 1875313 - Use en-US as a fallback when spoof English is enabled in ICUUtils. r=timhuang,tjr
Differential Revision: https://phabricator.services.mozilla.com/D198967
2024-01-31 21:52:30 +00:00
Iulian Moraru
76cb3efe3b Backed out changeset c3355d01fddd (bug 1875313) for causing build bustages on CUUtils.cpp. CLOSED TREE 2024-01-31 19:26:54 +02:00
Pier Angelo Vendrame
60472034a1 Bug 1875313 - Use en-US as a fallback when spoof English is enabled in ICUUtils. r=timhuang,tjr
Differential Revision: https://phabricator.services.mozilla.com/D198967
2024-01-31 16:56:11 +00:00
Daniel Holbert
cc54045d4d Bug 1875430 part 4: Convert 'static UniquePtr' global vars to use StaticAutoPtr, in intl. r=platform-i18n-reviewers,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D199170
2024-01-23 19:00:49 +00:00
Cristian Tuns
a0f83ca7c6 Backed out 11 changesets (bug 1824671) for causing spidermonkey bustages in Bidi.h CLOSED TREE
Backed out changeset f41ef5e3f7b9 (bug 1824671)
Backed out changeset f029db1566d8 (bug 1824671)
Backed out changeset 7fe14219e95e (bug 1824671)
Backed out changeset 71dbcba23335 (bug 1824671)
Backed out changeset 5c20e50fc26b (bug 1824671)
Backed out changeset e16c7ccc64e5 (bug 1824671)
Backed out changeset d8414db5bc0c (bug 1824671)
Backed out changeset 89622f53da27 (bug 1824671)
Backed out changeset 9a2fbd21feb5 (bug 1824671)
Backed out changeset b273d641a26a (bug 1824671)
Backed out changeset 17e79f579645 (bug 1824671)
2024-01-23 10:19:32 -05:00
Jonathan Kew
f32359193a Bug 1824671 - patch 10 - Switch unicode-bidi-ffi to use icu_properties as data source. r=platform-i18n-reviewers,dminor
Looking up the BidiClass property via icu_properties is more efficient than the
built-in version provided in unicode-bidi.

Differential Revision: https://phabricator.services.mozilla.com/D198449
2024-01-23 11:53:24 +00:00
Jonathan Kew
ca727d236b Bug 1824671 - patch 8 - Add icu_properties as a dependency to unicode-bidi-ffi. r=platform-i18n-reviewers,dminor
This will cause `./mach vendor rust` to pull it into the tree.

Note that actually running `./mach vendor rust` requires the file-size limit in vendor_rust.py
to be temporarily raised (from 100K to 300K is enough) because of large files in the icu_properties
crate. This does not contribute significant bloat to the binary, though, because only actually-used
data ends up in the build.

Differential Revision: https://phabricator.services.mozilla.com/D198446
2024-01-23 11:53:23 +00:00
Jonathan Kew
04367eb816 Bug 1824671 - patch 4 - Update Gtest to accept either ICU4C or unicode-bidi handling of the embedding controls (explicitly unspecified by UAX#9). r=platform-i18n-reviewers,dminor
unicode-bidi more closely follows the UAX#9 recommendations for processing embedding controls
if they're not actually removed from the text; but this is not an actual spec requirement,
so either behavior is acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D197891
2024-01-23 11:53:21 +00:00
Jonathan Kew
54aadfc5e2 Bug 1824671 - patch 3 - Convert intl Bidi component to be backed by the unicode-bidi crate. r=platform-i18n-reviewers,dminor
With this, the intl::Bidi component no longer relies on ICU4C's ubidi_* APIs.

Differential Revision: https://phabricator.services.mozilla.com/D197890
2024-01-23 11:53:21 +00:00
Jonathan Kew
e0e2a426a2 Bug 1824671 - patch 2 - Create a minimal unicode-bidi-ffi crate to expose APIs needed by the intl::Bidi component. r=platform-i18n-reviewers,dminor
Rather than Diplomat-generated, this is hand-written to provide just the functionality needed in intl::Bidi,
to minimize the amount of glue code and ensure a close match to Gecko requirements.

Differential Revision: https://phabricator.services.mozilla.com/D197889
2024-01-23 11:53:20 +00:00
serge-sans-paille
5d8fc0d8a6 Bug 1875444 - Remove last mention of libhyphen vendoring r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D199074
2024-01-19 10:05:07 +00:00
Gijs Kruitbosch
dd128f510e Bug 1874321 - document how to run nightly with a custom language, r=cmkm,flod
Differential Revision: https://phabricator.services.mozilla.com/D198399
2024-01-15 18:20:51 +00:00
Tooru Fujisawa
2e7027b7a9 Bug 1874595 - Use LF in toml file consistently. r=jmaher,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198505
2024-01-15 15:21:53 +00:00
Steve Fink
86e7e76297 Bug 1790873 - Send a full line at a time to printf_stderr in nsUniscribeBreaker.cpp r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D166852
2024-01-11 02:09:29 +00:00
Stanca Serban
94288d3f1e Backed out 5 changesets (bug 1794063, bug 1790873) for causing Linux spidermonkey builds bustages in Printer.h. CLOSED TREE
Backed out changeset c729aa80e73e (bug 1794063)
Backed out changeset 442a0de27b61 (bug 1790873)
Backed out changeset 6934f2978802 (bug 1790873)
Backed out changeset 296f6da7b6ed (bug 1790873)
Backed out changeset 01ddb562d770 (bug 1790873)
2024-01-10 01:18:55 +02:00
Steve Fink
acb8aa17fa Bug 1790873 - Send a full line at a time to printf_stderr in nsUniscribeBreaker.cpp r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D166852
2024-01-09 22:45:59 +00:00
tjamesmac
acbe1ec0e1 Bug 1868328 - Fix clippy warnings. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D196414
2024-01-09 10:03:42 +00:00
Paul Adenot
00049adfc8 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Depends on D196060

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-20 02:32:37 +00:00
Narcis Beleuzu
0f250fb8c2 Backed out 7 changesets (bug 1869332) for Android bustages. CLOSED TREE
Backed out changeset e1a7852ec85a (bug 1869332)
Backed out changeset 886e59d6495f (bug 1869332)
Backed out changeset 03ac3598f84f (bug 1869332)
Backed out changeset 5e775f2c2b9c (bug 1869332)
Backed out changeset 295a1e1f01d5 (bug 1869332)
Backed out changeset 2909ac6aeb41 (bug 1869332)
Backed out changeset dfab47873174 (bug 1869332)
2023-12-19 18:52:01 +02:00
Paul Adenot
35a2409f61 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-19 15:21:52 +00:00
Joel Maher
2a46c30602 Bug 1869871 - convert perftest.ini -> .toml. r=sparky,perftest-reviewers,necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D196334
2023-12-14 19:41:14 +00:00
Noemi Erli
862354d813 Backed out 7 changesets (bug 1869332) for causing libavcodec related bustages CLOSED TREE
Backed out changeset 1c0fd259312d (bug 1869332)
Backed out changeset d51eba30a225 (bug 1869332)
Backed out changeset 483d3f275da7 (bug 1869332)
Backed out changeset c401449274b4 (bug 1869332)
Backed out changeset c83313202040 (bug 1869332)
Backed out changeset 00ceb6e47715 (bug 1869332)
Backed out changeset 5acc2f4f12c2 (bug 1869332)
2023-12-14 12:02:45 +02:00
Paul Adenot
e4602171c8 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-14 09:12:34 +00:00
ogiorgis
111705f5fd Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D196268
2023-12-13 18:32:20 +00:00
Stanca Serban
d84ca52ee4 Backed out 6 changesets (bug 1869332) for causing build bustages. CLOSED TREE
Backed out changeset 4f8c19f9dfcf (bug 1869332)
Backed out changeset 661e520c2991 (bug 1869332)
Backed out changeset 74e2acabc439 (bug 1869332)
Backed out changeset 1c4b5311ac03 (bug 1869332)
Backed out changeset af22bc552759 (bug 1869332)
Backed out changeset f557e130d997 (bug 1869332)
2023-12-13 18:13:24 +02:00
Paul Adenot
090d5b5388 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-13 13:46:41 +00:00
Makoto Kato
39dae322a4 Bug 1869223 - Add fast path to CountGraphemeClusters when text is empty. r=TYLin
When reloading https://en.wikipedia.org/wiki/Barack_Obama that is used by
browsertime benchmark, `CountGraphemeClusters` is called around 3000 times.
But half calls are that `aText` is empty.

So if we add fast path for empty text, we can avoid a lot of heap allocations
of `ICU4XGraphemeClusterBreakIteratorUtf16`.

Differential Revision: https://phabricator.services.mozilla.com/D196008
2023-12-12 00:59:27 +00:00
Mike Hommey
619672a8e4 Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D195157
2023-12-08 10:43:59 +00:00
Logan Rosen
e61d06e995 Bug 1677775 - adjust ICU .mozbuild generation format to work with Black r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193006
2023-12-08 04:26:45 +00:00
Eemeli Aro
ab63294dc3 Bug 1331508 - Add note to ICU docs about patching CLDR data. r=fluent-reviewers,platform-i18n-reviewers,dminor,flod
Differential Revision: https://phabricator.services.mozilla.com/D195394
2023-12-07 16:46:36 +00:00
Makoto Kato
9f41fa963a Bug 1865865 - Add fast-path when computing segment's length is 1. r=TYLin
When running wikipedia's page by browsertime benchmark, 0.5%-1% calls of
`LineBreaker::ComputeBreakPositions` is that aLength is 1. If this is 1,
we only set SOT break in ICU4X's line segmenter.

So we can add a fast-path for this situation. `ICU4XLineBreakIterator*`
always allocate rust heap, so we can reduce a few heap allocation costs.

Differential Revision: https://phabricator.services.mozilla.com/D195523
2023-12-07 14:52:46 +00:00
Makoto Kato
a35ac330ae Bug 1868324 - Add more explicit keyword for ICU4X C++ FFI. r=TYLin
Tier-2 job for static-analysis might be failed due to no explicit keyword.

Differential Revision: https://phabricator.services.mozilla.com/D195531
2023-12-06 09:38:28 +00:00
Ting-Yu Lin
7817dcc4fb Bug 1868454 - Check in icu_capi/Cargo.toml.orig. r=m_kato DONTBUILD
This file shows up after running `update-icu4x.sh`. It is part of the downloaded
`icu_capi` crate. We should check it in for completeness even if it is not used.

Differential Revision: https://phabricator.services.mozilla.com/D195591
2023-12-06 05:06:46 +00:00
Sylvestre Ledru
ef35fa7374 Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot
clang-format version 17.0.6 (taskcluster-QueHFUviQeyM8Y7r_d7MQQ)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D195397
2023-12-04 10:09:36 +00:00
Makoto Kato
f099ad2320 Bug 1854031 - Part 8. Update ICU4X document. r=TYLin
Depends on D193883

Differential Revision: https://phabricator.services.mozilla.com/D193886
2023-12-04 09:02:40 +00:00
Makoto Kato
509ad0c2c1 Bug 1854031 - Part 7. Gecko changes for ICU4X 1.4. r=TYLin
Depends on D193882

Differential Revision: https://phabricator.services.mozilla.com/D193883
2023-12-04 09:02:40 +00:00
Makoto Kato
652974aeed Bug 1854031 - Part 3. Import icu_capi and icu_segmenter_data crate in tree. r=TYLin
By update-icu4x.sh script.

Depends on D192900

Differential Revision: https://phabricator.services.mozilla.com/D193880
2023-12-04 09:02:28 +00:00
Makoto Kato
5a8f82efb4 Bug 1854031 - Part 1. Update update-icu4x.sh script to import icu_capi to local and for datagen change. r=TYLin
Although since `icu_capi` uses weak dependency syntax, cargo vendor doesn't
recognize it. So this command will copy unnecessary crates. To avoid it, I
would like to use modified version of icu_capi.

And this has another issue. `icu_capi`'s C++ headers isn't compatible with
clang [*1]. So we need the workaround for it.

ICU4X 1.3 has another change for data provider with `icu_capi`.

From ICU4X 1.3, there are new `icu_*_data` crates to custom data file, instead
of `icu_testdata`. So we have to add each data crate if using `icu_capi`.

*1 https://github.com/llvm/llvm-project/issues/70162

Differential Revision: https://phabricator.services.mozilla.com/D192902
2023-12-04 09:02:27 +00:00
Sylvestre Ledru
d6cea3eede Bug 1519636 - Remove nbsp in the doc r=firefox-source-docs-reviewers,geckoview-reviewers,ahal,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D194782
2023-12-03 11:01:53 +00:00
Joel Maher
9d203b1d46 Bug 1859893 - batch 15 - migrate xpcshell.ini -> .toml. r=aryx,geckoview-reviewers,extension-reviewers,valentin,cookie-reviewers,pbz,owlish,robwu
Differential Revision: https://phabricator.services.mozilla.com/D194384
2023-11-24 14:41:35 +00:00
Eemeli Aro
8650501442 Bug 1854412 - Drop broken legacy links in l10n tutorial. r=bolsson
Differential Revision: https://phabricator.services.mozilla.com/D193530
2023-11-22 21:59:11 +00:00
Jonathan Kew
2021cc63fc Bug 1865482 - Make CSS :lang() matching more correctly follow the BCP4647 Extended Filtering algorithm. r=layout-reviewers,emilio
The matching behavior implemented in bug 1857742 did not quite follow the spec,
particularly with regard to language *ranges* (as used in the :lang() pseudo)
that are not themselves valid language *tags*.

This updates the LangTagCompare function to more correctly follow the BCP4647
"Extended Filtering" algorithm, and adjusts the relevant WPT tests (originally
from bug 1857742) to reflect the corrected behavior.

Differential Revision: https://phabricator.services.mozilla.com/D194054
2023-11-20 13:44:06 +00:00
Jonathan Kew
20b8ef07ee Bug 1857742 - patch 2 - Use oxilangtag rather than unic_langid to parse lang tags for nsStyleUtil::LangTagCompare. r=layout-reviewers,dholbert,TYLin
Differential Revision: https://phabricator.services.mozilla.com/D193892
2023-11-18 10:36:01 +00:00
Noemi Erli
af7888da9c Backed out 18 changesets (bug 1863960, bug 1859752) as requested in Bug 1864612 CLOSED TREE
Backed out changeset 814145392ecb (bug 1863960)
Backed out changeset f3564a69fd3f (bug 1863960)
Backed out changeset 35ff07f4726a (bug 1859752)
Backed out changeset b5bf398e3069 (bug 1859752)
Backed out changeset da94a164d4ea (bug 1859752)
Backed out changeset c5eca26f8dff (bug 1859752)
Backed out changeset a2c6ae62fbf7 (bug 1859752)
Backed out changeset 33d0d72d1abe (bug 1859752)
Backed out changeset a42248554021 (bug 1859752)
Backed out changeset 0e7eefda2425 (bug 1859752)
Backed out changeset 1e39572cb1c7 (bug 1859752)
Backed out changeset cbde31ce55a8 (bug 1859752)
Backed out changeset 152860574068 (bug 1859752)
Backed out changeset 16b9813a9c61 (bug 1859752)
Backed out changeset e4495cec8e4b (bug 1859752)
Backed out changeset 1e22b97c98ba (bug 1859752)
Backed out changeset b191be0ec825 (bug 1859752)
Backed out changeset 8b46595de6b5 (bug 1859752)
2023-11-14 17:07:57 +02:00