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 dynamicAnimations 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 switchelement 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和其它:UNICODEcharmod
  • 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.

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章