This module will sort text in the Han script. It is used to sort Ai-Cham, Southern Amami Ōshima, Central Bai, Panyi Bai, Southern Bai, Biao-Jiao Mien, Biyo, Eastern Min, Jin, Mandarin, Northern Pinghua, Chinese Pidgin English, Puxian Min, Macau Pidgin Portuguese, Southern Pinghua, Huizhou, Central Min, Dungan, Daur, E, Gan, Hakka, Yemaek, Hainanese, Xiang, Japanese, Hachijō, Kikai, Lama Bai, Middle Chinese, Leizhou Min, Literary Chinese, Jie, Rouran, Tuyuhun, Tuoba, Wuhuan, Xianbei, Xiongnu, Middle Vietnamese, Caolan, Northern Min, Translingual, Miyako, Min Nan, Datian Min, Hokkien, Hailufeng Min, Longyan Min, Teochew, Zhenan Min, Sanxiang Min, Nùng, Old Chinese, Old Japanese, Okinoerabu, Old Uyghur, Bouyei, Baekje, Northern Amami Ōshima, Yaeyama, Okinawan, Shaojiang Min, Sui, Bailang, Tokunoshima, Alchuka, Bala, Kyakala, Tày, Vietnamese, Wu, Waxiang, Classical Tibetan, Middle Mongol, Buyeo, Kunigami, Yonaguni, Yoron, Cantonese, Zhuang, Zauzou, Chinese, Shaozhou Tuhua, Sichuanese, Taishanese, Goguryeo, Zakhring, Khitan, and Gaya.
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:Hani-sortkey/testcases.
makeSortKey(text, lang, sc)
text
written in the script specified by the code sc
, and language specified by the code lang
.nil
.The demonstration functions that generated the content shown below are housed in Module:Hani-sortkey/templates. Modifications to the module can be tested in Module:Hani-sortkey/sandbox. Sortkeys for individual characters are retrieved from one of 178 data modules. Module:Hani-sortkey/data creates documentation for these modules.
PS2手08口00
)gas火16
)γ米05子00
)口05衣07月02日06糸05頁03月02口05衣07火08日06艸07弓08水02
)彳08人08子03
)水14水05水05
)貝10車00
)火13
)⿰人00革00
)⿰人00革00宀07言07
)⿺辵00⿳穴00⿲月00⿱⿲幺00言00幺00⿲長00馬00長00刀00心00⿺辵00⿳穴00⿲月00⿱⿲幺00言00幺00⿲長00馬00長00刀00心00麥09
)