Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 2.58 KB

sort-key.md

File metadata and controls

32 lines (26 loc) · 2.58 KB

Sort Key

Supported sortKey names / --sort-key argument values

Name/Value Description Default for formats Supports locale
headword Headword Yomichan (.zip) Yes
headword_lower Lowercase Headword All other formats (given --sort) Yes
headword_bytes_lower ASCII-Lowercase Headword No
stardict StarDict StarDict (.ifo), StarDict (Merge Syns) No
zim Zim (libzim path order) Zim (.zim, for Kiwix) No
ebook E-Book (prefix length: 2) EPUB-2 E-Book, Mobipocket (.mobi) E-Book No
ebook_length3 E-Book (prefix length: 3) No
dicformids DictionaryForMIDs DictionaryForMIDs No
random Random Yes

Sort Locale

You can pass an ICU Locale name/identifier as part of sortKey / --sort-key value, after a : symbol. For example:

  • --sort-key=:fa_IR.UTF-8: Persian (then case-insensitive Latin)
  • --sort-key=headword:fa_IR.UTF-8: Persian (then case-sensitive Latin)
  • --sort-key=headword:es: case-sensitive Spanish
  • --sort-key=headword_lower:es: case-insensitive Spanish
  • --sort-key=:es: Spanish (case-insensitive by default)
  • --sort-key=:latn-arab: first Latin, then Arabic
  • --sort-key=:fa-u-kr-latn-arab: first Latin, then Persian