aboutsummaryrefslogtreecommitdiffstats
path: root/dlu.1
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-25 18:18:06 +0100
committerMattias Andrée <m@maandree.se>2026-02-25 18:18:06 +0100
commit7418e41181a9fb829365b4050b51575e1f773881 (patch)
treeea0dd5f7e88de913b6f163800a4790f2a6ff8d60 /dlu.1
parentm fixes (diff)
downloaddlu-7418e41181a9fb829365b4050b51575e1f773881.tar.gz
dlu-7418e41181a9fb829365b4050b51575e1f773881.tar.bz2
dlu-7418e41181a9fb829365b4050b51575e1f773881.tar.xz
m + add "before" function for collationHEAD1.1master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'dlu.1')
-rw-r--r--dlu.115
1 files changed, 13 insertions, 2 deletions
diff --git a/dlu.1 b/dlu.1
index ab4d5bd..9e94d26 100644
--- a/dlu.1
+++ b/dlu.1
@@ -61,6 +61,19 @@ to lower case using Python's string class's
.BR lower ()
function.
.TP
+.BR before "(\fIword1\fP : str, \fIword2\fP : str) -> bool"
+Collation function that checks that
+.I word1
+comes before
+.I word2
+in the dictionary (if so, it returns
+.BR True ,
+otherwise it returns
+.BR False ).
+
+The default implementation of this function compares
+in C locale.
+.TP
.BR get "() -> tuple"
Returns a 3-tuple containing, in order: the filename
of the scanned dictionary, a list of the last word on
@@ -75,5 +88,3 @@ Print a list of all dictionaries.
.TP
.B ~/.config/dlu/dlurc
The configuration file.
-.SH BUGS
-Please report bugs to m@maandree.se