Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown conversion for ru - Cleanup - Glossary section #8483

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 43 additions & 52 deletions files/ru/glossary/base64/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,73 +15,64 @@
<li>{{domxref("WindowBase64.atob","atob()")}}</li>
</ul>

<p><code><font face="Arial, x-locale-body, sans-serif"><span style="background-color: #ffffff;">Функция </span></font>atob()</code> декодирует Base64-кодированную строку. В противоположность ей, функция <code>btoa()</code> создаёт Base64 кодированную ASCII строку из "строки" бинарных данных.</p>
<p><code>Функция atob()</code> декодирует Base64-кодированную строку. В противоположность ей, функция <code>btoa()</code> создаёт Base64 кодированную ASCII строку из "строки" бинарных данных.</p>

<p>Обе функции <code>atob()</code> и <code>btoa()</code> работают со строками. Если вам необходимо работать с <a href="/en-US/docs/Web/API/ArrayBuffer"><code>ArrayBuffers</code></a>, обратитесь к <a href="#">этому параграфу</a>.</p>

<table class="topicpage-table">
<tbody>
<tr>
<td>
<h2 class="Documentation" id="Documentation">Документация</h2>

<dl>
<dt><a href="https://developer.mozilla.org/en-US/docs/data_URIs" title="https://developer.mozilla.org/en-US/docs/data_URIs"><code>data</code> URIs</a></dt>
<dd><small><code>data</code> URIs, описанные в <a class="external" href="http://tools.ietf.org/html/rfc2397">RFC 2397</a>, позволяют создателям контента встроить в документ маленькие файлы в виде строки (инлайном).</small></dd>
<dt><a href="https://en.wikipedia.org/wiki/Base64">Base64</a></dt>
<dd><small>Wikipedia article about Base64 encoding.</small></dd>
<dt>{{domxref("WindowBase64.atob","atob()")}}</dt>
<dd><small>Decodes a string of data which has been encoded using base-64 encoding.</small></dd>
<dt>{{domxref("WindowBase64.btoa","btoa()")}}</dt>
<dd><small>Creates a base-64 encoded ASCII string from a "string" of binary data.</small></dd>
<dt><a href="#The_Unicode_Problem">The "Unicode Problem"</a></dt>
<dd><small>In most browsers, calling <code>btoa()</code> on a Unicode string will cause a <code>Character Out Of Range</code> exception. This paragraph shows some solutions.</small></dd>
<dt><a href="/en-US/docs/URIScheme" title="/en-US/docs/URIScheme">URIScheme</a></dt>
<dd><small>List of Mozilla supported URI schemes</small></dd>
<dt><a href="/en-US/docs/Web/JavaScript/Typed_arrays/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code></a></dt>
<dd>In this article is published a library of ours whose aims are:
<ul>
<li>creating a <a class="external" href="http://en.wikipedia.org/wiki/C_%28programming_language%29">C</a>-like interface for strings (i.e. array of characters codes —<a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView" title="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView"> <code>ArrayBufferView</code></a> in JavaScript) based upon the JavaScript <a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer" title="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a> interface,</li>
<li>creating a collection of methods for such string-like objects (since now: <code>stringView</code>s) which work <strong>strictly on array of numbers</strong> rather than on immutable JavaScript strings,</li>
<li>working with other Unicode encodings, different from default JavaScript's UTF-16 <a href="/en-US/docs/Web/API/DOMString" title="/en-US/docs/Web/API/DOMString"><code>DOMString</code></a>s,</li>
</ul>
</dd>
</dl>

</td>
<td>
<h2 class="Tools" id="Tools">Tools</h2>

<h2>Документация</h2>

<dl>
<dt><a href="/ru/docs/data_URIs"><code>data</code> URIs</a></dt>
<dd><small><code>data</code> URIs, описанные в <a href="http://tools.ietf.org/html/rfc2397">RFC 2397</a>, позволяют создателям контента встроить в документ маленькие файлы в виде строки (инлайном).</small></dd>
<dt><a href="https://en.wikipedia.org/wiki/Base64">Base64</a></dt>
<dd><small>Wikipedia article about Base64 encoding.</small></dd>
<dt>{{domxref("WindowBase64.atob","atob()")}}</dt>
<dd><small>Decodes a string of data which has been encoded using base-64 encoding.</small></dd>
<dt>{{domxref("WindowBase64.btoa","btoa()")}}</dt>
<dd><small>Creates a base-64 encoded ASCII string from a "string" of binary data.</small></dd>
<dt><a href="#The_Unicode_Problem">The "Unicode Problem"</a></dt>
<dd><small>In most browsers, calling <code>btoa()</code> on a Unicode string will cause a <code>Character Out Of Range</code> exception. This paragraph shows some solutions.</small></dd>
<dt><a href="/en-US/docs/URIScheme">URIScheme</a></dt>
<dd><small>List of Mozilla supported URI schemes</small></dd>
<dt><a href="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code></a></dt>
<dd>In this article is published a library of ours whose aims are:
<ul>
<li><a href="#Solution_2_–_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8">Rewriting <code>atob()</code> and <code>btoa()</code> using <code>TypedArray</code>s and UTF-8</a></li>
<li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code> – a C-like representation of strings based on typed arrays</a></li>
<li>creating a <a href="http://en.wikipedia.org/wiki/C_%28programming_language%29">C</a>-like interface for strings (i.e. array of characters codes —<a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView"> <code>ArrayBufferView</code></a> in JavaScript) based upon the JavaScript <a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a> interface,</li>
<li>creating a collection of methods for such string-like objects (since now: <code>stringView</code>s) which work <strong>strictly on array of numbers</strong> rather than on immutable JavaScript strings,</li>
<li>working with other Unicode encodings, different from default JavaScript's UTF-16 <a href="/en-US/docs/Web/API/DOMString"><code>DOMString</code></a>s,</li>
</ul>
</dd>
</dl>

<h2>Tools</h2>

<h2 class="Related_Topics" id="Related_Topics">Related Topics</h2>
<ul>
<li><a href="#Solution_2_–_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8">Rewriting <code>atob()</code> and <code>btoa()</code> using <code>TypedArray</code>s and UTF-8</a></li>
<li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code> – a C-like representation of strings based on typed arrays</a></li>
</ul>

<ul>
<li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a></li>
<li><a href="/en-US/docs/Web/JavaScript/Typed_arrays">Typed arrays</a></li>
<li><code><a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView">ArrayBufferView</a></code></li>
<li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/Uint8Array"><code>Uint8Array</code></a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code> – a C-like representation of strings based on typed arrays</a></li>
<li><a href="/en-US/docs/Web/API/DOMString" title="/en-US/docs/Web/API/DOMString"><code>DOMString</code></a></li>
<li><a href="/en-US/docs/URI" title="/en-US/docs/URI"><code>URI</code></a></li>
<li><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI" title="/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI"><code>encodeURI()</code></a></li>
</ul>
</td>
</tr>
</tbody>
</table>

<h2>Related Topics</h2>

<ul>
<li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a></li>
<li><a href="/en-US/docs/Web/JavaScript/Typed_arrays">Typed arrays</a></li>
<li><code><a href="/en-US/docs/Web/JavaScript/Typed_arrays/ArrayBufferView">ArrayBufferView</a></code></li>
<li><a href="/en-US/docs/Web/JavaScript/Typed_arrays/Uint8Array"><code>Uint8Array</code></a></li>
<li><a href="/ru/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code> – a C-like representation of strings based on typed arrays</a></li>
<li><a href="/en-US/docs/Web/API/DOMString"><code>DOMString</code></a></li>
<li><a href="/en-US/docs/URI"><code>URI</code></a></li>
<li><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI"><code>encodeURI()</code></a></li>
</ul>

<h2 id="The_Unicode_Problem">The "Unicode Problem"</h2>

<p>Since <a href="/en-US/docs/Web/API/DOMString" title="/en-US/docs/Web/API/DOMString"><code>DOMString</code></a>s are 16-bit-encoded strings, in most browsers calling <code>window.btoa</code> on a Unicode string will cause a <code>Character Out Of Range</code> exception if a character exceeds the range of a 8-bit byte (0x00~0xFF). There are two possible methods to solve this problem:</p>
<p>Since <a href="/en-US/docs/Web/API/DOMString"><code>DOMString</code></a>s are 16-bit-encoded strings, in most browsers calling <code>window.btoa</code> on a Unicode string will cause a <code>Character Out Of Range</code> exception if a character exceeds the range of a 8-bit byte (0x00~0xFF). There are two possible methods to solve this problem:</p>

<ul>
<li>the first one is to escape the whole string (with UTF-8, see {{jsxref("encodeURIComponent")}}) and then encode it;</li>
<li>the second one is to convert the UTF-16 <a href="/en-US/docs/Web/API/DOMString" title="/en-US/docs/Web/API/DOMString"><code>DOMString</code></a> to an UTF-8 array of characters and then encode it.</li>
<li>the second one is to convert the UTF-16 <a href="/en-US/docs/Web/API/DOMString"><code>DOMString</code></a> to an UTF-8 array of characters and then encode it.</li>
</ul>

<p>Here are the two possible methods.</p>
Expand Down
15 changes: 4 additions & 11 deletions files/ru/glossary/call_stack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,22 @@ <h2 id="Пример">Пример</h2>
<ol>
<li>Игнорирование всех функций, пока не будет достигнуто место вызова функции <code>greeting()</code>.</li>
<li>Вызывается функция <code>greeting().</code></li>
<li>Функция "greeting" помещается в очередь стека вызовов.</li>
</ol>
<li><p>Функция "greeting" помещается в очередь стека вызовов.</p>

<div class="note">
<p>Очередь стека вызовов:<br>
- greeting</p>
</div>

<p> </p>

<ol start="4">
</li>
<li>Выполняется код внутри функции `greeting`.</li>
<li>Вызывается функция <code>sayHi()</code>.</li>
<li>Функция <code>sayHi()</code> помещается в очередь стека вызовов.</li>
</ol>

<li><p>Функция <code>sayHi()</code> помещается в очередь стека вызовов.</p>
<div class="note">
<p>Очередь стека вызовов:<br>
- greeting<br>
- sayHi</p>
</div>

<ol start="7">
</li>
<li>Выполняется весь код внутри функции <code>sayHi()</code> до самого конца.</li>
<li>Возврат выполнения кода с места вызова функции <code>sayHi()</code> и продолжение выполнения оставшегося кода функции <code>greeting()</code>.</li>
<li>Выполненная функция <code>sayHi()</code> удаляется из очереди стека вызовов.<br>
Expand Down
4 changes: 1 addition & 3 deletions files/ru/glossary/character_encoding/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@

<p>Например, в HTML мы обычно указываем кодировку символов UTF-8, используя следующую строку:</p>

<div class="example">
<pre class="brush: html"><code>&lt;meta charset="utf-8"&gt;</code></pre>
<pre class="brush: html">&lt;meta charset="utf-8"&gt;</pre>

<p>Это гарантирует, что вы можете использовать символы практически любого человеческого языка в вашем HTML-документе, и они будут отображаться надёжно.</p>
</div>

<h2 id="Узнать_больше">Узнать больше</h2>

Expand Down
4 changes: 1 addition & 3 deletions files/ru/glossary/php/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
translation_of: Glossary/PHP
original_slug: Глоссарий/PHP
---
<dl>
<dd><acronym title="PHP: Hypertext Preprocessor">PHP</acronym>, расшифровывающийся как "<em>PHP: Hypertext Preprocessor</em>" - «PHP: Препроцессор Гипертекста», является распространённым интерпретируемым языком общего назначения с открытым исходным кодом. PHP создавался специально для ведения web-разработок и код на нем может внедряться непосредственно в HTML-код. Синтаксис языка берёт начало из C, Java и Perl, и является лёгким для изучения. Основной целью PHP является предоставление web-разработчикам возможности быстрого создания динамически генерируемых web-страниц, однако область применения PHP не ограничивается только этим.</dd>
</dl>
<p>PHP, расшифровывающийся как "<em>PHP: Hypertext Preprocessor</em>" - «PHP: Препроцессор Гипертекста», является распространённым интерпретируемым языком общего назначения с открытым исходным кодом. PHP создавался специально для ведения web-разработок и код на нем может внедряться непосредственно в HTML-код. Синтаксис языка берёт начало из C, Java и Perl, и является лёгким для изучения. Основной целью PHP является предоставление web-разработчикам возможности быстрого создания динамически генерируемых web-страниц, однако область применения PHP не ограничивается только этим.</p>

<h2 id="Узнать_больше">Узнать больше</h2>

Expand Down
2 changes: 1 addition & 1 deletion files/ru/glossary/round_trip_time_(rtt)/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p><strong>Время приёма-передачи</strong> (англ. Round Trip Time, RTT) - это время, которое требуется для отправки пакета данных в пункт назначения, плюс время, которое требуется для подтверждения того, что этот пакет был получен обратно. RTT между сетью и сервером может быть определён с помощью команды <code>ping</code>.</p>

<div>
<pre class="brush: unix">$ ping google.com
<pre class="brush: shell">$ ping google.com
PING google.com (216.58.194.174): 56 data bytes
64 bytes from 216.58.194.174: icmp_seq=0 ttl=55 time=25.050 ms
64 bytes from 216.58.194.174: icmp_seq=1 ttl=55 time=23.781 ms
Expand Down
4 changes: 1 addition & 3 deletions files/ru/glossary/undefined/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
translation_of: Glossary/undefined
original_slug: Глоссарий/undefined
---
<dl>
<dd><strong>{{Glossary("primitive", "Примитивное")}}</strong> значение. Автоматически присваивается <strong>переменным</strong>, которые были только объявлены или {{Glossary("Argument","аргументам")}}, для которых не были установлены значения.</dd>
</dl>
<p><strong>{{Glossary("primitive", "Примитивное")}}</strong> значение. Автоматически присваивается <strong>переменным</strong>, которые были только объявлены или {{Glossary("Argument","аргументам")}}, для которых не были установлены значения.</p>
2 changes: 1 addition & 1 deletion files/ru/glossary/variable/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
translation_of: Glossary/Variable
original_slug: Глоссарий/Variable
---
<p><span class="_Tgc"><strong>Переменная</strong> — именованная часть памяти, в которую могут помещаться разные значения переменной. Причём в каждый момент времени переменная имеет единственное значение. </span></p>
<p><strong>Переменная</strong> — именованная часть памяти, в которую могут помещаться разные значения переменной. Причём в каждый момент времени переменная имеет единственное значение. </p>

<h2 id="Подробнее">Подробнее:</h2>

Expand Down
Loading