V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
yanng

用 go 写了一个 mac 下命令行翻译工具

  •  
  •   yanng · Feb 12, 2014 · 4497 views
    This topic created in 4465 days ago, the information mentioned may be changed or developed.
    目前功能很简单,命令行下英汉互译
    translate hello --> 你好
    translate r 你好 --> hello

    github地址:
    https://github.com/rnoldo/go-translate-cli

    我用起来挺好,希望对你有用
    Supplement 1  ·  Feb 12, 2014
    简化了一下
    from

    translate hello --> 你好
    translate r 你好 --> hello

    to

    translate hello --> 你好
    translate 你好 --> hello
    4 replies    1970-01-01 08:00:00 +08:00
    xiaket
        1
    xiaket  
       Feb 12, 2014
    看了下代码, 貌似调了Google翻译, 这需要比较稳定的网络才行?
    yanng
        2
    yanng  
    OP
       Feb 12, 2014 via iPad
    @xiaket 我机子用了smarthosts,用起来没啥问题
    jakwings
        3
    jakwings  
       Feb 13, 2014
    可以看看这个 gawk 的实现:https://github.com/soimort/google-translate-cli
    ruandao
        4
    ruandao  
       Feb 18, 2014
    一般都是 ctrl + cmd + d 或者,三个指头
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2694 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:14 · PVG 18:14 · LAX 03:14 · JFK 06:14
    ♥ Do have faith in what you're doing.