Se rendre au contenu
Icône de Japanese Kana Japon

Japanese Kana

par OCA
Gratuit 19.0 — à porter Localisation Contrôle qualité : Vérifiée LGPL-3

Normalized kana readings for any model, and their format setting

Description en anglais

Japanese Kana

Provides the abstract models that give a phonetic reading (カナ / ふりがな) to a model – of its name, or of any other field – and the setting that chooses the kana format readings are stored in.

A reading is stored in a canonical form, so the same pronunciation matches however it was typed: kana take the configured format, full-width ASCII and digits fold to half-width (ABCショウジ is stored as ABCショウジ), and spacing collapses to single half-width spaces. A search term goes through the same normalization before it is compared.

This module adds no field to any model of its own; the readings live in the modules that apply the mixins to a model.

Table of contents

Configuration

Select the kana format under Settings > General Settings > Japanese Kana. Full-width katakana is the default; half-width katakana and hiragana are the alternatives.

A single model can depart from that, for the case where personal furigana is kept in hiragana while contacts and products stay in katakana. This is rare, so it has no setting of its own: add a system parameter under Settings > Technical > System Parameters whose key is the model name appended to the global one, and whose value is one of full_width_katakana, half_width_katakana or hiragana.

Key Applies to
l10n_jp_kana.format every model with a reading
l10n_jp_kana.format.res.partner contacts
l10n_jp_kana.format.hr.employee employees
l10n_jp_kana.format.product.template products and their variants

An empty or absent per-model key means the model follows the global format.

Changing a format affects only the readings saved afterwards – see Known Issues.

Usage

Install the module that carries the reading to the model you need:

  • l10n_jp_kana_partner_name – contacts
  • l10n_jp_kana_product_name – products
  • l10n_jp_kana_hr_employee_name – employees

To give another model a reading of its name, inherit kana.mixin and name.kana.mixin alongside the model and add the name_kana field to the form and list views. In the search view, use name_kana_search rather than name_kana: a search view compares the term to the column as typed, and that field is what normalizes the term first. Readings are then normalized on create and write, and a term typed into the model’s lookup finds the record whichever kana form it is in.

For a reading of something other than the name – an address, say – inherit kana.mixin alone and declare the Char fields with kana=True. They are normalized on create and write like a name reading; add an onchange on them if the form should show the stored form before saving.

name.kana.mixin needs kana.mixin beside it, which is where the normalization lives. Neither derives from the other, so a module extending kana.mixin reaches every model that took it.

Known issues / Roadmap

Changing a kana format does not rewrite the readings that are already stored. Only readings saved after the change follow the new format; the older ones keep the format they were saved in, and because a search term is normalized to the current format, they stop being found by it until they are saved again.

Pick the format when the module is installed. If it has to change afterwards, re-save the affected readings separately – writing a reading back through the ORM normalizes it to the current format.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Quartile

Contributors

Maintainers

This module is maintained by the OCA.

OCA, or the OCA, is a nonprofit organization whose mission is to support the collaborative development of Omnifloo features and promote its widespread use.

Current maintainer:

This module is part of the OCA/l10n-japan project on GitHub.

You are welcome to contribute. To learn how please visit lien externe.

Ce que l'application ne fait pas

  • Changing a kana format does not rewrite the readings that are already stored. Only readings saved after the change follow the new format; the older ones keep the format they were saved in, and because a search term is normalized to the current format, they stop being found by it until they are saved
  • Pick the format when the module is installed. If it has to change afterwards, re-save the affected readings separately – writing a reading back through the ORM normalizes it to the current format.

Applications du magasin nécessaires

Aucune.

Modules standard utilisés

base_setup

Bibliothèques Python

jaconv

Applications qui la complètent

SérieVersionÉtatPubliée le
19.019.0.1.0.0 En développement 25/09/2026

Fiche générée depuis julien2364/omnifloo-oca-l10n-japan (branche 19.0, commit f6956e6db807).

Contrôle automatique du magasin (distinct de l'éditeur), appliqué à toutes les applications. Conforme.

ContrôleRésultatEffet si absent
Manifeste lisible sans exécution conforme bloquant
Licence reconnue (LGPL-3) conforme bloquant
Aucune dépendance vers l'édition Enterprise conforme bloquant
Aucun import de code Enterprise conforme bloquant
Aucun en-tête de licence Enterprise conforme bloquant
Version normalisée (19.0.1.0.0) conforme info
Icône static/description/icon.png conforme déclasse
Description (static/description/index.html ou README) conforme déclasse
Tests automatisés (tests/test_*.py) conforme déclasse
Traduction française (i18n/fr.po) absent info
Section « Ce que le module ne fait pas » conforme info
Titre de 70 caractères au plus (13 actuellement) conforme info
Résumé en français absent info

Avis des clients connectés. Un avis noté par client ; l'éditeur peut y répondre. Connectez-vous pour laisser un avis.

Éditeur
OCA
Signaler un problème
https://github.com/OCA/l10n-japan
Clients Omnifloo
Support inclus selon votre formule : contactez le support.