V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
magicshui
V2EX  ›  iDev

翻译文章用的编辑器

  •  
  •   magicshui · 2012-05-20 22:50:44 +08:00 · 2743 次点击
    这是一个创建于 4367 天前的主题,其中的信息可能已经有所发展或是发生改变。
    因为工作中需要翻译文章,所以就期望能够做一个程序,能够将英文粘到左边的textview,然后在右边的文本框中写译文。
    当然,如果只是这样就很简单了,最主要是能够将左右的段落连接起来,比如我选中左边一个段落,右边就能够高亮相应的译文
    现在是放入两个textview,但是如何将其保存到一个文件中去?然后读取的时候分开读?
    还有就是如何连接两边的段落?
    谢过~
    6 条回复    1970-01-01 08:00:00 +08:00
    manhere
        1
    manhere  
       2012-05-20 22:57:40 +08:00
    汉王有这种软件啊,忘记名字了。。。
    magicshui
        2
    magicshui  
    OP
       2012-05-20 22:58:22 +08:00
    @manhere 额,忘记附加了,需要mac版本的,其实主要是想练手编程~
    toothpaste
        3
    toothpaste  
       2012-05-20 23:00:02 +08:00   ❤️ 1
    magicshui
        4
    magicshui  
    OP
       2012-05-20 23:02:49 +08:00
    @toothpaste 这个帅~
    lex
        5
    lex  
       2012-05-20 23:10:46 +08:00
    如果自己做的话,可以用webview,然后html大概是这样:

    <div class="para">
    <textarea class="target">大菠萝</textarea>
    <p class="source">Diablo</p>
    </div>

    <div class="para">
    <textarea class="target">Leah</textarea>
    <p class="source">莉亚</p>
    </div>

    <style>
    .para:hover{background:lightgray;}
    .target{float:right;width:50%;background:transparent;border:0;}
    .source{width:50%;}
    }</style>
    magicshui
        6
    magicshui  
    OP
       2012-05-21 08:27:31 +08:00
    @lex 奥,也对哟~嘿嘿,试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2490 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.