Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: EditorUtils use document's locale to splitting words #1175

Merged

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Nov 6, 2024

There are many TODO comments in the source.
This try to implement one of TODO in EditorUtils class.

Pull request type

Please mark github LABEL of the type of change your PR introduces:

  • Feature enhancement -> [enhancement]

Which ticket is resolved?

What does this PR change?

  • Update javadoc for getWordEnd and getWordStart utility functions
  • Implement "TODO: change to use document's locale"
  • grab word with source and target locale of the project

Other information

TODO

  • add UI test

@miurahr miurahr changed the title feat: EditorUtils feat: EditorUtils implement TODO: change to use document's locale Nov 7, 2024
@miurahr miurahr marked this pull request as ready for review November 7, 2024 00:52
- Update javadoc for getWordEnd and getWordStart utility functions
- Remove "TODO: change to use document's locale"
- grab word with source and target locale of the project

Signed-off-by: Hiroshi Miura <[email protected]>
@miurahr miurahr force-pushed the topic/miurahr/gui/editor/utils-clean-todo-word-boundary-locale branch from 408b494 to 4f429dc Compare November 7, 2024 02:40

This comment was marked as resolved.

- test EditorUtils.getWord* with loaded project from Chinese to Japanese in English environment

Signed-off-by: Hiroshi Miura <[email protected]>
@miurahr miurahr requested a review from t-cordonnier November 7, 2024 15:03
@miurahr miurahr removed the request for review from t-cordonnier November 25, 2024 09:01

This comment was marked as outdated.

Signed-off-by: Hiroshi Miura <[email protected]>
@miurahr miurahr changed the title feat: EditorUtils implement TODO: change to use document's locale feat: EditorUtils use document's locale to splitting words Dec 1, 2024
- Add unit test for getBoundary method with English, Japanese and Chinese

Signed-off-by: Hiroshi Miura <[email protected]>
- Update javadoc
- @deprecated for methods with old signature
- Simplify some lines

Signed-off-by: Hiroshi Miura <[email protected]>
Signed-off-by: Hiroshi Miura <[email protected]>
Copy link

❌ Acceptance Tests failed.

Please look a Gradle Scan page for details:
https://gradle.com/s/w44nld27tmep6

…word-boundary-locale

# Conflicts:
#	gradle/libs.versions.toml
…lean-todo-word-boundary-locale' into topic/miurahr/gui/editor/utils-clean-todo-word-boundary-locale

This comment was marked as resolved.

This comment was marked as resolved.

Signed-off-by: Hiroshi Miura <[email protected]>
gradle/libs.versions.toml Outdated Show resolved Hide resolved
gradle/libs.versions.toml Outdated Show resolved Hide resolved
@miurahr miurahr merged commit 20ffe61 into master Dec 12, 2024
13 checks passed
@miurahr miurahr deleted the topic/miurahr/gui/editor/utils-clean-todo-word-boundary-locale branch December 12, 2024 13:41
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.

1 participant