From 7418e41181a9fb829365b4050b51575e1f773881 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 25 Feb 2026 18:18:06 +0100 Subject: m + add "before" function for collation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dlu.1 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'dlu.1') 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 -- cgit v1.2.3-70-g09d2