| 1 | Source: msort |
| 2 | Section: utils |
| 3 | Priority: optional |
| 4 | Maintainer: Debian QA Group <[email protected]> |
| 5 | Build-Depends: debhelper-compat (= 13), libtre-dev, libuninum-dev, libgmp3-dev, libicu-dev, |
| 6 | Standards-Version: 4.7.2 |
| 7 | Vcs-Browser: https://salsa.debian.org/debian/msort |
| 8 | Vcs-Git: https://salsa.debian.org/debian/msort.git |
| 9 | Homepage: https://www.billposer.org/Software/msort.html |
| 10 | |
| 11 | Package: msort |
| 12 | Architecture: any |
| 13 | Depends: ${shlibs:Depends}, ${misc:Depends} |
| 14 | Suggests: msort-gui |
| 15 | Description: utility for sorting records in complex ways |
| 16 | msort is a program for sorting files in sophisticated ways. It was originally |
| 17 | developed for alphabetizing dictionaries of "exotic" languages, for which it |
| 18 | has been extensively used, but is useful for many other purposes. msort differs |
| 19 | from typical sort utilities in providing greater flexibility in parsing the |
| 20 | input into records and identifying key fields and greater control over the |
| 21 | sort order. Its main distinctive features are: |
| 22 | . |
| 23 | o Msort can be used as a command-line program or via a graphical user |
| 24 | interface that is helpful not only to those who find a complicated command |
| 25 | line difficult to deal with but also to those unfamiliar with the finer |
| 26 | points of sorting. |
| 27 | o Records need not be single lines of text but may be delimited in a number |
| 28 | of ways. |
| 29 | o Key fields may be selected by position in the record (counting from the |
| 30 | beginning or the end), by character ranges (e.g. the key consists of the |
| 31 | fourth through eighth characters), or by matching a regular expression to |
| 32 | a tag. |
| 33 | o For each key an arbitrary sort order may be specified. Msort also |
| 34 | understands locales. |
| 35 | o For each key an effectively unlimited number of multigraphs (sequences |
| 36 | of characters to be treated as a single unit for purposes of sorting, |
| 37 | "collating elements" in Unicode parlance) of effectively unlimited length |
| 38 | may be defined. |
| 39 | o In addition to the usual lexicographic and numerical comparisons, msort |
| 40 | supports hybrid lexicographic-numeric comparison (for things like filenames |
| 41 | and section headings, so that, e.g., 2a will precede 10b), random |
| 42 | comparison, and ordering by angle, date, time, month name, domain name, |
| 43 | email address, ISO8601 date-time, and string length. |
| 44 | o Numbers may be in just about any known number system, e.g. Chinese or |
| 45 | Devanagari. |
| 46 | o For each key a distinct set of characters may be excluded from |
| 47 | consideration when sorting in any combination of initial, final, and |
| 48 | medial position in the key field. |
| 49 | o For each key a distinct set of regular expression substitutions may be |
| 50 | defined. These provide the means to make names like McCarthy sort before |
| 51 | MacCawley, as if McCarthy were spelled MacCarthy as well as to handle the |
| 52 | rare cases in which a single character is treated for purposes of sorting |
| 53 | as a sequence, such as German "eszet" sign, which is traditionally sorted |
| 54 | as if it were ss. |
| 55 | o Lexicographic keys may be reversed, allowing the construction of reverse |
| 56 | dictionaries. |
| 57 | o Any or all keys may be optional. For optional keys, the user may specify |
| 58 | how records missing the key field should compare to records in which the |
| 59 | key field is present. |
| 60 | o A choice of sorting algorithms with different properties is provided. |
| 61 | . |
| 62 | msort understands UTF-8 Unicode. Unicode may be used anywhere that text is |
| 63 | entered: in the text to be sorted, in sort order and exclusion definitions, |
| 64 | as a field or record separator, or as a field tag. Full Unicode |
| 65 | case-folding is available. |
| 66 | |
| 67 | Package: msort-gui |
| 68 | Architecture: all |
| 69 | Depends: tk, iwidgets4, msort, ${misc:Depends} |
| 70 | Description: tcl/tk gui for msort utility |
| 71 | msort-gui is a frontend for msort utility. It is helpful not only to those |
| 72 | who find a complicated command line difficult to deal with but also to |
| 73 | those unfamiliar with the finer points of sorting. |