]> git.lyx.org Git - wiki-uploads.git/blob - DevelTools/makeLyxFunctionList/make-lfun-list.sed
Add deb packages for hunspell 1.4
[wiki-uploads.git] / DevelTools / makeLyxFunctionList / make-lfun-list.sed
1 /^      ev_item const items/,/^ };/     {
2         s/^     ev_item.*//
3         t header
4         s/^     };//
5         t delete
6
7 # Remove lines starting with # (#if 0 etc)
8         s/^#//
9         t delete
10
11 # Find (one-line) mappings of user commands
12 # Ex. of matching line:           "apropos-a", 
13         s/^[     ]*{ LFUN_[^,]*, *"\([^"]*\)", *\(N_("\([^"]*\)")\)\?\(.*\)[    ]*},\?[         ]*$/\1  \3/
14         t cont1
15         N
16         s/^[     ]*{ LFUN_[^,]*, *"\([^"]*\)", *\(N_("\([^"]*\)")\)\?\(.*\)[    ]*},\?[         ]*$/\1  \3/
17         t cont1
18         N
19         s/^[     ]*{ LFUN_[^,]*, *"\([^"]*\)", *\(N_("\([^"]*\)")\)\?\(.*\)[    ]*},\?[         ]*$/\1  \3/
20         t cont1
21         l
22         b quit
23
24 : cont1
25
26 # Skip empty lines
27         s/^[    ]*$//
28         t delete
29
30 # Format a user command
31 #       s/^\([-a-z]\+\)$/||\1   ||      ||/
32         p
33         }
34
35 : delete
36         d
37
38 : quit
39         q
40
41 # Insert the header for a table
42 : header
43         d