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

絵文字ピッカー/サジェストにて、平仮名とカタカナを同じとして候補を出して欲しい #13981

Open
1 task
Sayamame-beans opened this issue Jun 13, 2024 · 12 comments
Labels
✨Feature This adds/improves/enhances a feature

Comments

@Sayamame-beans
Copy link
Collaborator

Summary

タイトル通りです。
例えば、タグとして「タグ」が登録されている場合"たぐ"でも候補に出るように、或いは「たぐ」が登録されている場合"タグ"でも候補に出るようにして欲しいです。

Purpose

タグにいちいち平仮名/カタカナの表記揺れを記述するのは大変なので

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request
@Sayamame-beans Sayamame-beans added the ✨Feature This adds/improves/enhances a feature label Jun 13, 2024
@syuilo
Copy link
Member

syuilo commented Jun 15, 2024

JavaScriptにそういう(normalize)APIあった気がするけどなんだっけ

@kakkokari-gtyih
Copy link
Contributor

@KisaragiEffective
Copy link
Collaborator

Intl.Collator が使えるかもしれない?

@KisaragiEffective
Copy link
Collaborator

image
良さそう

@KisaragiEffective KisaragiEffective added the packages/frontend Client side specific issue/PR label Jun 15, 2024
@syuilo
Copy link
Member

syuilo commented Jun 15, 2024

あーそれかも?

@KisaragiEffective KisaragiEffective removed the packages/frontend Client side specific issue/PR label Jun 15, 2024
@KisaragiEffective
Copy link
Collaborator

frontでやれるかと思ったけど、サジェストはbackendに問い合わせているような気がする

@syuilo
Copy link
Member

syuilo commented Jun 15, 2024

パフォーマンスが心配だわね

@fruitriin
Copy link
Contributor

マイグレーションで既存の読み仮名を全てひらがなかナタカナに寄せて、フロントから検索するときはクエリするときに寄せた方に変換してからクエリするとか

@fruitriin
Copy link
Contributor

既存の読み仮名に
ブロキャ ぶろきゃ
となってる絵文字があるとする

カタカナをひらがなに寄せる
ぶろきゃ ぶろきゃ
になる

絵文字ピッカーでブロキャと入力
カタカナをひらがなに変換→ぶろきゃ としてBEにリクエスト

これでパフォーマンスに影響なくひらがなカタカナどちらでも検索できると思う

@KisaragiEffective
Copy link
Collaborator

frontでやれるかと思ったけど、サジェストはbackendに問い合わせているような気がする

network tabを見てもそれっぽいリクエストがなくて謎

@fruitriin
Copy link
Contributor

よくよく考えたらlocalstorageのemojisから絞り込んでるかも

@anatawa12
Copy link
Member

これ日本語だけだとひらがな・カタカナでいいけど他言語も想定されたマッピング unicodeのデータベースにないかな

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature
Projects
Status: No status
Development

No branches or pull requests

6 participants