File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ public/build/*
66MANIFEST
77dist /
88build /
9+ korean_romanizer.egg-info
10+ .vscode
Original file line number Diff line number Diff line change 1+ import argparse
2+ from korean_romanizer .romanizer import Romanizer
3+
4+ def main ():
5+ parser = argparse .ArgumentParser (description = 'Romanize Korean text.' )
6+ parser .add_argument ('text' , nargs = '+' , help = 'The Korean text to be romanized.' )
7+ args = parser .parse_args ()
8+
9+ text_to_romanize = " " .join (args .text )
10+
11+ r = Romanizer (text_to_romanize )
12+ result = r .romanize ()
13+ print (result )
14+
15+ if __name__ == '__main__' :
16+ main ()
Original file line number Diff line number Diff line change 2020 'Programming Language :: Python :: 3.5' ,
2121 'Programming Language :: Python :: 3.6' ,
2222 ],
23+ entry_points = {
24+ 'console_scripts' : [
25+ 'kroman=korean_romanizer.cli:main' ,
26+ ],
27+ },
2328)
You can’t perform that action at this time.
0 commit comments