Hello, you have come here looking for the meaning of the word
Module:Kana-sortkey. In DICTIOUS you will not only get to know all the dictionary meanings for the word
Module:Kana-sortkey, but we will also tell you about its etymology, its characteristics and you will know how to say
Module:Kana-sortkey in singular and plural. Everything you need to know about the word
Module:Kana-sortkey you have here. The definition of the word
Module:Kana-sortkey will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
Module:Kana-sortkey, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
- The following documentation is located at Module:Kana-sortkey/documentation. Categories were auto-generated by Module:module categorization.
- Useful links: subpage list • links • transclusions • testcases • sandbox
This module will sort text in the Katakana script. It is used to sort Ainu, Southern Amami-Oshima, Japanese, Hachijō, Kikai, Miyako, Min Nan, Hokkien, Old Japanese, Oki-No-Erabu, Palauan, Baekje, Northern Amami-Oshima, Yaeyama, Okinawan, Toku-No-Shima, Kunigami, Yonaguni, and Yoron.
The module should preferably not be called directly from templates or other modules.
To use it from a template, use {{sortkey}}
.
Within a module, use Module:languages#Language:makeSortKey.
For testcases, see Module:Kana-sortkey/testcases.
Functions
makeSortKey(text, lang, sc)
- Generates a sortkey for a given piece of
text
written in the script specified by the code sc
, and language specified by the code lang
.
- When the sort fails, returns
nil
.
local hira_to_kata = require("Module:ja").hira_to_kata
local export = {}
function export.makeSortKey(text, lang, sc)
-- Normalize to katakana.
text = hira_to_kata(text)
return require("Module:Hrkt-sortkey").makeSortKey(text, lang, sc)
end
return export