Skip to content

[19.0][ADD] l10n_jp_name_kana: kana reading for contacts, with a reusable mixin - #137

Open
AungKoKoLin1997 wants to merge 1 commit into
OCA:19.0from
qrtl:19.0-add-l10n_jp_name_kana
Open

[19.0][ADD] l10n_jp_name_kana: kana reading for contacts, with a reusable mixin#137
AungKoKoLin1997 wants to merge 1 commit into
OCA:19.0from
qrtl:19.0-add-l10n_jp_name_kana

Conversation

@AungKoKoLin1997

@AungKoKoLin1997 AungKoKoLin1997 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Adds a phonetic reading (カナ / ふりがな) to contacts, and the abstract model
that carries the same behaviour to other models.

@qrtl QT7089

…ixin

A name written in kanji has no usable collation order, and staff look records
up by pronunciation, so the reading is both the sort key and the lookup key
for such a name. That only holds if one pronunciation always yields one stored
string, and it does not by itself: the same reading is typed in hiragana, in
full-width katakana or in half-width katakana, and its parts are separated by
an IME's U+3000 or by an import's U+0020.

Readings are therefore normalized on write into a format the administrator
chooses -- globally, or per model for the case where personal furigana is kept
in hiragana while everything else stays in katakana -- and a search term is put
through the same normalization before it is compared. A record is then found
whichever kana form the term is typed in, from the contact lookup and from the
search view alike.

The behaviour lives in an abstract model so that a model gaining a reading
needs no code of its own for it.

Assisted-by: Claude Opus 5
@OCA-git-bot OCA-git-bot added series:19.0 mod:l10n_jp_name_kana Module l10n_jp_name_kana labels Aug 6, 2026
@AungKoKoLin1997
AungKoKoLin1997 marked this pull request as ready for review August 6, 2026 05:31
@AungKoKoLin1997 AungKoKoLin1997 changed the title [ADD] l10n_jp_name_kana: kana reading for contacts, with a reusable mixin [19.0][ADD] l10n_jp_name_kana: kana reading for contacts, with a reusable mixin Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:l10n_jp_name_kana Module l10n_jp_name_kana series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants