@@ -11,39 +11,35 @@ msgstr ""
1111"некоторые расширения специально для Tarantool."
1212
1313msgid ""
14- "You can see this by saying \" table\" : you will see this list of functions: "
15- "``clear`` (LuaJIT extension = erase all elements), `concat "
16- "<https://www.lua.org/manual/5.1/manual.html#pdf-table.concat>`_ "
17- "(concatenate), ``copy`` (make a copy of an array), ``deepcopy`` (see "
18- "description below), ``foreach``, ``foreachi``, `getn "
19- "<https://www.lua.org/pil/19.1.html>`_ (get the number of elements in an "
20- "array), `insert <https://www.lua.org/manual/5.1/manual.html#pdf-"
21- "table.insert>`_ (insert an element into an array), `maxn "
22- "<https://www.lua.org/manual/5.1/manual.html#pdf-table.maxn>`_ (get largest "
23- "index) `move <https://www.lua.org/manual/5.3/manual.html#pdf-table.move>`_ "
24- "(move elements between tables), ``new`` (LuaJIT extension = return a new "
25- "table with pre-allocated elements), `remove "
26- "<https://www.lua.org/manual/5.1/manual.html#pdf-table.remove>`_ (remove an "
27- "element from an array), `sort "
28- "<https://www.lua.org/manual/5.1/manual.html#pdf-table.sort>`_ (sort the "
29- "elements of an array)."
14+ "Write ``table`` to see the list of functions: "
15+ "``clear`` (LuaJIT extension = erase all elements)"
16+ "`concat <https://www.lua.org/manual/5.1/manual.html#pdf-table.concat>`_ (concatenate)"
17+ "``copy`` (make a copy of an array)"
18+ "``deepcopy`` (see the :ref:`description <table-deepcopy>` below)"
19+ "``foreach``"
20+ "``foreachi``"
21+ "`getn <https://www.lua.org/pil/19.1.html>`_ (get the number of elements in an array)"
22+ "`insert <https://www.lua.org/manual/5.1/manual.html#pdf-table.insert>`_ (insert an element into an array)"
23+ "`maxn <https://www.lua.org/manual/5.1/manual.html#pdf-table.maxn>`_ (get еру largest index)"
24+ "`move <https://www.lua.org/manual/5.3/manual.html#pdf-table.move>`_ (move elements between tables)"
25+ "``new`` (LuaJIT extension = return a new table with pre-allocated elements)"
26+ "`remove <https://www.lua.org/manual/5.1/manual.html#pdf-table.remove>`_ (remove an element from an array)
27+ " `sort <https://www.lua.org/manual/5.1/manual.html#pdf-table.sort>`_ (sort the elements of an array)"
3028msgstr ""
31- "Чтобы убедиться в этом, выполните команду \" table\" : вы увидите список "
32- "функций: ``clear`` (расширение LuaJIT = удаление всех элементов), `concat "
33- "<https://www.lua.org/manual/5.1/manual.html#pdf-table.concat>`_ "
34- "(конкатенация), ``copy`` (создание копии массива), ``deepcopy`` (см. "
35- "описание ниже), ``foreach``, ``foreachi``, `getn "
36- "<https://www.lua.org/pil/19.1.html>`_ (получение количества элементов в "
37- "массиве), `insert <https://www.lua.org/manual/5.1/manual.html#pdf-"
38- "table.insert>`_ (вставка элемента в массив), `maxn "
39- "<https://www.lua.org/manual/5.1/manual.html#pdf-table.maxn>`_ (получение "
40- "самого большого индекса) `move "
41- "<https://www.lua.org/manual/5.3/manual.html#pdf-table.move>`_ (перемещение "
42- "элементов между таблицами), ``new`` (расширение LuaJIT = возврат новой "
43- "таблицы с предварительно выделенными элементами), `remove "
44- "<https://www.lua.org/manual/5.1/manual.html#pdf-table.remove>`_ (удаление "
45- "элемента из массива), `sort <https://www.lua.org/manual/5.1/manual.html#pdf-"
46- "table.sort>`_ (сортировка элементов массива)."
29+ "Чтобы убедиться в этом, выполните команду \" table\" : вы увидите список функций: "
30+ "``clear`` (расширение LuaJIT = удаление всех элементов),"
31+ "`concat <https://www.lua.org/manual/5.1/manual.html#pdf-table.concat>`_ (конкатенация),"
32+ "``copy`` (создание копии массива),"
33+ "``deepcopy`` (см. :ref:`описание <table-deepcopy>` ниже),"
34+ "``foreach``,"
35+ "``foreachi``,"
36+ "`getn <https://www.lua.org/pil/19.1.html>`_ (получение количества элементов в массиве),"
37+ "`insert <https://www.lua.org/manual/5.1/manual.html#pdf-table.insert>`_ (вставка элемента в массив),"
38+ "`maxn <https://www.lua.org/manual/5.1/manual.html#pdf-table.maxn>`_ (получение самого большого индекса),"
39+ "`move <https://www.lua.org/manual/5.3/manual.html#pdf-table.move>`_ (перемещение элементов между таблицами),"
40+ "``new`` (расширение LuaJIT = возврат новой таблицы с предварительно выделенными элементами),"
41+ "`remove <https://www.lua.org/manual/5.1/manual.html#pdf-table.remove>`_ (удаление элемента из массива),"
42+ "`sort <https://www.lua.org/manual/5.1/manual.html#pdf-table.sort>`_ (сортировка элементов массива)."
4743
4844msgid ""
4945"In this section we only discuss the additional function that the Tarantool "
@@ -117,7 +113,7 @@ msgstr "Размещение содержимого введенной табл
117113
118114msgid ""
119115"The `basic Lua table.sort <https://www.lua.org/manual/5.1/manual.html#pdf-"
120- "table.sort>`_ has a default comparison- function: :code:`function (a, b) "
116+ "table.sort>`_ has a default comparison function: :code:`function (a, b) "
121117"return a < b end`."
122118msgstr ""
123119"В базовой сортировке в Lua, `table.sort "
@@ -133,31 +129,31 @@ msgstr ""
133129"может понадобиться эквивалент ``table.sort`` со следующими функциями:"
134130
135131msgid ""
136- "(1) If the table contains nils, except nils at the end, the results must "
137- "still be correct. That is not the case with the default tarantool_sort, and "
138- "it cannot be fixed by making a comparison that checks whether a and b are "
139- "nil. (Before trying certain Internet suggestions, test with {1, nil, 2, -1, "
140- "44, 1e308, nil, 2, nil, nil, 0}."
132+ "#. If the table contains nils, except nils at the end, the results must "
133+ "still be correct. That is not the case with the default `` tarantool_sort`` , and "
134+ "it cannot be fixed by making a comparison that checks whether ``a`` and ``b`` are "
135+ "`` nil`` . (Before trying certain Internet suggestions, test with :code:` {1, nil, 2, -1, "
136+ "44, 1e308, nil, 2, nil, nil, 0}` ."
141137msgstr ""
142- "(1) Если таблица содержит нулевые значения, за исключением нулей в конце, "
138+ "#. Если таблица содержит нулевые значения, за исключением нулей в конце, "
143139"результаты все равно должны быть правильными. Это не работает при "
144- "использовании стандартного tarantool_sort, и это нельзя исправить, выполнив "
145- "сравнение, которое проверяет, равны ли значения a и b нулю. (Прежде чем "
146- "пробовать определенные предложения в Интернете, проверьте {1, nil, 2, -1, "
147- "44, 1e308, nil, 2, nil, nil, 0}."
140+ "использовании стандартного `` tarantool_sort`` , и это нельзя исправить, выполнив "
141+ "сравнение, которое проверяет, равны ли значения ``a`` и ``b`` нулю. (Прежде чем "
142+ "пробовать определенные предложения в Интернете, проверьте `` {1, nil, 2, -1, "
143+ "44, 1e308, nil, 2, nil, nil, 0}`` ."
148144
149145msgid ""
150- "(2) If strings are to be sorted in a language-aware way, there must be a "
146+ "#. If strings are to be sorted in a language-aware way, there must be a "
151147"parameter for collation."
152148msgstr ""
153- "(2) Если строки должны быть отсортированы с учетом языка, должен быть "
149+ "#. Если строки должны быть отсортированы с учетом языка, должен быть "
154150"параметр для сравнения символов."
155151
156152msgid ""
157- "(3) If the table has a mix of types, then they must be sorted as booleans, "
153+ "#. If the table has a mix of types, then they must be sorted as booleans, "
158154"then numbers, then strings, then byte arrays."
159155msgstr ""
160- "(3) Если в таблица есть разные типы, то они должны быть отсортированы так: "
156+ "#. Если в таблица есть разные типы, то они должны быть отсортированы так: "
161157"логические, затем числа, затем строки, а затем байтовые массивы."
162158
163159msgid ""
@@ -204,8 +200,8 @@ msgid ""
204200" box.space[tmp_name]:drop()\n"
205201" end\n"
206202"\n"
207- "For example, suppose table t = {1, 'A', -88.3, nil, true, 'b', 'B', nil, 'À'}.\n"
208- "After tarantool_sort(t, 'unicode_ci') t contains {nil, nil, true, -88.3, 1, 'A', 'À', 'b', 'B'}."
203+ "For example, suppose :code:` table t = {1, 'A', -88.3, nil, true, 'b', 'B', nil, 'À'}` .\n"
204+ "After `` tarantool_sort(t, 'unicode_ci')`` ``t`` contains :code:` {nil, nil, true, -88.3, 1, 'A', 'À', 'b', 'B'}` ."
209205msgstr ""
210206"function tarantool_sort(input_table, collation)\n"
211207" local c = collation or 'binary'\n"
@@ -229,5 +225,5 @@ msgstr ""
229225" box.space[tmp_name]:drop()\n"
230226" end\n"
231227"\n"
232- "Например, предположим, что таблица t = {1, 'A', -88.3, nil, true, 'b', 'B', nil, 'À'}.\n"
233- "После tarantool_sort(t, 'unicode_ci') t содержит {nil, nil, true, -88.3, 1, 'A', 'À', 'b', 'B'}."
228+ "Например, предположим, что таблица `` t = {1, 'A', -88.3, nil, true, 'b', 'B', nil, 'À'}`` .\n"
229+ "После `` tarantool_sort(t, 'unicode_ci')`` ``t`` содержит `` {nil, nil, true, -88.3, 1, 'A', 'À', 'b', 'B'}`` ."
0 commit comments