Giter Club home page Giter Club logo

gpy's People

Contributors

housemecn avatar suntong avatar vcaesar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gpy's Issues

可以考虑支持拼音首字母吗?

  1. Please speak English, this is the language everybody of us can speak and write.
  2. Please ask questions or config/deploy problems on our Gitter channel: https://gitter.im/go-ego/ego
  3. Please take a moment to search that an issue doesn't already exist.
  4. Please give all relevant information below for bug reports, incomplete details will be handled as an invalid report.

You MUST delete the content above including this line before posting, otherwise your issue will be invalid.

  • Ego version (or commit ref):
  • Go version:
  • Gcc version:
  • Operating system and bit:
  • Can you reproduce the bug at Examples:
    • Yes (provide example code)
    • No
    • Not relevant
  • Provide example code:
  • Log gist:

Description

...

tools/pinyin flags not working

  • Ego version (or commit ref): v0.40.0
  • Go version: go1.14.3
  • Gcc version: gcc version 9.3.0
  • Operating system and bit: 5.4.0-33-generic x86_64

Description

Note that

style = flag.String("s", "zh4ao", str)

I.e., the default output should be with the tone.

However, the pinyin output is without the tone.

Also:

$ pinyin -s zh **话
zhong guo hua 

whereas it should be zh g h

Adding more options to tools/pinyin

  • Ego version (or commit ref): v0.40.0
  • Go version: go1.14.3
  • Gcc version: gcc version 9.3.0
  • Operating system and bit: 5.4.0-33-generic x86_64

Description

I need a special format of the tools/pinyin output to be:

$ pinyin **话
ZhongGuoHua

Justification: this is mainly to rename Chinese-named files into their pinyin counterparts. Thus

  • the space is unwelcome, and because of this
  • need capital each letter to easily tell them apart

I.e., two more switches will be needed/added, for space and capitalization. This would be the 99.9% use case for me to use this tool.

I was planning to fork and add the feature on my own, but think I'd better ask first and see if such added output format would be welcome upstream -- I can do all the modification and send in PR myself, if idea accepted.

字典错误

pinyin_dict.go中的0x5757没有yué这个读音

`pinyin -p` output sometimes incorrect

  • Ego version (or commit ref): v0.40.0
  • Go version: go1.14.3
  • Gcc version: gcc version 9.3.0
  • Operating system and bit: 5.4.0-33-generic x86_64

Description

The output of pinyin -p sometimes are not correct.

Correct example:

$ pinyin -p 银行
2020/10/11 13:47:09 Load the gse dictionary: "/home/tong/l/ws/Go/pkg/mod/github.com/go-ego/[email protected]/data/dict/dictionary.txt" 
2020/10/11 13:47:12 Gse dictionary loaded finished.
yín xíng

Incorrect example:

$ pinyin -p **话
2020/10/11 13:46:54 Load the gse dictionary: "/home/tong/l/ws/Go/pkg/mod/github.com/go-ego/[email protected]/data/dict/dictionary.txt" 
2020/10/11 13:46:56 Gse dictionary loaded finished.
zhng gu huà

somehow the 韵母 of the first two letters are incorrect.

Please double-check. thx.

`pinyin -p` has debug output

  • Ego version (or commit ref): v0.40.0
  • Go version: go1.14.3
  • Gcc version: gcc version 9.3.0
  • Operating system and bit: 5.4.0-33-generic x86_64

Description

Is the extra output from pinyin -p intended?

$ pinyin -p 银行
2020/10/08 22:29:30 Load the gse dictionary: "/home/tong/l/ws/Go/pkg/mod/github.com/go-ego/[email protected]/data/dict/dictionary.txt" 
2020/10/08 22:29:32 Gse dictionary loaded finished.
yin xing

This looks like debug output, and should have a way to disable it.

Heteronym mode

Question

What does the Heteronym (多音字模式) do?

$ pinyin 银行
yin xing 

$ pinyin -e 银行
yin xing 

I was hoping that when the Heteronym (多音字模式) is on, the second output would be

yin hang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.