Chapter 1: Introduction
第一章 介绍
Overview . Previous . Next . Elements . Attributes . Properties
概览、历史、未来、元素、特征、属性
contents 内容
1.1. About SVG
This specification defines the features and syntax for Scalable Vector Graphics (SVG).
文档定义了SVG的特征和语法。
SVG is a language for describing two-dimensional graphics. As a standalone format or when mixed with other XML, it uses the XML syntax [xml]. SVG code used inside HTML documents uses the HTML syntax [HTML]. SVG allows for three types of graphic objects: vector graphic shapes (e.g., paths consisting of straight lines and curves), images and text. Graphical objects can be grouped, styled, transformed and composited. The feature set includes nested transformations, clipping paths, alpha masks, filter effects and template objects.
SVG是描述二维图形的语言。作为独立格式或者与其它XML混合,它使用XML语法。SVG代码可以使用HTML语法嵌入到HTML文档中。SVG允许三种图形对象:矢量图形(例如:由多条直线和曲线组成的路径),图像和文字。图像对象可以被组合、格式化、转换和聚合。特征集中包括嵌套转换、剪切路径、蒙版、光栅过滤效果和模板对象。
SVG drawings can be interactive and dynamic. Animations can be defined and triggered either declaratively (i.e., by embedding SVG animation elements in SVG content) or via scripting.
SVG描画支持交互和动态。动画可以被定义和事件触发(例如:在SVG内容里嵌入SVG动画元素)或者通过脚本触发。
Sophisticated applications of SVG are possible by use of a supplemental scripting language which accesses SVG Document Object Model (DOM), which provides complete access to all elements, attributes and properties. A rich set of event handlers can be assigned to any SVG graphical object. Within a web page, the same scripts can work on both HTML and SVG elements. Scripting.
通过使用增加额外的脚本语言访问SVG文档对象模型(DOM),则复杂的SVG应用成为可能。该SVG DOM提供完整的访问所有元素、特性、属性的方法。一套丰富的事件处理器能够被在任何SVG图形对象上。在一个网页里,相同的脚本既可以工作在HTML上,也能工作在元素脚本上。
SVG is useful for rich graphical presentation of information, including a number of accessibility features that, used correctly, ensure the content can be used by the widest possible audience. But a direct link to source data, where possible, is helpful for many people to understand the content provided.
SVG对于丰富的图形表示是非常有用的,包括大量可访问的特性,使用正确性,确保适用最广泛的用户。但是某些可能的地方,直接连接到源数据,对于许多人理解内容提供的信息是有帮助的。
1.2. Compatibility with other standards efforts 与其它标准兼容性的努力
SVG leverages and integrates with other W3C specifications and standards efforts, as described in the following:
SVG与其它W3C规范和标准的集成努力,在下面进行描述:
1.3. Normative Terminology 规范术语
Within this specification, the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as described in Key words for use in RFCs to Indicate Requirement Levels [rfc2119]. However, for readability, these words do not appear in all uppercase letters in this specification.
本文里,关键字"MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" 的具体解释清参考:Key words for use in RFCs to Indicate Requirement Levels [rfc2119]。然而,为了可读性,这些词并不是全部是大写出现本规范里。
At times, this specification recommends good practice for authors and user agents.
有时,本规范的推荐对于作者和用户来说是好的实践。