找回密码
 注册
搜索
热搜: 超星 读书 找书
查看: 1124|回复: 7

[[原创地带]] iamluda 翻译学习贴

[复制链接]
发表于 2012-5-8 20:41:21 | 显示全部楼层 |阅读模式
英语一直没有提高。很想通过阅读来提高,但坚持不下去。痛下决心,争取在今年内翻译完 swf 文件格式参考手册 第6版。花一年的时间,看看英语能不能提高。

力争每天翻译一小段。 开个帖子督促一下自己。

由于网上能找到 高磊(网站:http://www.Mikel.cn) 翻译的swf 文件格式参考手册 第七版 前6章,
因此我从第七章开始翻译.

翻译章节目录如下:
第七章  变形(Shapes)  
第八章  渐变(Gradients)  
第九章  位图(Bitmaps)  
第十章  旋转变形(Shape Morphing)  
第十一章  字体和文本(Fonts and Text)  
第十二章  声音(Sounds)  
第十三章  按钮(Buttons)  
第十四章  图形和电影剪辑(Sprite and Movie Clips)  
第十五章  视频(Video)  
附录:
回复

使用道具 举报

 楼主| 发表于 2012-5-9 07:19:03 | 显示全部楼层
Shapes(形状)

The Macromedia Flash (SWF) shape architecture is designed to be compact, flexible and rendered very quickly to the display.  It is similar to most vector formats in that shapes are defined by a list of edges called a path. A path may be closed – where the start and end of the path meet to close the figure, or open – where the path forms an open-ended stroke. A path may contain a mixture of straight edges, curved edges, and ‘pen up and move’ commands. The latter allows multiple disconnected figures to be described by a single shape structure. (see MoveTo flag)

Macromedia Flash (SWF) 形状结构设计是紧凑,灵活和很快渲染显示。类似大多数矢量格式的形状定义,一个边的列表称为路径。路径可能是封闭的–开始和结束的路径会闭喝,或是开放的–所在路径形成 一个开放式的描绘

A fill style defines the appearance of an area enclosed by a path. Fill styles supported by Macromedia Flash (SWF) include a color, a gradient, or a bitmapped image.
A line style defines the appearance of the outline of a path. The line style may be a stroke of any thickness and color.
填充样式定义路径包围区域的显示外观。Macromedia Flash (SWF) 填充样式包括颜色,渐变或位图图像。线条样式定义一个路径的轮廓外观。线条样式可能是任何粗细和颜色的描绘

Most vector formats only allow one fill and line style per path. Macromedia Flash (SWF) extends this concept by allowing each edge to have its own line and fill style. This can have unpredictable results when fill styles change in the middle of a path.

多数矢量格式只允许每个路径的填充和线条样式。Macromedia Flash(SWF)延伸了这个概念,每边有它自己的线条和填充样式。当改变路径中间的填充样式时,可能会有不可预知的结果。

Flash also supports two fill styles per edge, one for each side of the edge: FillStyle0 and FillStyle1. FillStyle0 should always be used first and then FillStyle1 if the shape is filled on both sides of the edge.

Flash对于每条边支持两种填充样式,FillStyle0及FillStyle1,分别作用于边的两个侧面。如果形状上这条边的两个侧面都需要填充,就必须先使用FillStyle0,再使用FillStyle1。


兰色部分不知道如何翻译,麻烦书友指点一下
回复

使用道具 举报

发表于 2012-5-9 22:29:27 | 显示全部楼层
Flash也支持每一页有两种填充模式, FillStyle0和FillStyle1。
如果每一页同时填充两个模式的话,应首先使用FillStyle0然后FillStyle1

不懂这个领域,见笑了。期待大家的答案
回复

使用道具 举报

 楼主| 发表于 2012-5-10 08:59:57 | 显示全部楼层
Shape Overview(形状概述)
A shape is comprised of the following elements:
形状包括以下内容:
•  CharacterId — A 16-bit value that uniquely identifies this shape as a ‘character’ in the dictionary. The CharacterId can be referred to in control tags such as PlaceObject. Characters can be re-used and combined with other characters to make more complex shapes.
   CharacterId - 16位的值,这个值用来唯一标识形状, 形状是字典中的字符。这个字符ID可以被引用作为控制标记,例如PlaceObject。字符可以被重新使用,和与其他字符相结合,来表达更复杂的形状。

•  Bounding box — The rectangle that completely encloses the shape.
Bounding box —矩形的形状是完全封闭的。

•  Fill style array — A list of all the fill styles used in a shape.
•Fill style array — 形状中使用的所有填充样式列表。

•  Line style array — A list of all the line styles used in a shape.
Line style array — 形状中所使用的线条样式列表。

•  Shape-record array — A list of shape-records. Shape-records can define straight or curved edges, style changes, or move the drawing position.
•  Shape-record array —形状记录列表。形状记录可以定义直线或曲线的边缘,样式的变化,或移动绘图位置。

Note: Line and fill styles are defined once only, and may be used (and re-used) by any of the edges in the shape.
注:线条和填充样式只定义一次,,可用于任何形状边使用。
回复

使用道具 举报

发表于 2012-5-10 13:39:35 | 显示全部楼层
应邀试译如下(偏直译):

Flash对于每条边支持两种填充样式,FillStyle0及FillStyle1,分别作用于边的两个侧面。如果形状上这条边的两个侧面都需要填充,就必须先使用FillStyle0,再使用FillStyle1。

两个地方的处理略作说明:

1. 第一句开始的"also"未译出。Also可用作类同的“也”,“还”,也可指连接性的“而且”。如果楼主引用的是全文,我没找到“也”的另一半在哪里。作为连接用此处不如略过。
2. 末句的“should always”译为“必须”。"Should always"在英语里很自然,但“应始终”、“应该总是”在中文这句话里太生硬了。“必须”不损失精确性,科技英语也无需特别注意作者的措辞细节。

根据个人(非科班的)经验,英语阅读能力的提高,在开始阶段贵精不贵多,可以从词、惯用法、句、段逐步入手,精读精思,收获自知。否则草草带过,形同流水帐,容易荒废时间,消磨志气。举例而言,第一段里“is designed to”并不难理解,但楼主的翻译就有很大偏差。学习讲求自知自控,似乎不应该抱着“试一试,看效果”的心态。IT英语句式简单,单词量极少,方法对路就很容易见到成效。

放胆妄言,仅供参考。
回复

使用道具 举报

 楼主| 发表于 2012-5-11 07:51:01 | 显示全部楼层
An Example Shape(形状举例)

This example appears to be a collection of shapes, but it can be described with a single DefineShape tag.
这个例子呈现的是一个形状集合,但它可以描述单个DefineShape标签。

The red circle, red square and green rounded-rectangle are closed paths. The curved line is an open path. The red square consists of all straight edges, the red circle consists of all curved edges, while the rounded rectangle has curved edges interspersed with straight edges.
红色的圆,红色正方型和绿色,是封闭路径。弯曲的线是一个开放的路径。红色矩形是由直边组成的,红色的圆是由弯曲组成。圆角矩形是弯曲的边穿插直边组成。

There are two fill styles; solid green and solid red, and two line styles; 1-pixel black, and 2-pixel black. The red circle and red square share the same fill and line styles. The rounded rectangle and curved line share the same line style.
有两个填充样式;实线绿色和红色,和两个线条样式;1个像素的黑色,和2个像素的黑色。红色圆圈和红色矩形采用相同的填充和相同的线条样式。圆角矩形和弯曲线采用相同的线条样式。

Here’s how to describe this example with Macromedia Flash (SWF):
下面是用 Macromedia Flash (SWF) 来如何描述这个例子

•  First, the fill styles are defined with a FILLSTYLEARRAY. The two unique fill styles are solid red and solid green.
•首先,用FILLSTYLEARRAY定义填充样式。两个特定的填充样式:纯红和绿色。

•  This is followed by a LINESTYLEARRAY that includes the two unique line styles; 1-pixel black, and 2-pixel black .
然后是LINESTYLEARRAY,包括两个特定的线条样式;1个像素的黑色,和2个像素的黑色。

•  This is followed by an array of SHAPERECORDs.
然后是一个SHAPERECORDs数组
All shape records share a similar structure but can have varied meaning. A shape-record can define straight or curved edge, a style change, or it can move the current drawing position.
所有形状记录有着相似的结构,但可以有不同的含义。一个形状记录可以定义成直的或弯曲的边,一个样式的变化,或者它可以移动到当前绘画位置。

Now we define the curved line:
现在我们定义的曲线:
•  The first shape-record selects the 2-pixel wide line style, and moves the drawing position to the top of the curved line by setting the MoveTo flag.
首先 形状记录 选择线宽度样式为2象素,通过设置MoveTo标志移动绘制位置到曲线的顶层

•  The next shape-record is a curved edge, which ends to the bottom of the line. The path is not closed.
下一个的形状记录是一个弯曲的边,结束线的底部。路径是不封闭的。

Now we define the red square:
现在我们定义的红色正方形:

•  The next shape-record selects the 1-pixel line style and the red fill style. It also moves the drawing position to the top-left corner of the red rectangle.
下一个形状记录选择1像素的线条样式和红色的填充样式。它还移动绘画位置到红色矩形的左上角。

•  The following four shape-records are straight edges. The last edge must end at the top-left corner. Flash requires that closed figures be joined explicitly. That is, the first and last points must be co-incident.
以下四个形状记录是直边。最后的边必须在左上角结束。flash需要明确加入封闭的数字。
就是说,第一个和最后一个点必须是co-incident。

Now we define the red circle:
现在我们定义红色的圆:
•  The next shape-record does not change any style settings, but moves the drawing position to the top of the red circle.
下一个形状记录不改变任何样式的设置,但移动绘图位置到顶部的红色圆

•  The following eight shape-records are curved edges that define the circle. Again, the path must finish where it started.
下面是圆的弯曲边缘的形状记录有8个。该路径必须结束于开始的地方。
回复

使用道具 举报

发表于 2012-5-14 17:18:16 | 显示全部楼层
却是这种学习方式比较有效
回复

使用道具 举报

发表于 2012-5-24 10:25:35 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|网上读书园地

GMT+8, 2024-6-4 05:18 , Processed in 0.383496 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表