Skip to content

Commit

Permalink
convert to markdown for web/svg, tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Jul 20, 2022
1 parent 842664e commit 0099b05
Show file tree
Hide file tree
Showing 23 changed files with 1,377 additions and 1,536 deletions.
2 changes: 0 additions & 2 deletions files/zh-tw/mdn/tools/kumascript/troubleshooting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ Check for:
- HTML tags appearing inside a macro call
- : If you apply styling to a macro, it will often break because, for example, a `</code>` tag may have appeared inside the macro code in the source code. Check the source view to see what's there, and remove any unnecessary styling.

<!---->

## TemplateLoadingError

`TemplateLoadingError` errors appear when KumaScript has trouble finding which [macro](/en-US/docs/MDN/Contribute/Content/Macros) to include on a page.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ To call a message string like this, you need to specify it like this:
4. The name of the message you want to call as defined in `messages.json`, followed by
5. Two underscores

<!---->

__MSG_ + messageName + __

### Specifying a default locale
Expand Down
57 changes: 0 additions & 57 deletions files/zh-tw/mozilla/firefox/releases/2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,104 +13,47 @@ Firefox 2 有許多新的特色及功能,本文提供各項新特色的相關

- [即時摘要](http://wiki.mozilla.org/Microsummaries)
- : 即時摘要能定期顯示網頁中的關鍵訊息。網站或其他第三方開發者都能提供即時摘要來源,而後使用者能選擇在書籤上顯示即時摘要或網頁標題。

<!---->

- [製作即時摘要](zh_tw/%e8%a3%bd%e4%bd%9c%e5%8d%b3%e6%99%82%e6%91%98%e8%a6%81)
- : 即時摘要來源的製作教學。

<!---->

- [即時摘要 XML 語法參考](zh_tw/%e5%8d%b3%e6%99%82%e6%91%98%e8%a6%81_XML_%e8%aa%9e%e6%b3%95%e5%8f%83%e8%80%83)
- : 即時摘要來源之 XML 語法參考指南。

<!---->

- [製作 OpenSearch 搜尋模組](zh_tw/%e8%a3%bd%e4%bd%9c_OpenSearch_%e6%90%9c%e5%b0%8b%e6%a8%a1%e7%b5%84)
- : Firefox 2 支援 OpenSearch 搜尋模組格式。

<!---->

- [製作 MozSearch 搜尋模組](zh_tw/%e8%a3%bd%e4%bd%9c_MozSearch_%e6%90%9c%e5%b0%8b%e6%a8%a1%e7%b5%84)
- : Firefox 2 支援擴充版的 OpenSearch 格式,名為 MozSearch。但此非標準,故僅建議用於程式內部。

<!---->

- [讓搜尋模組支援搜尋建議](zh_tw/%e8%ae%93%e6%90%9c%e5%b0%8b%e6%a8%a1%e7%b5%84%e6%94%af%e6%8f%b4%e6%90%9c%e5%b0%8b%e5%bb%ba%e8%ad%b0)
- : 讓你的 MozSearch 模組支援搜尋建議功能,此功能將於搜尋欄中以下拉選單顯示建議關鍵字。

<!---->

- [JavaScript 1.7 新功能](zh_tw/JavaScript_1.7_%e6%96%b0%e5%8a%9f%e8%83%bd)
- : Firefox 2 支援 JavaScript 1.7,包含新的 `let` 表達式、跨結構指定(destructuring assignment)、產生器 (generators)、迴圈器 (iterators) 和陣列簡約式 (array comprehensions)。

<!---->

- [WHATWG 於用戶端儲存工作階段資料](http://www.whatwg.org/specs/web-apps/current-work/#scs-client-side)
- : 於用戶端儲存工作階段資料技術可讓網路應用程式於用戶端儲存結構化資料。

<!---->

- [Firefox 中的 SVG](zh_tw/Firefox_%e4%b8%ad%e7%9a%84_SVG)
- : Firefox 2 提升支援 Scalable Vector Graphics (SVG) 的程度,實作了 `<textPath>` 元素、也開始支援某些從前無法妥善處理的屬性。

<!---->

- [控制 HTML 表單中的拼字檢查功能](zh_tw/%e6%8e%a7%e5%88%b6_HTML_%e8%a1%a8%e5%96%ae%e4%b8%ad%e7%9a%84%e6%8b%bc%e5%ad%97%e6%aa%a2%e6%9f%a5%e5%8a%9f%e8%83%bd)
- : Firefox 2 支援文字輸入區的即時拼字檢查,本文描述撰寫 HTML 表單元素時啟用或停用此功能的方法。

<!---->

- [Firefox 2 的安全功能](zh_tw/Firefox_2_%e7%9a%84%e5%ae%89%e5%85%a8%e5%8a%9f%e8%83%bd)
- : 某些與安全相關之協定的預設啟用情形,在 Firefox 2 有了更動。

### 給 XUL 與擴充套件開發者

- [讓擴充套件升級至 Firefox 2](zh_tw/%e8%ae%93%e6%93%b4%e5%85%85%e5%a5%97%e4%bb%b6%e5%8d%87%e7%b4%9a%e8%87%b3_Firefox_2)
- : 描述讓現有擴充套件升級以便支援 Firefox 2 的方法。

<!---->

- [跨連線儲存 (Session store) API](zh_tw/%e8%b7%a8%e9%80%a3%e7%b7%9a%e5%84%b2%e5%ad%98_API)
- : Firefox 現在支援跨連線 (Session) 儲存或復原資料。

<!---->

- [消息來源內容存取 API](zh_tw/%e6%b6%88%e6%81%af%e4%be%86%e6%ba%90%e5%85%a7%e5%ae%b9%e5%ad%98%e5%8f%96_API)
- : 讓開發者存取、解析 RSS 或 Atom 消息來源的 API。

<!---->

- [SAX 支援](zh_tw/SAX)
- : 事件驅動式的 XML 解析 API。

<!---->

- [自網頁添加搜尋引擎](zh_tw/%e8%87%aa%e7%b6%b2%e9%a0%81%e6%b7%bb%e5%8a%a0%e6%90%9c%e5%b0%8b%e5%bc%95%e6%93%8e)
- : Firefox 能以 JavaScript 新增搜尋引擎模組,模組可為 OpenSearch 或 Sherlock 格式。

<!---->

- [於 XUL 中使用拼字檢查](zh_tw/%e6%96%bc_XUL_%e4%b8%ad%e4%bd%bf%e7%94%a8%e6%8b%bc%e5%ad%97%e6%aa%a2%e6%9f%a5)
- : 如何使用拼字檢查功能及怎樣取得建議拼字清單的程式碼。

<!---->

- [新增偽造網站清單來源](zh_tw/%e6%96%b0%e5%a2%9e%e5%81%bd%e9%80%a0%e7%b6%b2%e7%ab%99%e6%b8%85%e5%96%ae%e4%be%86%e6%ba%90)
- : Firefox 可以新增額外的詐騙網站資料來源,藉此提升偵測偽造網站的能力。

<!---->

- [新增消息來源閱讀工具](zh_tw/%e6%96%b0%e5%a2%9e%e6%b6%88%e6%81%af%e4%be%86%e6%ba%90%e9%96%b1%e8%ae%80%e5%b7%a5%e5%85%b7)
- : 你可以用網頁或程式新增 Firefox 的消息來源閱讀工具。

<!---->

- [Storage](zh_tw/Storage)
- : Firefox 2 新增 mozStorage 功能,為基於 sqlite 的資料庫結構。

<!---->

- [Firefox 2 佈景主題之更動](zh_tw/Firefox_2_%e4%bd%88%e6%99%af%e4%b8%bb%e9%a1%8c%e4%b9%8b%e6%9b%b4%e5%8b%95)
- : 討論現有佈景主題更新以便支援 Firefox 2 的方法。

Expand Down
2 changes: 0 additions & 2 deletions files/zh-tw/mozilla/firefox/releases/3.6/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ Gecko 1.9.2 introduces JavaScript 1.8.2, which adds a number of language feature
- [`Date.parse()`](/en-US/docs/JavaScript/Reference/Global_Objects/Date/parse) can now parse ISO 8601 dates like YYYY-MM-DD.
- The [`prototype`](/en-US/docs/JavaScript/Reference/Global_Objects/Function/prototype) property of function instances is no longer enumerable.

<!---->

### DOM

- Web workers can now self-terminate
Expand Down
3 changes: 0 additions & 3 deletions files/zh-tw/mozilla/firefox/releases/4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ For helpful tips on updating existing extensions for Firefox 4, see [Updating ex

- [Services.jsm](/en/JavaScript_code_modules/Services.jsm)
- : The `Services.jsm` code module provides getters that make it easy to obtain references to commonly-used services, such as the preferences service or the window mediator, among others.

<!---->

- [JS-ctypes API](/en/JavaScript_code_modules/ctypes.jsm)
- : The JS-ctypes API makes it possible to call C-compatible foreign library functions without using XPCOM.
- [Add-ons Manager](/en/Addons/Add-on_Manager)
Expand Down
6 changes: 0 additions & 6 deletions files/zh-tw/mozilla/firefox/releases/6/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Firefox 6, based on Gecko 6.0, was released on August 16, 2011. This article pro

### HTML

<!---->

- The HTML5 [`<progress>`](/zh-TW/docs/Web/HTML/Element/progress) element, which lets you create a progress bar, is now supported.
- The parsing of the HTML5 [`<track>`](/zh-TW/docs/Web/HTML/Element/track) element, which specifies text tracks for media elements, is now supported. This element should appear in the DOM now, though its behavior is still not implemented.
- The [`<iframe>`](/zh-TW/docs/Web/HTML/Element/iframe) element is now clipped correctly by its container when the container's corners have been rounded using the [`border-radius`](/zh-TW/docs/Web/CSS/border-radius) property.
Expand Down Expand Up @@ -55,8 +53,6 @@ Firefox 6, based on Gecko 6.0, was released on August 16, 2011. This article pro
- [Server-sent events](/en/Server-sent_events)
- : Server-sent events make it possible for a web application to ask a server to send events just like any locally-created DOM event.

<!---->

- `navigator.securityPolicy`, which has returned an empty string for a long time, has been removed outright.
- [`BlobBuilder`](/zh-TW/docs/Web/API/BlobBuilder) is now implemented, although for now it's prefixed (so you need to use `MozBlobBuilder`).
- The [`document.height`](/zh-TW/docs/Web/API/Document/height) and [元素的寬度有多少像素。">`document.width`](/zh-TW/docs/Web/API/Document/width) have been removed. [bug 585877](https://bugzilla.mozilla.org/show_bug.cgi?id=585877)
Expand Down Expand Up @@ -101,8 +97,6 @@ Firefox 6, based on Gecko 6.0, was released on August 16, 2011. This article pro
- [WebSockets](/en/WebSockets)
- : WebSockets was updated to protocol version 07 for Firefox 6. In addition, the global `WebSocket` object has been renamed to `MozWebSocket` to prevent it from incorrectly being used to detect the availability of unprefixed WebSockets.

<!---->

- Parsing of the `Content-Disposition` header has been fixed to properly interpret backslash-escaped ASCII characters as just that character itself. Previously it was incorrectly replacing that character with an underscore ("\_").
- The value of the path field on `Set-Cookie` headers is now interpreted correctly when quotes are used; previously, they were being treated as part of the path string instead of as delimiters. **This change may affect compatibility with some web sites**, so authors should check their code.
- The [`Upgrade`](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.42) request header is now supported; you can request an upgrade of an HTTP channel to another protocol by calling [`nsIHttpChannelInternal.HTTPUpgrade()`](</zh-TW/docs/XPCOM_Interface_Reference/nsIHttpChannelInternal#HTTPUpgrade()>).
Expand Down
2 changes: 0 additions & 2 deletions files/zh-tw/mozilla/firefox/releases/9/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ _No change._
- [Using full-screen mode](/en-US/docs/DOM/Using_full-screen_mode)
- : The new full-screen API provides a way to present content using the entire screen, with no browser interface. This is great for video and games. This API is currently experimental and prefixed.

<!---->

- The [`Node.contains()`](/zh-TW/docs/Web/API/Node/contains) method is now implemented; this lets you determine if a given node is a descendant of another node.
- The [`Node.parentElement`](/zh-TW/docs/Web/API/Node/parentElement) attribute has been implemented; this returns the parent [`Element`](/zh-TW/docs/Web/API/Element) of a DOM node, or `null` if the parent isn't an element.
- DOM Level 3 [composition events](/en-US/docs/DOM/CompositionEvent) are now supported.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ translation_of: Web/Accessibility/ARIA/forms/Basic_form_hints

當使用傳統的 HTML 表單元素建立表單時,提供控制用的標籤(label)以及將標籤與對應表單元素建立關聯是非常重要的。當  screen reader (例如瀏覽器、電子郵件……等等)瀏覽一個頁面時,screen reader 會顯示  form controls ,但若沒有標示 control 和  label 之間的關聯,  screen reader 沒法知道哪個 label 是對應哪個 control。

下面的範例顯示一個使用標籤的表單。注意每一個 {{ HTMLElement("input") }} 元件都有 **`id`**,每一個 {{ HTMLElement("label") }} 元件有 **`for `**屬性,用來對應 {{ HTMLElement("input") }} 元素的** \*\***`id`\*\* 
下面的範例顯示一個使用標籤的表單。注意每一個 {{ HTMLElement("input") }} 元件都有 **`id`**,每一個 {{ HTMLElement("label") }} 元件有 **`for `**屬性,用來對應 {{ HTMLElement("input") }} 元素的 **`id`**

_範例 1. 使用 label 的簡易表單_

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ translation_of: Web/Accessibility/Mobile_accessibility_checklist

- 在應用程式之中,為每一個非嚴格呈現的非文字元素提供文字相等意義。

- 在適當情況下使用*alt 與\*\*title*(使用指引請參見 Steve Faulkner 關於[Using the HTML title attribute](http://blog.paciellogroup.com/2013/01/using-the-html-title-attribute-updated/)的文章)。
- 在適當情況下使用*alt 與 title*(使用指引請參見 Steve Faulkner 關於[Using the HTML title attribute](http://blog.paciellogroup.com/2013/01/using-the-html-title-attribute-updated/)的文章)。
- 如果上述屬性不適用,則使用合適的[ARIA 屬性](http://www.w3.org/WAI/PF/aria/states_and_properties#global_states_header)`aria-label``aria-labelledby`或  `aria-describedby。`

- 文字圖片 **必須**避免使用。
Expand Down
44 changes: 20 additions & 24 deletions files/zh-tw/web/svg/attribute/fill-rule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ title: fill-rule
slug: Web/SVG/Attribute/fill-rule
translation_of: Web/SVG/Attribute/fill-rule
---
<p>« <a href="/zh-TW/docs/Web/SVG/Attribute">SVG Attribute reference home</a></p>
« [SVG Attribute reference home](/zh-TW/docs/Web/SVG/Attribute)

<p>The <code>fill-rule</code> attribute indicates the algorithm which is to be used to determine what side of a path is inside the shape. For a simple, non-intersecting path, it is intuitively clear what region lies "inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.</p>
The `fill-rule` attribute indicates the algorithm which is to be used to determine what side of a path is inside the shape. For a simple, non-intersecting path, it is intuitively clear what region lies "inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.

<h2 id="Usage_context">Usage context</h2>
## Usage context

<table>
<tbody>
Expand All @@ -25,39 +25,35 @@ translation_of: Web/SVG/Attribute/fill-rule
</tr>
<tr>
<th scope="row">Normative document</th>
<td><a href="https://www.w3.org/TR/SVG/painting.html#FillRuleProperty">SVG 1.1 (2nd Edition)</a></td>
<td>
<a href="https://www.w3.org/TR/SVG/painting.html#FillRuleProperty"
>SVG 1.1 (2nd Edition)</a
>
</td>
</tr>
</tbody>
</table>

<p>The <code>fill-rule</code> property provides two options for how the inside of a shape is determined:</p>
The `fill-rule` property provides two options for how the inside of a shape is determined:

<dl>
<dt>
nonzero</dt>
<dd>
This value determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray. Starting with a count of zero, add one each time a path segment crosses the ray from left to right and subtract one each time a path segment crosses the ray from right to left. After counting the crossings, if the result is zero then the point is outside the path. Otherwise, it is inside.</dd>
<dt>
evenodd</dt>
<dd>
This value determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses. If this number is odd, the point is inside; if even, the point is outside.</dd>
</dl>
- nonzero
- : This value determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray. Starting with a count of zero, add one each time a path segment crosses the ray from left to right and subtract one each time a path segment crosses the ray from right to left. After counting the crossings, if the result is zero then the point is outside the path. Otherwise, it is inside.
- evenodd
- : This value determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses. If this number is odd, the point is inside; if even, the point is outside.

<h2 id="Examples">Examples</h2>
## Examples

<h2 id="Elements">Elements</h2>
## Elements

<p>The following elements can use the <code>fill-rule</code> attribute</p>
The following elements can use the `fill-rule` attribute

<ul>
<li><a href="/zh-TW/docs/Web/SVG/Element#Shape">Shape elements</a> »</li>
<li><a href="/zh-TW/docs/Web/SVG/Element#TextContent">Text content elements</a> »</li>
</ul>
- [Shape elements](/zh-TW/docs/Web/SVG/Element#Shape) »
- [Text content elements](/zh-TW/docs/Web/SVG/Element#TextContent) »

<h2 id="規範">規範</h2>
## 規範

{{Specifications}}

<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
## 瀏覽器相容性

{{Compat}}
Loading

0 comments on commit 0099b05

Please sign in to comment.