这是Module:Hani-sortkey的文档页面

This module will sort text in the 漢字. 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/doc/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.

產生如下所示內容的示範函數位於Module:Hani-sortkey/templates中。模組的修改可以在Module:Hani-sortkey/sandbox中進行測試。單一字元的排序鍵是從178個資料模組之一檢索的。Module:Hani-sortkey/data為這些模組建立文件。

顯示排序鍵 编辑

  • PS/2接口 (PS/2手08口00)
  • gas爐gas炉 (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)
  • (乙01)
  • 𡆔 (口23)
  • 𡎇 (土09)
  • 阿坝 (阜05土04)

表意文字描述序列 编辑