Skip to content

Detect Simplified vs. Traditional Chinese in LanguageDetector API#60351

Draft
chromium-wpt-export-bot wants to merge 1 commit into
masterfrom
chromium-export-cl-7797620
Draft

Detect Simplified vs. Traditional Chinese in LanguageDetector API#60351
chromium-wpt-export-bot wants to merge 1 commit into
masterfrom
chromium-export-cl-7797620

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

Use the existing ChineseScriptClassifier used internally by the
translation component to check whether text detected as Chinese is the
Traditional or Simplified variant.

To be efficiently called from Blink the Classify method is given a
std::u16string_view variant.

Fixed: 505173015
Bypass-Check-License: Moved files.
Change-Id: If3060fad07837bc250c22fc315dcd7ee2c7d0e2f
Reviewed-on: https://chromium-review.googlesource.com/7797620
WPT-Export-Revision: 2fdd67c4ac744501bfa951c04dc380be6877a401

Use the existing ChineseScriptClassifier used internally by the
translation component to check whether text detected as Chinese is the
Traditional or Simplified variant.

To be efficiently called from Blink the Classify method is given a
std::u16string_view variant.

Fixed: 505173015
Bypass-Check-License: Moved files.
Change-Id: If3060fad07837bc250c22fc315dcd7ee2c7d0e2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants