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

[ja] add preprocessor for width of alphabetic characters #964

Merged
merged 7 commits into from
May 22, 2024

Conversation

StefanVukovic99
Copy link
Member

Fixes #961

@StefanVukovic99 StefanVukovic99 requested a review from a team as a code owner May 18, 2024 15:37
@StefanVukovic99 StefanVukovic99 added kind/enhancement The issue or PR is a new feature or request area/linguistics The issue or PR is related to linguistics labels May 18, 2024
Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com>
Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com>
Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com>
Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com>
@StefanVukovic99 StefanVukovic99 marked this pull request as draft May 18, 2024 16:44
@StefanVukovic99 StefanVukovic99 marked this pull request as ready for review May 22, 2024 19:17
@StefanVukovic99
Copy link
Member Author

Performance on this is OK now since we merged #973, ready for review 🙏

@@ -523,16 +524,39 @@ export function convertHiraganaToKatakana(text) {
* @param {string} text
* @returns {string}
*/
export function convertNumericToFullWidth(text) {
export function convertAlphanumericToFullWidth(text) {
let result = '';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be more performant using an array than string concatenation? Not sure if this is the performance bottleneck

@jamesmaa jamesmaa added this pull request to the merge queue May 22, 2024
Merged via the queue into themoeway:master with commit d19b898 May 22, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/linguistics The issue or PR is related to linguistics kind/enhancement The issue or PR is a new feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Words using fullwidth alphabet cannot be searched via halfwidth (normal) alphabet search strings
3 participants