天天看點

SVG2規範中英對照(第一章:介紹)

Chapter 1: Introduction

第一章 介紹

Overview . Previous . Next . Elements . Attributes . Properties

概覽、曆史、未來、元素、特征、屬性

contents 内容

    1. 1.1.About SVG 關于SVG
    2. 1.2.Compatibility with other standards efforts 與其它标準相容性努力
    3. 1.3.Normative Terminology 規範術語

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規範和标準的內建努力,在下面進行描述:

  • SVG can be integrated with HTML either by using SVG in HTML or by using HTML in SVG, in both cases either by inclusion or reference.
  • SVG能夠與HTML內建在一起,它既可以在HTML裡使用SVG,也可以在SVG裡使用HTML。
  • SVG is an application of XML and is compatible with XML 1.0 and with the Namespaces in XMLspecification. However, when SVG content is included in HTML document, the HTML syntax applies and may not be compatible with XML. See SVG Integration for details.
  • SVG是XML的一種應用,并且與XML1.0相容,符合XML名字空間規範(Namespaces in XML)。然而,當SVG被HTML文檔包含時,HTML文法可能與XML不相容,具體參考SVG內建(SVG Integration )。
  • SVG content is styled with CSS. See Styling with CSS for details.
  • SVG内容支援CSS格式,具體參考使用CSS格式化(Styling with CSS)。
  • SVG includes a complete Document Object Model (DOM) and extends DOM4. The SVG DOM has a high level of compatibility and consistency with the HTML DOM. Additionally, the SVG DOM supports and incorporates many of the facilities described in the CSS object model and event handling [dom-level-2-style] [uievents].
  • SVG包括完整的文檔對象模型(DOM)和擴充DOM4,。SVG DOM與HTML DOM具有高水準的相容性和一緻性,在CSS對象模型和事件處理上,SVG DOM支援和涵蓋許多應用描述。
  • SVG incorporates some features and approaches that are part of SMIL 3, including the ‘switch’element and the ‘systemLanguage’ attribute.
  • SVG包括許多特性,請參考SMIL3部分(SMIL 3),它包括‘switch’元素和‘systemLanguage’屬性。
  • SVG is compatible with W3C work on internationalization. References (W3C and otherwise) include: [UNICODE] and [charmod].
  • SVG與W3C相容支援國際化。具體參考W3C和其它:UNICODE和charmod。
  • SVG is compatible with W3C work on Web Accessibility. See Accessibility Support.
  • SVG與W3C相容工作在網頁通路能力上(W3C work on Web Accessibility)。具體參考:Accessibility Support。

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.

有時,本規範的推薦對于作者和使用者來說是好的實踐。

svg