sc-train: Only load wordlist on first count, specified by --wordlist
[vspell.git] / utils / std-syllable.cpp
blob264e471ee1ce65301ff90ffaea7d1b660ae68685
1 #include <syllable.h>
2 #include <iostream>
3 #include <string>
4 #include <wordnode.h>
5 #include <sstream>
7 using namespace std;
9 int main(int argc,char **argv)
11 dic_init();
12 string s;
13 while (getline(cin,s)) {
14 istringstream iss(s);
15 string ss;
16 bool first = true;
17 while (iss >> ss) {
18 if (first)
19 first = false;
20 else
21 cout << " ";
22 cout << get_std_syllable(ss);
24 cout << endl;
26 return 0;