blob: 3e0a7207650530e33d9a7c73577a1b259baeb687 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
.Dd August 13, 2024
.Dt memch 1
.Os "YK Pao School Utilities"
.
.Sh NAME
.Nm memch
.Ndhelp memorize Chinese texts (i.e. poems)
.
.Sh SYNOPSIS
.Nm
.Ar filename
.Ar [line]
.
.Sh DESCRIPTION
.Pp
The
.Nm
utility reads UTF-8 Simplified Chinese text from
.Em file ","
seperates them by Chinese punctuation into `segments', replaces every
alternating segment with blanks, displays the rest (punctuation is always
displayed and is not a part of segments), and asks the user for blanked
segments. The program then checks whether the input matches the blanked
segments, turning the segment green if it matches, yellow if it does not match
but the subsequent retry is correct (unless if the input is blank), and red if
both the current try and the subsequent retry do not match. After all input
attempts for the blank segment the segment text is also showed. If
.Em line
is provided, only the line with the specified line number is used from
.Em filename "."
.
.Sh AUTHORS
.Pp
.An Runxi Yu Aq Mt me@runxiyu.org
.
.Sh BUGS
.Pp
Because of character width issues, the C version doesn't currently
work for Chinese text. Please poke runxiyu if you know how to
display wide characters in ncurses.
.Pp
Please do not use this program on files where there are more than 1000
characters in one line. The behaviour on such an input file is undefined.
.
.Sh LICENSE
.Pp
This program is licensed under the 2-clause BSD license. Please read the
LICENSE file for details.
|