1 /*
2  * Copyright (C) 1994-2011 Edward Der-Hua Liu, Hsin-Chu, Taiwan
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation version 2.1
7  * of the License.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18 
19 #include "hime.h"
20 
21 #include "hime-conf.h"
22 #include "pho.h"
23 
24 gboolean is_chs;
25 
main(int argc,char ** argv)26 int main (int argc, char **argv) {
27     int i;
28 
29     load_settings ();
30 
31     if (argc > 1) {
32         p_err ("Currently only support ~/.config/hime/pho.tab2");
33     }
34 
35     pho_load ();
36 
37     for (i = 0; i < idxnum_pho; i++) {
38         phokey_t key = idx_pho[i].key;
39         int frm = idx_pho[i].start;
40         int to = idx_pho[i + 1].start;
41 
42         int j;
43         for (j = frm; j < to; j++) {
44             prph (key);
45             dbg (" %s %d\n", pho_idx_str (j), ch_pho[j].count);
46         }
47     }
48 
49     return 0;
50 }
51