Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewriting this module #26

Closed
suntong opened this issue Apr 24, 2017 · 0 comments
Closed

Rewriting this module #26

suntong opened this issue Apr 24, 2017 · 0 comments

Comments

@suntong
Copy link

suntong commented Apr 24, 2017

Hi everyone, FYI, I'm planning to rewrite this module, so that

  • Lib: smaller footprint
    • separate the lib and CLI tool
    • moving all part unrelated the core go lib out of the package to somewhere else
  • CLI: Aiming more user friendliness
    • will support input from command line, or pipe, or file
    • allowing options that can be combined to be combined. E.g., in current pinyin/main.go allowing FirstLetter will then unable to choose Tone2, etc.
    • output will be more convenient for full text conversion -- this sample can illustrate clearly what I mean. I.e., for an input of say,

名著:《红楼梦》〖清〗曹雪芹 著、高鹗 续/『人民文学』出版社/1996—9月30日/59.70【元】,《三国演义》〖明〗罗贯中。

The output will be more like normal text thus more easy to read:

MingZhu:《HongLouMeng》〖Qing〗CaoXueQin Zhu、GaoZuo Xu/『RenMinWenXue』ChuBanShe/1996—9Yue30Ri/59.70【Yuan】,《SanGuoYanYi》〖Ming〗LuoGuanZhong。

Of course, the versatile command line option can allow people to easily choose what their final format is.

Once again, this is a great pinyin conversion library, which is why I'm choose to to base my work on, just I thought about submitting patches and re-write and realize that the changes will be so dramatic that a re-writing would be most appropriate.

I shall be finished within a month. For anyone interested in my re-writing, please let me know. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant