中英文对照版-吹友吧
www.treo8.com
Lila55 , CyberVsQ
译者序
本章节前半部分由 Lila55 翻译并发表于吹友吧的论坛(www.Treo8.com),后部分由
CyberVsQ 翻译。由于译者水平所限,难免有偏差和不详之处,请大家到吹友吧论坛斧正。
由于 webOS 还没发布,我们仅仅由此文章窥豹一斑,很多概念和原理无法了解,仅凭
英文字面的意思生搬硬套,可能会对读者造成误导,因而本文以英语原文和中文对照的方式
发布,如有不正确的地方以原文为准。
许多英文词汇在此文中有特别含义或特别所指,但是由于太新,没官方的译名,凭本人
绞尽脑汁也无法想出更好的翻法,这个留待后面大家有更好的译名再进行纠正。
暂罗列如下:
Launcher 启动器 Framework 框架 Card 卡片 Notification 通知
Tagging 标签 Architecture 架构 native 原生
View 在 MVC 里面翻译为视图,在其他里面翻译为查看或者外观
Function 不明确为函数的地方暂译为功能,如比较显然所指为函数则直译为函数
Tap、Back 我们的理解这是操作的两个动作,前者类似于轻轻的点击,back 无解
Quick Launch bar 快速启动栏 Notification bar 通知栏
Activity 最近老在画活动图因而直译为活动,应该指的是一项有目的的操作行为
Dashboard 这个最难搞,看后文的图就知道是什么,但无法形象表达,暂译为指示板
headless application 无标题应用程序,指的应该是没卡片界面的程序
Stage、scene 分别翻译为舞台和场景,前者应该有更好的词汇可以替代
Picker 、Viewer 采集器和查看器,都是一种组件,没见过只好直接翻译了
toggle button 切换按钮,应该是按一下凹陷,再按一下弹起的那种。
Catalog 编目,就是类似于 iPhone 采用的应用程序发布的列表
版权所有,本文未经许可不得摘录、转载及印刷出版。
- 1 -
Overview of webOS
概述
Palm® webOS™ is Palm's next generation operating system. Designed around an in-credibly fast
and beautiful user experience and optimized for the multi-tasking user, webOS integrates the
power of a window-based operating system with the simplicity of a browser. Applications are built
using standard web technologies and languages, but have access to device-based services and data.
Palm® webOS™ 是 Palm 公司新一代的操作系统。WebOS 将窗口操作系统的强大功能和浏览
器应用的简便性融合在一起,提供了非常快速并且华丽的用户界面,而且还为多任务操作进
行了优化。可以使用任何标准的 web 技术和语言撰写 WebOS 的应用程序,同时这并不会影
响到 WebOS 应用程序对设备底层服务和本地数据的访问。
Palm webOS is designed to run on a variety of hardware with different screen sizes, resolutions
and orientations, with or without keyboards and works best with a touch-panel though doesn't
require one. Because the user interface and application model are built around a web browser, the
range of suitable hardware platforms is quite wide, requiring only a CPU, some memory, a
wireless data connection, a display, and a means for interacting with the UI and entering text.
Palm webOS 能够运行在许多设备上,这些设备在屏幕尺寸、分辨率以及用途上各不相同。
Palm webOS 支持键盘操作,尽管如此,在配备触摸屏的设备上表现更好。因为 Palm webOS
的用户界面和应用程序都是基于浏览器应用的,所以,只要硬件设备包含一个 cpu、一些内
存、支持无线数据连接、有显示设备、并且能够进行文本输入和用户界面操作,那么这个设
备就能够使用 Palm webOS。
You can think of webOS applications as native applications, but built from the same standard
HTML, CSS and JavaScript that you'd use to develop web applications. Palm has extended the
standard web development environment through a JavaScript frame-work that gives standardized
UI widgets, and access to selected device hardware and services.
尽管 Palm webOS 应用程序开发基于标准的 HTML, CSS and JavaScript(这些语言都是开发
web 应用程序必备的---注:web 应用程序是 web 应用程序,WebOS 应用程序是 WebOS 应用
程序,不是一码事儿),我们仍然可以认为 WebOS 应用程序就是原生程序。Palm 已经通过
一套完成的 JavaScript frame-work 对标准的 web 开发环境进行了扩展。这套 JavaScript
frame-work 提供了标准化的用户界面组件,并且支持对设备硬件和服务的访问。
The user experience is optimized for launching and managing multiple applications at once.
WebOS is designed around multi-tasking, and makes it utterly simple to run background
applications, to switch between applications in a single step, and to easily handle interruptions and
events without losing context.
用户可以在 WebOS 上同时启动并且管理多个应用程序,Palm 为此对 WebOS 进行了专门优
版权所有,本文未经许可不得摘录、转载及印刷出版。
- 2 -
化。WebOS 的设计初衷就是为了更好地支持多任务,因此 WebOS 能够很容易地运行后台程
序、能够在多个程序间一部切换,而且还能够非常轻松地在不丢失当前输入的情况下处理各
种中断和系统事件。
You will build WebOS applications with common web development tools following typical design
and implementation practices for Ajax applications. But your webOS applications are installed and
run directly on the device, just as you are used to doing with native applications.
开发人员可以很容易地用常见的 web 开发工具进行开发,开发方式和开发 Ajax 应用程序一
样。不同的是,WebOS 应用程序直接安装并且运行在设备上,这一点和以前的原生应用程
序没有任何区别。
Application Model
应用程序模型
As shown in Figure 1-1, the original Palm OS has a typical native application model, as do many
of the popular mobile operating systems. Under this model the application's data, logic and user
interface are integrated within an executable installed on the native operating system, with direct
access to the operating system's services and data.
如图1-1所示,最初的 PalmOS 应用程序和其他流行的移动操作系统一样都是原生程序。在
这种情况下,程序的数据、逻辑以及用户界面都被整合在一个可执行应用程序中,然后安装
在本地操作系统上,这样能就能够直接访问操作系统服务和数据。
Figure 1-1. Native and Web Application Models
Classic web applications are basic HTML-based applications that submit an HTTP request to a
web server after every user action, and wait for a response before displaying an updated HTML
版权所有,本文未经许可不得摘录、转载及印刷出版。
- 3 -
page. More common in recent years are Ajax applications, which handle many user interactions
directly and make web server requests asynchronously. As a result, Ajax applications are able to
deliver a richer and more responsive user experience. Some of the best examples of this richer
experience are the map applica-tions, which enable users to pan and zoom while asynchronously
retrieving needed tiles from the web server.
典型的 web 应用程序使用以 HTML 为基础的语言进行开发。在每一个用户动作之后,都会
向一个 web 服务器提交 HTTP 请求,然后等待回应。收到回应之后,以 HTML 页面的形式
对返回结果进行显示。最近几年更常见的是 Ajax 应用程序。Ajax 应用程序能够直接处理用
户动作,并且能够以异步的方式向 web 服务器发出请求。因此,Ajax 就能够提供更丰富更
快速的用户体验。地图程序就是个好例子。地图程序在持全景以及缩放功能的同时,也能够
异步地从 web 服务器获取所需的数据。
Ajax applications have some significant advantages over embedded applications. They can be
more easily deployed and updated through the same search and access techni-ques used for web
pages. Developing web applications is far easier too; the simplicity of the languages and tools,
particularly for building connected applications, allows de-velopers and designers to be more
productive. Connected applications, or applications that leverage dynamic data or web services,
are becoming the predominant form for modern applications.
Ajax 应用程序相比于嵌入式程序有很大的优势。普通网页使用搜索访问技术,用同样的技
术就能够很轻松地部署、升级 Ajax 应用程序。同样,开发 web 应用程序也极其简单:开发
语言和开发工具很简单,这就大大提高了开发设计人员的效率,尤其是开发需要数据连接的
程序时。因此,实时数据应用程序(Connected applications,不知道翻译的是否准确)以及
支持动态数据和 web 服务的应用程序就成了主流。
The webOS application model combines the ease of development and maintenance of a web
application with the deep integration available to native applications, signifi-cantly advancing the
mobile user experience, while keeping application development simple.
然而,WebOS 应用程序,却进一步把 web 应用程序开发维护的简便性和本地应用程序的整
体性结合在一起。极大地改善了移动用户体验,同时又保留了简便易行的开发方式。
Application Framework and OS
应用程序
框架和操作系统
Through Palm's application framework, applications can embed UI widgets with so-phisticated
editing, navigation and display features, enabling more sophisticated ap-plication user interfaces.
评论2
最新资源