-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcompression.zstd.po
More file actions
633 lines (459 loc) · 75.2 KB
/
Copy pathcompression.zstd.po
File metadata and controls
633 lines (459 loc) · 75.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
# Persian translations for Python package.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# Automatically generated, 2026.
#
# Translators:
# Sepehr Rasouli <[email protected]>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-16 12:56+0000\n"
"PO-Revision-Date: 2026-09-15 12:11+0330\n"
"Last-Translator: Sepehr Rasouli <[email protected]>, 2026\n"
"Language-Team: none\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.6\n"
msgid ":mod:`!compression.zstd` --- Compression compatible with the Zstandard format"
msgstr ":mod:`!compression.zstd` --- فشردهسازی سازگار با قالب Zstandard"
msgid "**Source code:** :source:`Lib/compression/zstd/__init__.py`"
msgstr "**کد منبع:** :source:`Lib/compression/zstd/__init__.py`"
msgid "This module provides classes and functions for compressing and decompressing data using the Zstandard (or *zstd*) compression algorithm. The `zstd manual <https://facebook.github.io/zstd/doc/api_manual_latest.html>`__ describes Zstandard as \"a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios.\" Also included is a file interface that supports reading and writing the contents of ``.zst`` files created by the :program:`zstd` utility, as well as raw zstd compressed streams."
msgstr "این ماژول کلاسها و توابعی را برای فشردهسازی و از حالت فشرده خارج کردن دادهها با استفاده از الگوریتم فشردهسازی Zstandard (یا *zstd*) ارائه میدهد. `راهنمای zstd <https://facebook.github.io/zstd/doc/api_manual_latest.html>`__، Zstandard را اینگونه توصیف میکند: «الگوریتم فشردهسازی سریع و بدون اتلاف که سناریوهای فشردهسازی بلادرنگ را با نسبتهای فشردهسازی در سطح zlib و بهتر هدف قرار میدهد.» همچنین یک رابط پرونده نیز گنجانده شده است که از خواندن و نوشتن محتوای پروندههای ``.zst`` ایجادشده توسط ابزار :program:`zstd` و نیز جریانهای فشرده خام zstd پشتیبانی میکند."
msgid "The :mod:`!compression.zstd` module contains:"
msgstr "ماژول :mod:`!compression.zstd` شامل موارد زیر است:"
msgid "The :func:`.open` function and :class:`ZstdFile` class for reading and writing compressed files."
msgstr "تابع :func:`.open` و کلاس :class:`ZstdFile` برای خواندن و نوشتن پروندههای فشرده."
msgid "The :class:`ZstdCompressor` and :class:`ZstdDecompressor` classes for incremental (de)compression."
msgstr "کلاسهای :class:`ZstdCompressor` و :class:`ZstdDecompressor` برای فشردهسازی/واگشایی تدریجی."
msgid "The :func:`compress` and :func:`decompress` functions for one-shot (de)compression."
msgstr "توابع :func:`compress` و :func:`decompress` برای فشردهسازی/واگشایی یکباره."
msgid "The :func:`train_dict` and :func:`finalize_dict` functions and the :class:`ZstdDict` class to train and manage Zstandard dictionaries."
msgstr "توابع :func:`train_dict` و :func:`finalize_dict` و کلاس :class:`ZstdDict` برای آموزش و مدیریت دیکشنریهای Zstandard."
msgid "The :class:`CompressionParameter`, :class:`DecompressionParameter`, and :class:`Strategy` classes for setting advanced (de)compression parameters."
msgstr "کلاسهای :class:`CompressionParameter`، :class:`DecompressionParameter` و :class:`Strategy` برای تنظیم پارامترهای پیشرفتهی فشردهسازی و واگشایی."
msgid "This is an :term:`optional module`. If it is missing from your copy of CPython, look for documentation from your distributor (that is, whoever provided Python to you). If you are the distributor, see :ref:`optional-module-requirements`."
msgstr "این یک :term:`ماژول اختیاری <optional module>` است. اگر در نسخهی CPython شما وجود ندارد، به مستندات توزیعکنندهی خود مراجعه کنید (یعنی هر کسی که پایتون را در اختیار شما قرار داده است). اگر شما توزیعکننده هستید، :ref:`optional-module-requirements` را ببینید."
msgid "Exceptions"
msgstr "استثناها"
msgid "This exception is raised when an error occurs during compression or decompression, or while initializing the (de)compressor state."
msgstr "این استثنا زمانی پرتاب میشود که خطایی در حین فشردهسازی یا رفع فشردگی، یا هنگام مقداردهی اولیهی وضعیت فشردهساز/بازکننده رخ دهد."
msgid "Reading and writing compressed files"
msgstr "خواندن و نوشتن پروندههای فشرده"
msgid "Open a Zstandard-compressed file in binary or text mode, returning a :term:`file object`."
msgstr "یک پرونده فشردهشده با Zstandard را در حالت دودویی یا متنی باز میکند و یک :term:`شیء پرونده <file object>` بازمیگرداند."
msgid "The *file* argument can be either a file name (given as a :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from or write to."
msgstr "آرگومان *file* میتواند یک نام پرونده (دادهشده بهصورت یک شیء :class:`str`، :class:`bytes` یا :term:`path-like <path-like object>`) باشد، که در این صورت پرونده نامبرده باز میشود، یا میتواند یک شیء پرونده موجود برای خواندن از آن یا نوشتن در آن باشد."
msgid "The mode argument can be either ``'rb'`` for reading (default), ``'wb'`` for overwriting, ``'ab'`` for appending, or ``'xb'`` for exclusive creation. These can equivalently be given as ``'r'``, ``'w'``, ``'a'``, and ``'x'`` respectively. You may also open in text mode with ``'rt'``, ``'wt'``, ``'at'``, and ``'xt'`` respectively."
msgstr "آرگومان حالت میتواند ``'rb'`` برای خواندن (پیشفرض)، ``'wb'`` برای بازنویسی، ``'ab'`` برای الحاق، یا ``'xb'`` برای ایجاد انحصاری باشد. این موارد را میتوان بهترتیب و بهطور معادل بهصورت ``'r'``، ``'w'``، ``'a'`` و ``'x'`` نیز مشخص کرد. همچنین میتوانید برای باز کردن در حالت متنی، بهترتیب از ``'rt'``، ``'wt'``، ``'at'`` و ``'xt'`` استفاده کنید."
msgid "When reading, the *options* argument can be a dictionary providing advanced decompression parameters; see :class:`DecompressionParameter` for detailed information about supported parameters. The *zstd_dict* argument is a :class:`ZstdDict` instance to be used during decompression. When reading, if the *level* argument is not None, a :exc:`!TypeError` will be raised."
msgstr "هنگام خواندن، آرگومان *options* میتواند یک دیکشنری باشد که پارامترهای پیشرفتهی واگشایی را فراهم میکند؛ برای اطلاعات دقیق دربارهی پارامترهای پشتیبانیشده، :class:`DecompressionParameter` را ببینید. آرگومان *zstd_dict* یک نمونه از :class:`ZstdDict` است که در حین واگشایی استفاده میشود. هنگام خواندن، اگر آرگومان *level* برابر None نباشد، یک :exc:`!TypeError` پرتاب خواهد شد."
msgid "When writing, the *options* argument can be a dictionary providing advanced compression parameters; see :class:`CompressionParameter` for detailed information about supported parameters. The *level* argument is the compression level to use when writing compressed data. Only one of *level* or *options* may be non-None. The *zstd_dict* argument is a :class:`ZstdDict` instance to be used during compression."
msgstr "هنگام نوشتن، آرگومان *options* میتواند دیکشنری باشد که پارامترهای فشردهسازی پیشرفته را ارائه میکند؛ برای اطلاعات دقیق درباره پارامترهای پشتیبانیشده، :class:`CompressionParameter` را ببینید. آرگومان *level* سطح فشردهسازی برای استفاده هنگام نوشتن دادههای فشرده است. فقط یکی از *level* یا *options* میتواند غیر None باشد. آرگومان *zstd_dict* یک نمونه :class:`ZstdDict` است که در طول فشردهسازی استفاده میشود."
msgid "In binary mode, this function is equivalent to the :class:`ZstdFile` constructor: ``ZstdFile(file, mode, ...)``. In this case, the *encoding*, *errors*, and *newline* parameters must not be provided."
msgstr "در حالت دودویی، این تابع معادل سازندهی :class:`ZstdFile` است: ``ZstdFile(file, mode, ...)``. در این حالت، نباید پارامترهای *encoding*، *errors* و *newline* ارائه شوند."
msgid "In text mode, a :class:`ZstdFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified encoding, error handling behavior, and line endings."
msgstr "در حالت متنی، یک شیء :class:`ZstdFile` ایجاد میشود و یک نمونه :class:`io.TextIOWrapper` با کدگذاری، رفتار مدیریت خطا و پایانهای خط مشخصشده، آن را در بر میگیرد."
msgid "Open a Zstandard-compressed file in binary mode."
msgstr "باز کردن یک پرونده فشردهشده با Zstandard در حالت دودویی."
msgid "A :class:`ZstdFile` can wrap an already-open :term:`file object`, or operate directly on a named file. The *file* argument specifies either the file object to wrap, or the name of the file to open (as a :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object). If wrapping an existing file object, the wrapped file will not be closed when the :class:`ZstdFile` is closed."
msgstr "یک :class:`ZstdFile` میتواند یک :term:`file object` از پیش باز را دربرگیرد، یا بهطور مستقیم روی یک پرونده نامدار عمل کند. آرگومان *file* یا شیء پرونده برای دربرگرفتن، یا نام پرونده برای باز کردن را مشخص میکند (بهصورت یک :class:`str`، :class:`bytes` یا شیء :term:`path-like <path-like object>`). در صورت دربرگرفتن یک شیء پرونده موجود، پرونده دربرگرفتهشده هنگام بستن :class:`ZstdFile` بسته نمیشود."
msgid "The *mode* argument can be either ``'rb'`` for reading (default), ``'wb'`` for overwriting, ``'xb'`` for exclusive creation, or ``'ab'`` for appending. These can equivalently be given as ``'r'``, ``'w'``, ``'x'`` and ``'a'`` respectively."
msgstr "آرگومان *mode* میتواند یکی از ``'rb'`` برای خواندن (پیشفرض)، ``'wb'`` برای بازنویسی، ``'xb'`` برای ایجاد انحصاری، یا ``'ab'`` برای الحاق باشد. این موارد میتوانند بهطور معادل بهترتیب بهصورت ``'r'``، ``'w'``، ``'x'`` و ``'a'`` نیز داده شوند."
msgid "If *file* is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equivalent to ``'a'``."
msgstr "اگر *file* یک شیء پرونده باشد (نه یک نام پرونده واقعی)، حالت ``'w'`` پرونده را کوتاه نمیکند، بلکه معادل ``'a'`` است."
msgid "When writing, the *options* argument can be a dictionary providing advanced compression parameters; see :class:`CompressionParameter` for detailed information about supported parameters. The *level* argument is the compression level to use when writing compressed data. Only one of *level* or *options* may be passed. The *zstd_dict* argument is a :class:`ZstdDict` instance to be used during compression."
msgstr "هنگام نوشتن، آرگومان *options* میتواند یک دیکشنری باشد که پارامترهای پیشرفته فشردهسازی را ارائه میدهد؛ برای اطلاعات دقیق درباره پارامترهای پشتیبانیشده، :class:`CompressionParameter` را ببینید. آرگومان *level* سطح فشردهسازی مورد استفاده هنگام نوشتن دادههای فشرده است. فقط یکی از *level* یا *options* را میتوان ارسال کرد. آرگومان *zstd_dict* یک نمونه از :class:`ZstdDict` است که در حین فشردهسازی استفاده میشود."
msgid ":class:`!ZstdFile` supports all the members specified by :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` statement are supported."
msgstr ":class:`!ZstdFile` از همهی اعضای مشخصشده توسط :class:`io.BufferedIOBase` پشتیبانی میکند، بهجز :meth:`~io.BufferedIOBase.detach` و :meth:`~io.IOBase.truncate`. از تکرار و دستور :keyword:`with` پشتیبانی میشود."
msgid "The following method and attributes are also provided:"
msgstr "متد و ویژگیهای زیر نیز ارائه شدهاند:"
msgid "Return buffered data without advancing the file position. At least one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored)."
msgstr "دادهی بافرشده را بدون پیشبردن موقعیت پرونده برمیگرداند. حداقل ۱ بایت داده برگردانده خواهد شد، مگر اینکه به EOF رسیده باشیم. تعداد دقیق بایتهای برگرداندهشده نامشخص است (آرگومان *size* نادیده گرفته میشود)."
msgid "While calling :meth:`peek` does not change the file position of the :class:`ZstdFile`, it may change the position of the underlying file object (for example, if the :class:`ZstdFile` was constructed by passing a file object for *file*)."
msgstr "اگرچه فراخوانی :meth:`peek` موقعیت پرونده در :class:`ZstdFile` را تغییر نمیدهد، اما ممکن است موقعیت شیء پرونده زیربنایی را تغییر دهد (برای مثال، اگر :class:`ZstdFile` با ارسال یک شیء پرونده برای *file* ساخته شده باشد)."
msgid "``'rb'`` for reading and ``'wb'`` for writing."
msgstr "``'rb'`` برای خواندن و ``'wb'`` برای نوشتن."
msgid "The name of the Zstandard file. Equivalent to the :attr:`~io.FileIO.name` attribute of the underlying :term:`file object`."
msgstr "نام پرونده Zstandard. معادل ویژگی :attr:`~io.FileIO.name` در :term:`file object` زیرین است."
msgid "Compressing and decompressing data in memory"
msgstr "فشردهسازی و از حالت فشرده خارج کردن دادهها در حافظه"
msgid "Compress *data* (a :term:`bytes-like object`), returning the compressed data as a :class:`bytes` object."
msgstr "*data* (یک :term:`bytes-like object`) را فشرده میکند و داده فشردهشده را بهصورت یک شیء :class:`bytes` برمیگرداند."
msgid "The *level* argument is an integer controlling the level of compression. *level* is an alternative to setting :attr:`CompressionParameter.compression_level` in *options*. Use :meth:`~CompressionParameter.bounds` on :attr:`~CompressionParameter.compression_level` to get the values that can be passed for *level*. If advanced compression options are needed, the *level* argument must be omitted and in the *options* dictionary the :attr:`!CompressionParameter.compression_level` parameter should be set."
msgstr "آرگومان *level* یک عدد صحیح است که سطح فشردهسازی را کنترل میکند. *level* جایگزینی برای تنظیم :attr:`CompressionParameter.compression_level` در *options* است. برای دریافت مقادیری که میتوان برای *level* ارسال کرد، از :meth:`~CompressionParameter.bounds` روی :attr:`~CompressionParameter.compression_level` استفاده کنید. اگر به گزینههای پیشرفتهی فشردهسازی نیاز باشد، آرگومان *level* باید حذف شود و در دیکشنری *options* پارامتر :attr:`!CompressionParameter.compression_level` باید تنظیم شود."
msgid "The *options* argument is a Python dictionary containing advanced compression parameters. The valid keys and values for compression parameters are documented as part of the :class:`CompressionParameter` documentation."
msgstr "آرگومان *options* یک دیکشنری پایتون است که حاوی پارامترهای پیشرفته فشردهسازی است. کلیدها و مقدارهای معتبر برای پارامترهای فشردهسازی، بهعنوان بخشی از مستندات :class:`CompressionParameter` مستند شدهاند."
msgid "The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data to improve compression efficiency. The function :func:`train_dict` can be used to generate a Zstandard dictionary."
msgstr "آرگومان *zstd_dict* یک نمونه از :class:`ZstdDict` است که حاوی دادههای آموزشدیده برای بهبود کارایی فشردهسازی است. میتوان از تابع :func:`train_dict` برای تولید یک دیکشنری Zstandard استفاده کرد."
msgid "Decompress *data* (a :term:`bytes-like object`), returning the uncompressed data as a :class:`bytes` object."
msgstr "*data* (یک :term:`bytes-like object`) را از حالت فشرده خارج میکند و دادهی فشردهنشده را بهصورت یک شیء :class:`bytes` برمیگرداند."
msgid "The *options* argument is a Python dictionary containing advanced decompression parameters. The valid keys and values for compression parameters are documented as part of the :class:`DecompressionParameter` documentation."
msgstr "آرگومان *options* یک دیکشنری پایتون شامل پارامترهای پیشرفتهی ازفشردهسازی است. کلیدها و مقدارهای معتبر برای پارامترهای فشردهسازی بهعنوان بخشی از مستندات :class:`DecompressionParameter` مستند شدهاند."
msgid "The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data used during compression. This must be the same Zstandard dictionary used during compression."
msgstr "آرگومان *zstd_dict* نمونهای از :class:`ZstdDict` است که حاوی دادههای آموزشدیدهی مورد استفاده در حین فشردهسازی است. این باید همان دیکشنری Zstandard مورد استفاده در حین فشردهسازی باشد."
msgid "If *data* is the concatenation of multiple distinct compressed frames, decompress all of these frames, and return the concatenation of the results."
msgstr "اگر *data* حاصل الحاق چندین فریم فشردهی متمایز باشد، همهی این فریمها را از حالت فشرده خارج کنید و حاصل الحاق نتایج را برگردانید."
msgid "Create a compressor object, which can be used to compress data incrementally."
msgstr "یک شیء فشردهساز ایجاد کنید که میتوان از آن برای فشردهسازی تدریجی دادهها استفاده کرد."
msgid "For a more convenient way of compressing a single chunk of data, see the module-level function :func:`compress`."
msgstr "برای فشردهسازی یک تکهی داده بهشکلی آسانتر، تابع سطح ماژول :func:`compress` را ببینید."
msgid "The *zstd_dict* argument is an optional instance of :class:`ZstdDict` containing trained data to improve compression efficiency. The function :func:`train_dict` can be used to generate a Zstandard dictionary."
msgstr "آرگومان *zstd_dict* یک نمونه اختیاری از :class:`ZstdDict` است که حاوی دادههای آموزشدیده برای بهبود بهرهوری فشردهسازی است. برای تولید یک دیکشنری Zstandard میتوانید از تابع :func:`train_dict` استفاده کنید."
msgid "Compress *data* (a :term:`bytes-like object`), returning a :class:`bytes` object with compressed data if possible, or otherwise an empty :class:`!bytes` object. Some of *data* may be buffered internally, for use in later calls to :meth:`!compress` and :meth:`~.flush`. The returned data should be concatenated with the output of any previous calls to :meth:`~.compress`."
msgstr "*data* (یک :term:`bytes-like object`) را فشرده میکند و در صورت امکان، یک شیء :class:`bytes` حاوی دادههای فشرده، یا در غیر این صورت یک شیء خالی :class:`!bytes` را برمیگرداند. ممکن است بخشی از *data* بهصورت داخلی در بافر نگهداری شود، تا در فراخوانیهای بعدی :meth:`!compress` و :meth:`~.flush` مورد استفاده قرار گیرد. دادههای برگرداندهشده باید با خروجی تمام فراخوانیهای پیشین :meth:`~.compress` الحاق شوند."
msgid "The *mode* argument is a :class:`ZstdCompressor` attribute, either :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`."
msgstr "آرگومان *mode* یک ویژگی از :class:`ZstdCompressor` است که میتواند یکی از :attr:`~.CONTINUE`، :attr:`~.FLUSH_BLOCK` یا :attr:`~.FLUSH_FRAME` باشد."
msgid "When all data has been provided to the compressor, call the :meth:`~.flush` method to finish the compression process. If :meth:`~.compress` is called with *mode* set to :attr:`~.FLUSH_FRAME`, :meth:`~.flush` should not be called, as it would write out a new empty frame."
msgstr "هنگامی که همهی دادهها به فشردهساز ارائه شد، برای پایان دادن به فرآیند فشردهسازی، متد :meth:`~.flush` را فراخوانی کنید. اگر :meth:`~.compress` در حالی فراخوانی شود که *mode* روی :attr:`~.FLUSH_FRAME` تنظیم شده باشد، نباید :meth:`~.flush` فراخوانی شود، زیرا یک فریمخالی جدید مینویسد."
msgid "Finish the compression process, returning a :class:`bytes` object containing any data stored in the compressor's internal buffers."
msgstr "فرآیند فشردهسازی را به پایان میرساند و یک شیء :class:`bytes` را برمیگرداند که حاوی هرگونه دادهای است که در بافرهای داخلی فشردهساز ذخیرهشده است."
msgid "The *mode* argument is a :class:`ZstdCompressor` attribute, either :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`."
msgstr "آرگومان *mode* یک ویژگی از :class:`ZstdCompressor` است و میتواند :attr:`~.FLUSH_BLOCK` یا :attr:`~.FLUSH_FRAME` باشد."
msgid "Specify the amount of uncompressed data *size* that will be provided for the next frame. *size* will be written into the frame header of the next frame unless :attr:`CompressionParameter.content_size_flag` is ``False`` or ``0``. A size of ``0`` means that the frame is empty. If *size* is ``None``, the frame header will omit the frame size. Frames that include the uncompressed data size require less memory to decompress, especially at higher compression levels."
msgstr "اندازهی دادهی فشردهنشده *size* را که برای فریم بعدی ارائه خواهد شد، مشخص کنید. *size* در سرآیند فریم بعدی نوشته خواهد شد، مگر اینکه :attr:`CompressionParameter.content_size_flag` برابر ``False`` یا ``0`` باشد. اندازهی ``0`` به این معناست که فریم خالی است. اگر *size* برابر ``None`` باشد، سرآیند فریم شامل اندازهی فریم نخواهد بود. فریمهایی که شامل اندازهی دادهی فشردهنشده هستند، برای خارج کردن از حالت فشرده به حافظهی کمتری نیاز دارند، بهویژه در سطوح فشردهسازی بالاتر."
msgid "If :attr:`last_mode` is not :attr:`FLUSH_FRAME`, a :exc:`ValueError` is raised as the compressor is not at the start of a frame. If the pledged size does not match the actual size of data provided to :meth:`.compress`, future calls to :meth:`!compress` or :meth:`flush` may raise :exc:`ZstdError` and the last chunk of data may be lost."
msgstr "اگر :attr:`last_mode` برابر با :attr:`FLUSH_FRAME` نباشد، استثنای :exc:`ValueError` پرتاب میشود، زیرا فشردهساز در ابتدای یک فریم نیست. اگر اندازه متعهدشده با اندازه واقعی داده ارائهشده به :meth:`.compress` مطابقت نداشته باشد، فراخوانیهای بعدی :meth:`!compress` یا :meth:`flush` ممکن است استثنای :exc:`ZstdError` را پرتاب کنند و ممکن است آخرین تکه داده از دست برود."
msgid "After :meth:`flush` or :meth:`.compress` are called with mode :attr:`FLUSH_FRAME`, the next frame will not include the frame size into the header unless :meth:`!set_pledged_input_size` is called again."
msgstr "پس از فراخوانی :meth:`flush` یا :meth:`.compress` با حالت :attr:`FLUSH_FRAME`، فریم بعدی شامل اندازه فریم در سرآیند نخواهد بود، مگر اینکه :meth:`!set_pledged_input_size` دوباره فراخوانی شود."
msgid "Collect more data for compression, which may or may not generate output immediately. This mode optimizes the compression ratio by maximizing the amount of data per block and frame."
msgstr "دادههای بیشتری برای فشردهسازی جمعآوری میکند، که ممکن است خروجی را بلافاصله تولید کند یا نکند. این حالت با بیشینهسازی مقدار داده به ازای هر بلوک و فریم، نسبت فشردهسازی را بهینه میکند."
msgid "Complete and write a block to the data stream. The data returned so far can be immediately decompressed. Past data can still be referenced in future blocks generated by calls to :meth:`~.compress`, improving compression."
msgstr "یک بلوک را کامل کنید و آن را در جریان داده بنویسید. دادههای برگرداندهشده تاکنون را میتوان بلافاصله از حالت فشرده خارج کرد. هنوز میتوان به دادههای پیشین در بلوکهای آیندهای که با فراخوانیهای :meth:`~.compress` تولید میشوند، ارجاع داد و فشردهسازی را بهبود بخشید."
msgid "Complete and write out a frame. Future data provided to :meth:`~.compress` will be written into a new frame and *cannot* reference past data."
msgstr "یک فریم را کامل کرده و بنویسید. دادههای بعدی ارائهشده به :meth:`~.compress`، در یک فریم جدید نوشته خواهند شد و *نمیتوانند* به دادههای گذشته ارجاع دهند."
msgid "The last mode passed to either :meth:`~.compress` or :meth:`~.flush`. The value can be one of :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`. The initial value is :attr:`~.FLUSH_FRAME`, signifying that the compressor is at the start of a new frame."
msgstr "آخرین حالت ارسالشده به :meth:`~.compress` یا :meth:`~.flush`. این مقدار میتواند یکی از :attr:`~.CONTINUE`، :attr:`~.FLUSH_BLOCK` یا :attr:`~.FLUSH_FRAME` باشد. مقدار اولیه :attr:`~.FLUSH_FRAME` است که نشان میدهد فشردهساز در آغاز یک فریم جدید قرار دارد."
msgid "Create a decompressor object, which can be used to decompress data incrementally."
msgstr "یک شیء واگشا (decompressor) ایجاد کنید، که میتوان از آن برای واگشایی دادهها بهصورت تدریجی استفاده کرد."
msgid "For a more convenient way of decompressing an entire compressed stream at once, see the module-level function :func:`decompress`."
msgstr "برای روشی راحتتر جهت واگشایی از کل یک جریان فشرده بهصورت یکجا، تابع سطح ماژول :func:`decompress` را ببینید."
msgid "This class does not transparently handle inputs containing multiple compressed frames, unlike the :func:`decompress` function and :class:`ZstdFile` class. To decompress a multi-frame input, you should use :func:`decompress`, :class:`ZstdFile` if working with a :term:`file object`, or multiple :class:`!ZstdDecompressor` instances."
msgstr "این کلاس، برخلاف تابع :func:`decompress` و کلاس :class:`ZstdFile`، ورودیهای حاوی چند فریم فشرده را بهصورت شفاف مدیریت نمیکند. برای خارج کردن یک ورودی حاوی چند فریم از حالت فشرده، باید از :func:`decompress`، یا اگر با یک :term:`file object` کار میکنید از :class:`ZstdFile`، یا از چند نمونه :class:`!ZstdDecompressor` استفاده کنید."
msgid "Decompress *data* (a :term:`bytes-like object`), returning uncompressed data as bytes. Some of *data* may be buffered internally, for use in later calls to :meth:`!decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`!decompress`."
msgstr "*data* (یک :term:`شیء شبهبایت <bytes-like object>`) را واگشایی میکند و دادهی فشردهنشده را بهصورت بایت برمیگرداند. ممکن است بخشی از *data* بهصورت داخلی در حافظهی موقت ذخیره شود تا در فراخوانیهای بعدی :meth:`!decompress` استفاده شود. دادهی برگرداندهشده باید با خروجی هر یک از فراخوانیهای قبلی :meth:`!decompress` الحاق شود."
msgid "If *max_length* is non-negative, the method returns at most *max_length* bytes of decompressed data. If this limit is reached and further output can be produced, the :attr:`~.needs_input` attribute will be set to ``False``. In this case, the next call to :meth:`~.decompress` may provide *data* as ``b''`` to obtain more of the output."
msgstr "اگر *max_length* نامنفی باشد، این متد حداکثر *max_length* بایت از دادهی خارجشده از حالت فشرده را برمیگرداند. اگر این حد حاصل شود و امکان تولید خروجی بیشتر وجود داشته باشد، ویژگی :attr:`~.needs_input` روی ``False`` تنظیم میشود. در این حالت، در فراخوانی بعدی :meth:`~.decompress` میتوان *data* را بهصورت ``b''`` ارائه کرد تا بخش بیشتری از خروجی به دست آید."
msgid "If all of the input data was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute will be set to ``True``."
msgstr "اگر تمام دادههای ورودی واگشایی و برگردانده شده باشند (خواه به این دلیل که کمتر از *max_length* بایت بودند، خواه به این دلیل که *max_length* منفی بود)، ویژگی :attr:`~.needs_input` روی ``True`` تنظیم خواهد شد."
msgid "Attempting to decompress data after the end of a frame will raise a :exc:`ZstdError`. Any data found after the end of the frame is ignored and saved in the :attr:`~.unused_data` attribute."
msgstr "تلاش برای خارج کردن دادهها از حالت فشرده پس از پایان یک فریم، باعث پرتاب یک :exc:`ZstdError` میشود. هر دادهای که پس از پایان فریم یافت شود، نادیده گرفته میشود و در ویژگی :attr:`~.unused_data` ذخیره میشود."
msgid "``True`` if the end-of-stream marker has been reached."
msgstr "``True`` اگر به نشانگر پایان جریان رسیده باشد."
msgid "Data found after the end of the compressed stream."
msgstr "دادهای پس از پایان جریان فشرده یافت شد."
msgid "Before the end of the stream is reached, this will be ``b''``."
msgstr "پیش از رسیدن به پایان جریان، این ``b''`` خواهد بود."
msgid "``False`` if the :meth:`.decompress` method can provide more decompressed data before requiring new compressed input."
msgstr "``False`` اگر متد :meth:`.decompress` بتواند پیش از آنکه به ورودی فشردهی جدید نیاز داشته باشد، دادهی واگشاییشدهی بیشتری را ارائه دهد."
msgid "Zstandard dictionaries"
msgstr "دیکشنریهای Zstandard"
msgid "Train a Zstandard dictionary, returning a :class:`ZstdDict` instance. Zstandard dictionaries enable more efficient compression of smaller sizes of data, which is traditionally difficult to compress due to less repetition. If you are compressing multiple similar groups of data (such as similar files), Zstandard dictionaries can improve compression ratios and speed significantly."
msgstr "یک دیکشنری Zstandard را آموزش میدهد و یک نمونه :class:`ZstdDict` را برمیگرداند. دیکشنریهای Zstandard امکان فشردهسازی کارآمدتر دادههایی با اندازههای کوچکتر را فراهم میکنند، که بهطور سنتی به دلیل تکرار کمتر، فشردهسازی آنها دشوار است. اگر در حال فشردهسازی چندین گروه مشابه از دادهها هستید (مانند پروندههای مشابه)، دیکشنریهای Zstandard میتوانند نسبتهای فشردهسازی و سرعت را بهطور قابلتوجهی بهبود بخشند."
msgid "The *samples* argument (an iterable of :class:`bytes` objects), is the population of samples used to train the Zstandard dictionary."
msgstr "آرگومان *samples* (یک تکرارپذیر از اشیای :class:`bytes`)، مجموعهای از نمونههای استفادهشده برای آموزش دیکشنری Zstandard است."
msgid "The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. The Zstandard documentation suggests an absolute maximum of no more than 100 KB, but the maximum can often be smaller depending on the data. Larger dictionaries generally slow down compression, but improve compression ratios. Smaller dictionaries lead to faster compression, but reduce the compression ratio."
msgstr "آرگومان *dict_size*، یک عدد صحیح، حداکثر اندازهای (بر حسب بایت) است که دیکشنری Zstandard باید داشته باشد. مستندات Zstandard پیشنهاد میدهد که حداکثر مطلق بیشتر از ۱۰۰ KB نباشد، اما این حداکثر اغلب میتواند بسته به دادهها کوچکتر باشد. دیکشنریهای بزرگتر معمولاً فشردهسازی را کند میکنند، اما نسبتهای فشردهسازی را بهبود میبخشند. دیکشنریهای کوچکتر به فشردهسازی سریعتر منجر میشوند، اما نسبت فشردهسازی را کاهش میدهند."
msgid "An advanced function for converting a \"raw content\" Zstandard dictionary into a regular Zstandard dictionary. \"Raw content\" dictionaries are a sequence of bytes that do not need to follow the structure of a normal Zstandard dictionary."
msgstr "یک تابع پیشرفته برای تبدیل یک دیکشنری Zstandard با «محتوای خام» به یک دیکشنری Zstandard معمولی. دیکشنریهای «محتوای خام» دنبالهای از بایتها هستند که نیازی نیست از ساختار یک دیکشنری Zstandard عادی پیروی کنند."
msgid "The *zstd_dict* argument is a :class:`ZstdDict` instance with the :attr:`~ZstdDict.dict_content` containing the raw dictionary contents."
msgstr "آرگومان *zstd_dict* یک نمونه از :class:`ZstdDict` است که :attr:`~ZstdDict.dict_content` آن حاوی محتویات خام دیکشنری است."
msgid "The *samples* argument (an iterable of :class:`bytes` objects), contains sample data for generating the Zstandard dictionary."
msgstr "آرگومان *samples* (یک پیمایشپذیر از اشیای :class:`bytes`)، شامل دادههای نمونه برای تولید دیکشنری Zstandard است."
msgid "The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. See :func:`train_dict` for suggestions on the maximum dictionary size."
msgstr "آرگومان *dict_size*، یک عدد صحیح، حداکثر اندازهای (بر حسب بایت) است که دیکشنری Zstandard باید داشته باشد. برای پیشنهادها درباره حداکثر اندازه دیکشنری، به :func:`train_dict` مراجعه کنید."
msgid "The *level* argument (an integer) is the compression level expected to be passed to the compressors using this dictionary. The dictionary information varies for each compression level, so tuning for the proper compression level can make compression more efficient."
msgstr "آرگومان *level* (یک عدد صحیح) سطح فشردهسازی است که انتظار میرود به فشردهسازهایی که از این دیکشنری استفاده میکنند، ارسال شود. اطلاعات دیکشنری برای هر سطح فشردهسازی متفاوت است، بنابراین تنظیم برای سطح فشردهسازی مناسب میتواند فشردهسازی را کارآمدتر کند."
msgid "A wrapper around Zstandard dictionaries. Dictionaries can be used to improve the compression of many small chunks of data. Use :func:`train_dict` if you need to train a new dictionary from sample data."
msgstr "پوششی برای دیکشنریهای Zstandard. میتوان از دیکشنریها برای بهبود فشردهسازی بسیاری از تکههای کوچک داده استفاده کرد. اگر نیاز دارید یک دیکشنری جدید را از دادههای نمونه آموزش دهید، از :func:`train_dict` استفاده کنید."
msgid "The *dict_content* argument (a :term:`bytes-like object`), is the already trained dictionary information."
msgstr "آرگومان *dict_content* (یک :term:`شیء شبهبایت <bytes-like object>`)، اطلاعات دیکشنری از پیش آموزشدیدهشده است."
msgid "The *is_raw* argument, a boolean, is an advanced parameter controlling the meaning of *dict_content*. ``True`` means *dict_content* is a \"raw content\" dictionary, without any format restrictions. ``False`` means *dict_content* is an ordinary Zstandard dictionary, created from Zstandard functions, for example, :func:`train_dict` or the external :program:`zstd` CLI."
msgstr "آرگومان *is_raw*، یک بولی، پارامتر پیشرفتهای است که معنای *dict_content* را کنترل میکند. ``True`` یعنی *dict_content* یک دیکشنری «محتوای خام» است، بدون هیچ محدودیت قالبی. ``False`` یعنی *dict_content* یک دیکشنری معمولی Zstandard است که از توابع Zstandard ایجاد شده است، برای مثال، :func:`train_dict` یا CLI خارجی :program:`zstd`."
msgid "When passing a :class:`!ZstdDict` to a function, the :attr:`!as_digested_dict` and :attr:`!as_undigested_dict` attributes can control how the dictionary is loaded by passing them as the ``zstd_dict`` argument, for example, ``compress(data, zstd_dict=zd.as_digested_dict)``. Digesting a dictionary is a costly operation that occurs when loading a Zstandard dictionary. When making multiple calls to compression or decompression, passing a digested dictionary will reduce the overhead of loading the dictionary."
msgstr "هنگام ارسال یک :class:`!ZstdDict` به یک تابع، میتوانید با ارسال ویژگیهای :attr:`!as_digested_dict` و :attr:`!as_undigested_dict` بهعنوان آرگومان ``zstd_dict``، نحوه بارگذاری دیکشنری را کنترل کنید؛ برای مثال، ``compress(data, zstd_dict=zd.as_digested_dict)``. پردازش یک دیکشنری (digesting) عملیات پرهزینهای است که هنگام بارگذاری یک دیکشنری Zstandard رخ میدهد. هنگام انجام چندین فراخوانی فشردهسازی یا رفع فشردگی، ارسال یک دیکشنری پردازششده، سربار بارگذاری دیکشنری را کاهش میدهد."
msgid "Difference for compression"
msgstr "تفاوت برای فشردهسازی"
msgid "Digested dictionary"
msgstr "دیکشنری پردازششده"
msgid "Undigested dictionary"
msgstr "دیکشنری پردازشنشده"
msgid "Advanced parameters of the compressor which may be overridden by the dictionary's parameters"
msgstr "پارامترهای پیشرفتهی فشردهساز که ممکن است توسط پارامترهای دیکشنری بازنویسی شوند"
msgid "``window_log``, ``hash_log``, ``chain_log``, ``search_log``, ``min_match``, ``target_length``, ``strategy``, ``enable_long_distance_matching``, ``ldm_hash_log``, ``ldm_min_match``, ``ldm_bucket_size_log``, ``ldm_hash_rate_log``, and some non-public parameters."
msgstr "``window_log``، ``hash_log``، ``chain_log``، ``search_log``، ``min_match``، ``target_length``، ``strategy``، ``enable_long_distance_matching``، ``ldm_hash_log``، ``ldm_min_match``، ``ldm_bucket_size_log``، ``ldm_hash_rate_log`` و برخی پارامترهای غیرعمومی."
msgid "None"
msgstr "None"
msgid ":class:`!ZstdDict` internally caches the dictionary"
msgstr ":class:`!ZstdDict` دیکشنری را بهصورت داخلی در نهانگاه ذخیره میکند"
msgid "Yes. It's faster when loading a digested dictionary again with the same compression level."
msgstr "بله. بارگذاری مجدد یک دیکشنری پردازششده با همان سطح فشردهسازی، سریعتر است."
msgid "No. If you wish to load an undigested dictionary multiple times, consider reusing a compressor object."
msgstr "خیر. اگر میخواهید یک دیکشنری پردازشنشده را چندین بار بارگذاری کنید، استفادهی مجدد از یک شیء فشردهساز را در نظر بگیرید."
msgid "If passing a :class:`!ZstdDict` without any attribute, an undigested dictionary is passed by default when compressing and a digested dictionary is generated if necessary and passed by default when decompressing."
msgstr "اگر یک :class:`!ZstdDict` بدون هیچ ویژگیای ارسال شود، هنگام فشردهسازی بهطور پیشفرض یک دیکشنری پردازشنشده (undigested) ارسال میشود و هنگام واگشایی، در صورت نیاز یک دیکشنری پردازششده (digested) تولید و بهطور پیشفرض ارسال میشود."
msgid "The content of the Zstandard dictionary, a ``bytes`` object. It's the same as the *dict_content* argument in the ``__init__`` method. It can be used with other programs, such as the ``zstd`` CLI program."
msgstr "محتوای دیکشنری Zstandard، یک شیء ``bytes``. این همان آرگومان *dict_content* در متد ``__init__`` است. میتوان از آن با برنامههای دیگر، مانند برنامهی خط فرمان ``zstd`` استفاده کرد."
msgid "Identifier of the Zstandard dictionary, a non-negative int value."
msgstr "شناسهی دیکشنری Zstandard، یک مقدار عدد صحیح غیرمنفی."
msgid "Non-zero means the dictionary is ordinary, created by Zstandard functions and following the Zstandard format."
msgstr "غیرصفر به این معناست که دیکشنری معمولی است، توسط توابع Zstandard ایجاد شده و از قالب Zstandard پیروی میکند."
msgid "``0`` means a \"raw content\" dictionary, free of any format restriction, used for advanced users."
msgstr "``0`` به معنای یک دیکشنری «محتوای خام» است، بدون هیچ محدودیت قالبی، و برای کاربران پیشرفته در نظر گرفته شده است."
msgid "The meaning of ``0`` for :attr:`!ZstdDict.dict_id` is different from the ``dictionary_id`` attribute to the :func:`get_frame_info` function."
msgstr "معنای ``0`` برای :attr:`!ZstdDict.dict_id` با ویژگی ``dictionary_id`` در تابع :func:`get_frame_info` متفاوت است."
msgid "Load as a digested dictionary."
msgstr "بهصورت یک دیکشنری پردازششده بارگذاری کنید."
msgid "Load as an undigested dictionary."
msgstr "بهصورت یک دیکشنری پردازشنشده بارگذاری شود."
msgid "Advanced parameter control"
msgstr "کنترل پیشرفته پارامتر"
msgid "An :class:`~enum.IntEnum` containing the advanced compression parameter keys that can be used when compressing data."
msgstr "یک :class:`~enum.IntEnum` شامل کلیدهای پارامترهای فشردهسازی پیشرفته است که میتوان هنگام فشردهسازی دادهها از آنها استفاده کرد."
msgid "The :meth:`~.bounds` method can be used on any attribute to get the valid values for that parameter."
msgstr "میتوان از متد :meth:`~.bounds` برای هر ویژگی استفاده کرد تا مقادیر معتبر آن پارامتر به دست آید."
msgid "Parameters are optional; any omitted parameter will have its value selected automatically."
msgstr "پارامترها اختیاری هستند؛ مقدار هر پارامتری که حذف شود، بهطور خودکار انتخاب میشود."
msgid "Example getting the lower and upper bound of :attr:`~.compression_level`::"
msgstr "مثال دریافت کران پایین و بالای :attr:`~.compression_level`::"
msgid "lower, upper = CompressionParameter.compression_level.bounds()"
msgstr "lower, upper = CompressionParameter.compression_level.bounds()"
msgid "Example setting the :attr:`~.window_log` to the maximum size::"
msgstr "مثال تنظیم :attr:`~.window_log` بر روی بیشترین اندازه::"
msgid ""
"_lower, upper = CompressionParameter.window_log.bounds()\n"
"options = {CompressionParameter.window_log: upper}\n"
"compress(b'venezuelan beaver cheese', options=options)"
msgstr ""
"_lower, upper = CompressionParameter.window_log.bounds()\n"
"options = {CompressionParameter.window_log: upper}\n"
"compress(b'venezuelan beaver cheese', options=options)"
msgid "Return the tuple of int bounds, ``(lower, upper)``, of a compression parameter. This method should be called on the attribute you wish to retrieve the bounds of. For example, to get the valid values for :attr:`~.compression_level`, one may check the result of ``CompressionParameter.compression_level.bounds()``."
msgstr "تاپل کرانههای عدد صحیح یک پارامتر فشردهسازی، ``(lower, upper)``، را برمیگرداند. این متد باید روی ویژگیای فراخوانی شود که میخواهید کرانههای آن را بازیابی کنید. برای مثال، برای بهدست آوردن مقادیر معتبر :attr:`~.compression_level`، میتوانید نتیجهی ``CompressionParameter.compression_level.bounds()`` را بررسی کنید."
msgid "Both the lower and upper bounds are inclusive."
msgstr "هر دو کران پایین و بالا شامل میشوند."
msgid "A high-level means of setting other compression parameters that affect the speed and ratio of compressing data."
msgstr "یک راهکار سطح بالا برای تنظیم سایر پارامترهای فشردهسازی که بر سرعت و نسبت فشردهسازی دادهها اثر میگذارند."
msgid "Regular compression levels are greater than ``0``. Values greater than ``20`` are considered \"ultra\" compression and require more memory than other levels. Negative values can be used to trade off faster compression for worse compression ratios."
msgstr "سطحهای فشردهسازی معمولی بزرگتر از ``0`` هستند. مقادیر بزرگتر از ``20`` بهعنوان فشردهسازی «فوقالعاده» (ultra) در نظر گرفته میشوند و به حافظه بیشتری نسبت به سایر سطحها نیاز دارند. میتوان از مقادیر منفی برای به دست آوردن فشردهسازی سریعتر به قیمت نسبتهای فشردهسازی بدتر استفاده کرد."
msgid "Setting the level to zero uses :attr:`COMPRESSION_LEVEL_DEFAULT`."
msgstr "با تنظیم سطح روی ۰، از :attr:`COMPRESSION_LEVEL_DEFAULT` استفاده میشود."
msgid "Maximum allowed back-reference distance the compressor can use when compressing data, expressed as power of two, ``1 << window_log`` bytes. This parameter greatly influences the memory usage of compression. Higher values require more memory but gain better compression values."
msgstr "حداکثر فاصلهی مجاز ارجاع به عقب (back-reference) که فشردهساز میتواند هنگام فشردهسازی دادهها از آن استفاده کند، به صورت توانی از دو، ``1 << window_log`` بایت. این پارامتر تا حد زیادی بر مصرف حافظهی فشردهسازی تأثیر میگذارد. مقادیر بالاتر به حافظهی بیشتری نیاز دارند، اما مقادیر فشردهسازی بهتری به دست میدهند."
msgid "A value of zero causes the value to be selected automatically."
msgstr "مقدار صفر باعث میشود مقدار بهصورت خودکار انتخاب شود."
msgid "Size of the initial probe table, as a power of two. The resulting memory usage is ``1 << (hash_log+2)`` bytes. Larger tables improve compression ratio of strategies <= :attr:`~Strategy.dfast`, and improve compression speed of strategies > :attr:`~Strategy.dfast`."
msgstr "اندازهی جدول پروب اولیه (probe table)، بهصورت توانی از ۲. میزان مصرف حافظهی حاصل، ``1 << (hash_log+2)`` بایت است. جدولهای بزرگتر، نسبت فشردهسازی برای راهبردهای <= :attr:`~Strategy.dfast` و سرعت فشردهسازی برای راهبردهای > :attr:`~Strategy.dfast` را بهبود میدهند."
msgid "Size of the multi-probe search table, as a power of two. The resulting memory usage is ``1 << (chain_log+2)`` bytes. Larger tables result in better and slower compression. This parameter has no effect for the :attr:`~Strategy.fast` strategy. It's still useful when using :attr:`~Strategy.dfast` strategy, in which case it defines a secondary probe table."
msgstr "اندازهی جدول جستوجوی multi-probe، بهصورت توانی از ۲. میزان حافظهی مصرفی حاصل ``1 << (chain_log+2)`` بایت است. جدولهای بزرگتر منجر به فشردهسازی بهتر و کندتر میشوند. این پارامتر برای راهبرد :attr:`~Strategy.fast` تأثیری ندارد. این پارامتر همچنان هنگام استفاده از راهبرد :attr:`~Strategy.dfast` مفید است، که در این حالت یک جدول probe ثانویه را تعریف میکند."
msgid "Number of search attempts, as a power of two. More attempts result in better and slower compression. This parameter is useless for :attr:`~Strategy.fast` and :attr:`~Strategy.dfast` strategies."
msgstr "تعداد تلاشهای جستوجو، بهصورت توانی از ۲. تلاشهای بیشتر منجر به فشردهسازی بهتر و کندتر میشود. این پارامتر برای راهبردهای :attr:`~Strategy.fast` و :attr:`~Strategy.dfast` بیفایده است."
msgid "Minimum size of searched matches. Larger values increase compression and decompression speed, but decrease ratio. Note that Zstandard can still find matches of smaller size, it just tweaks its search algorithm to look for this size and larger. For all strategies < :attr:`~Strategy.btopt`, the effective minimum is ``4``; for all strategies > :attr:`~Strategy.fast`, the effective maximum is ``6``."
msgstr "حداقل اندازهی تطابقهای مورد جستجو. مقادیر بزرگتر سرعت فشردهسازی و واگشایی را افزایش میدهند، اما نسبت فشردهسازی را کاهش میدهند. توجه داشته باشید که Zstandard همچنان میتواند تطابقهایی با اندازهی کوچکتر پیدا کند، فقط الگوریتم جستجوی خود را تنظیم میکند تا به دنبال این اندازه و اندازههای بزرگتر بگردد. برای همهی راهبردهای کوچکتر از :attr:`~Strategy.btopt`، حداقل مؤثر ``4`` است؛ برای همهی راهبردهای بزرگتر از :attr:`~Strategy.fast`، حداکثر مؤثر ``6`` است."
msgid "The impact of this field depends on the selected :class:`Strategy`."
msgstr "تأثیر این فیلد به :class:`Strategy` انتخابشده بستگی دارد."
msgid "For strategies :attr:`~Strategy.btopt`, :attr:`~Strategy.btultra` and :attr:`~Strategy.btultra2`, the value is the length of a match considered \"good enough\" to stop searching. Larger values make compression ratios better, but compresses slower."
msgstr "برای راهبردهای :attr:`~Strategy.btopt`، :attr:`~Strategy.btultra` و :attr:`~Strategy.btultra2`، مقدار، طول تطابقی است که «بهاندازه کافی خوب» برای توقف جستجو در نظر گرفته میشود. مقادیر بزرگتر نسبتهای فشردهسازی را بهتر میکنند، اما فشردهسازی کندتر میشود."
msgid "For strategy :attr:`~Strategy.fast`, it is the distance between match sampling. Larger values make compression faster, but with a worse compression ratio."
msgstr "برای راهبرد :attr:`~Strategy.fast`، این فاصله بین نمونهبرداری تطابق است. مقادیر بزرگتر فشردهسازی را سریعتر میکنند، اما با نسبت فشردهسازی بدتر."
msgid "The higher the value of selected strategy, the more complex the compression technique used by zstd, resulting in higher compression ratios but slower compression."
msgstr "هرچه مقدار راهبرد انتخابشده بالاتر باشد، روش فشردهسازی استفادهشده توسط zstd پیچیدهتر میشود و به نسبتهای فشردهسازی بالاتر اما فشردهسازی کندتر منجر میشود."
msgid ":class:`Strategy`"
msgstr ":class:`Strategy`"
msgid "Long distance matching can be used to improve compression for large inputs by finding large matches at greater distances. It increases memory usage and window size."
msgstr "تطبیق با فاصلهی طولانی (long distance matching) میتواند با یافتن تطبیقهای بزرگ در فاصلههای دورتر، فشردهسازی ورودیهای بزرگ را بهبود بخشد. این قابلیت مصرف حافظه و اندازهی پنجره را افزایش میدهد."
msgid "``True`` or ``1`` enable long distance matching while ``False`` or ``0`` disable it."
msgstr "``True`` یا ``1`` تطبیق با فاصلهی طولانی (long distance matching) را فعال میکند، در حالی که ``False`` یا ``0`` آن را غیرفعال میکند."
msgid "Enabling this parameter increases default :attr:`~CompressionParameter.window_log` to 128 MiB except when expressly set to a different value. This setting is enabled by default if :attr:`!window_log` >= 128 MiB and the compression strategy >= :attr:`~Strategy.btopt` (compression level 16+)."
msgstr "فعالسازی این پارامتر، مقدار پیشفرض :attr:`~CompressionParameter.window_log` را به ۱۲۸ MiB افزایش میدهد، مگر آنکه صریحاً مقدار دیگری برای آن تنظیم شده باشد. این تنظیم در صورتی بهصورت پیشفرض فعال میشود که :attr:`!window_log` >= ۱۲۸ MiB و راهبرد فشردهسازی >= :attr:`~Strategy.btopt` باشد (سطح فشردهسازی ۱۶+)."
msgid "Size of the table for long distance matching, as a power of two. Larger values increase memory usage and compression ratio, but decrease compression speed."
msgstr "اندازهی جدول برای تطبیق فاصلهی طولانی، بهصورت توانی از ۲. مقادیر بزرگتر مصرف حافظه و نسبت فشردهسازی را افزایش میدهند، اما سرعت فشردهسازی را کاهش میدهند."
msgid "Minimum match size for long distance matcher. Larger or too small values can often decrease the compression ratio."
msgstr "حداقل اندازهی تطبیق برای تطبیقدهندهی فاصلهی بلند (long distance matcher). مقادیر بزرگتر یا بیش از حد کوچک اغلب میتوانند نسبت فشردهسازی را کاهش دهند."
msgid "Log size of each bucket in the long distance matcher hash table for collision resolution. Larger values improve collision resolution but decrease compression speed."
msgstr "لگاریتم اندازهی هر سطل از جدول هش تطبیقگر فاصلهی بلند (long distance matcher) برای حل برخورد. مقادیر بزرگتر، حل برخورد را بهبود میبخشند اما سرعت فشردهسازی را کاهش میدهند."
msgid "Frequency of inserting/looking up entries into the long distance matcher hash table. Larger values improve compression speed. Deviating far from the default value will likely result in a compression ratio decrease."
msgstr "بسامد درج/جستوجوی آیتمها در جدول هش تطبیقگر فاصله بلند (long distance matcher). مقادیر بزرگتر سرعت فشردهسازی را بهبود میبخشند. انحراف زیاد از مقدار پیشفرض احتمالاً باعث کاهش نسبت فشردهسازی میشود."
msgid "Write the size of the data to be compressed into the Zstandard frame header when known prior to compressing."
msgstr "در صورتی که اندازهی دادههایی که باید فشرده شوند پیش از فشردهسازی مشخص باشد، آن را در سرآیند فریم Zstandard بنویسید."
msgid "This flag only takes effect under the following scenarios:"
msgstr "این پرچم تنها در سناریوهای زیر اعمال میشود:"
msgid "Calling :func:`compress` for one-shot compression"
msgstr "فراخوانی :func:`compress` برای فشردهسازی یکباره"
msgid "Providing all of the data to be compressed in the frame in a single :meth:`ZstdCompressor.compress` call, with the :attr:`ZstdCompressor.FLUSH_FRAME` mode."
msgstr "ارائهی تمام دادههایی که باید در فریمفشرده شوند، در یک فراخوانی :meth:`ZstdCompressor.compress`، با حالت :attr:`ZstdCompressor.FLUSH_FRAME`."
msgid "Calling :meth:`ZstdCompressor.set_pledged_input_size` with the exact amount of data that will be provided to the compressor prior to any calls to :meth:`ZstdCompressor.compress` for the current frame. :meth:`!ZstdCompressor.set_pledged_input_size` must be called for each new frame."
msgstr "فراخوانی :meth:`ZstdCompressor.set_pledged_input_size` با مقدار دقیق دادهای که برای فریم جاری به فشردهساز ارائه خواهد شد، پیش از هر فراخوانی :meth:`ZstdCompressor.compress`. :meth:`!ZstdCompressor.set_pledged_input_size` باید برای هر فریم جدید فراخوانی شود."
msgid "All other compression calls may not write the size information into the frame header."
msgstr "تمام سایر فراخوانیهای فشردهسازی ممکن است اطلاعات اندازه را در سرآیند فریم (frame header) ننویسند."
msgid "``True`` or ``1`` enable the content size flag while ``False`` or ``0`` disable it."
msgstr "``True`` یا ``1`` پرچم اندازهی محتوا را فعال میکند، در حالی که ``False`` یا ``0`` آن را غیرفعال میکند."
msgid "A four-byte checksum using XXHash64 of the uncompressed content is written at the end of each frame. Zstandard's decompression code verifies the checksum. If there is a mismatch a :class:`ZstdError` exception is raised."
msgstr "یک جمعآزما ۴ بایتی از محتوای فشردهنشده با استفاده از XXHash64 در پایان هر فریم نوشته میشود. کد واگشایی Zstandard این جمعآزما را تأیید میکند. در صورت عدم تطابق، استثنای :class:`ZstdError` پرتاب میشود."
msgid "``True`` or ``1`` enable checksum generation while ``False`` or ``0`` disable it."
msgstr "``True`` یا ``1`` تولید جمعآزما (checksum) را فعال میکند، در حالی که ``False`` یا ``0`` آن را غیرفعال میکند."
msgid "When compressing with a :class:`ZstdDict`, the dictionary's ID is written into the frame header."
msgstr "هنگام فشردهسازی با یک :class:`ZstdDict`، شناسهی دیکشنری در سرآیند فریم (frame header) نوشته میشود."
msgid "``True`` or ``1`` enable storing the dictionary ID while ``False`` or ``0`` disable it."
msgstr "``True`` یا ``1`` ذخیرهسازی شناسه دیکشنری را فعال میکند، در حالی که ``False`` یا ``0`` آن را غیرفعال میکند."
msgid "Select how many threads will be spawned to compress in parallel. When :attr:`!nb_workers` > 0, enables multi-threaded compression, a value of ``1`` means \"one-thread multi-threaded mode\". More workers improve speed, but also increase memory usage and slightly reduce compression ratio."
msgstr "تعداد نخهایی را که برای فشردهسازی بهصورت موازی ایجاد خواهند شد، انتخاب کنید. هنگامی که :attr:`!nb_workers` > ۰ باشد، فشردهسازی چند نخی فعال میشود؛ مقدار ``1`` به معنای «حالت چند نخی با یک نخ» است. کارگرهای بیشتر سرعت را بهبود میبخشند، اما مصرف حافظه را نیز افزایش میدهند و نسبت فشردهسازی را کمی کاهش میدهند."
msgid "A value of zero disables multi-threading."
msgstr "مقدار صفر، چندنخی را غیرفعال میکند."
msgid "Size of a compression job, in bytes. This value is enforced only when :attr:`~CompressionParameter.nb_workers` >= 1. Each compression job is completed in parallel, so this value can indirectly impact the number of active threads."
msgstr "اندازهی یک کار فشردهسازی، بر حسب بایت. این مقدار تنها زمانی اعمال میشود که :attr:`~CompressionParameter.nb_workers` بزرگتر یا مساوی ۱ باشد. هر کار فشردهسازی بهصورت موازی تکمیل میشود، بنابراین این مقدار میتواند بهطور غیرمستقیم بر تعداد نخهای فعال تأثیر بگذارد."
msgid "Sets how much data is reloaded from previous jobs (threads) for new jobs to be used by the look behind window during compression. This value is only used when :attr:`~CompressionParameter.nb_workers` >= 1. Acceptable values vary from 0 to 9."
msgstr "تعیین میکند که چه مقدار داده از کارهای پیشین (نخها) برای کارهای جدید بارگذاری مجدد میشود تا در حین فشردهسازی توسط پنجرهی نگاه به عقب مورد استفاده قرار گیرد. این مقدار فقط زمانی استفاده میشود که :attr:`~CompressionParameter.nb_workers` بزرگتر یا مساوی ۱ باشد. مقادیر قابلقبول از ۰ تا ۹ متغیر است."
msgid "0 means dynamically set the overlap amount"
msgstr "۰ به این معناست که میزان همپوشانی بهصورت پویا تنظیم میشود"
msgid "1 means no overlap"
msgstr "۱ به معنای عدم همپوشانی است"
msgid "9 means use a full window size from the previous job"
msgstr "۹ یعنی استفاده از اندازهی کامل پنجره (window size) از کار پیشین"
msgid "Each increment halves/doubles the overlap size. \"8\" means an overlap of ``window_size/2``, \"7\" means an overlap of ``window_size/4``, etc."
msgstr "هر افزایش، اندازه همپوشانی را نصف/دو برابر میکند. «۸» به معنای همپوشانی ``window_size/2`` است، «۷» به معنای همپوشانی ``window_size/4`` است، و غیره."
msgid "An :class:`~enum.IntEnum` containing the advanced decompression parameter keys that can be used when decompressing data. Parameters are optional; any omitted parameter will have its value selected automatically."
msgstr "یک :class:`~enum.IntEnum` شامل کلیدهای پارامترهای پیشرفتهی واگشایی که میتوان هنگام واگشایی دادهها از آنها استفاده کرد. پارامترها اختیاری هستند؛ مقدار هر پارامتری که ارائه نشود، بهطور خودکار انتخاب میشود."
msgid "Example setting the :attr:`~.window_log_max` to the maximum size::"
msgstr "مثالی برای تنظیم :attr:`~.window_log_max` روی بیشینه اندازه::"
msgid ""
"data = compress(b'Some very long buffer of bytes...')\n"
"\n"
"_lower, upper = DecompressionParameter.window_log_max.bounds()\n"
"\n"
"options = {DecompressionParameter.window_log_max: upper}\n"
"decompress(data, options=options)"
msgstr ""
"data = compress(b'Some very long buffer of bytes...')\n"
"\n"
"_lower, upper = DecompressionParameter.window_log_max.bounds()\n"
"\n"
"options = {DecompressionParameter.window_log_max: upper}\n"
"decompress(data, options=options)"
msgid "Return the tuple of int bounds, ``(lower, upper)``, of a decompression parameter. This method should be called on the attribute you wish to retrieve the bounds of."
msgstr "تاپل کرانهای عدد صحیح، ``(lower, upper)``، برای یک پارامتر از حالت فشرده خارج کردن را برمیگرداند. این متد باید بر روی ویژگیای فراخوانی شود که میخواهید کرانهای آن را بازیابی کنید."
msgid "The base-two logarithm of the maximum size of the window used during decompression. This can be useful to limit the amount of memory used when decompressing data. A larger maximum window size leads to faster decompression."
msgstr "لگاریتم مبنای ۲ حداکثر اندازهی پنجرهی استفادهشده در حین واگشایی. این میتواند برای محدود کردن مقدار حافظهی استفادهشده هنگام واگشایی دادهها مفید باشد. بزرگتر بودن حداکثر اندازهی پنجره باعث واگشایی سریعتر میشود."
msgid "An :class:`~enum.IntEnum` containing strategies for compression. Higher-numbered strategies correspond to more complex and slower compression."
msgstr "یک :class:`~enum.IntEnum` که شامل راهبردهایی برای فشردهسازی است. راهبردهای با شماره بالاتر، فشردهسازی پیچیدهتر و کندتری دارند."
msgid "The values of attributes of :class:`!Strategy` are not necessarily stable across zstd versions. Only the ordering of the attributes may be relied upon. The attributes are listed below in order."
msgstr "مقادیر ویژگیهای :class:`!Strategy` لزوماً در نسخههای مختلف zstd پایدار نیستند. تنها میتوان به ترتیب ویژگیها اتکا کرد. ویژگیها در زیر به ترتیب فهرست شدهاند."
msgid "The following strategies are available:"
msgstr "راهبردهای زیر در دسترس هستند:"
msgid "Miscellaneous"
msgstr "متفرقه"
msgid "Retrieve a :class:`FrameInfo` object containing metadata about a Zstandard frame. Frames contain metadata related to the compressed data they hold."
msgstr "یک شیء :class:`FrameInfo` حاوی فراداده در مورد یک فریم Zstandard را بازیابی کنید. فریمها حاوی فراداده مربوط به دادههای فشردهای هستند که در خود نگه میدارند."
msgid "Metadata related to a Zstandard frame."
msgstr "فرادادهی مربوط به یک فریم Zstandard."
msgid "The size of the decompressed contents of the frame."
msgstr "اندازهی محتوای غیرفشردهی فریم."
msgid "An integer representing the Zstandard dictionary ID needed for decompressing the frame. ``0`` means the dictionary ID was not recorded in the frame header. This may mean that a Zstandard dictionary is not needed, or that the ID of a required dictionary was not recorded."
msgstr "یک عدد صحیح که شناسهی دیکشنری Zstandard موردنیاز برای واگشایی فریم را نشان میدهد. ``0`` یعنی شناسهی دیکشنری در سرآیند فریم ثبت نشده است. این ممکن است به این معنا باشد که به دیکشنری Zstandard نیازی نیست، یا شناسهی یک دیکشنری موردنیاز ثبت نشده است."
msgid "The default compression level for Zstandard: ``3``."
msgstr "سطح فشردهسازی پیشفرض برای Zstandard: ``3``."
msgid "Version number of the runtime zstd library as a tuple of integers (major, minor, release)."
msgstr "شماره نسخه کتابخانه zstd در رانتایم بهصورت یک تاپل از اعداد صحیح (major, minor, release)."
msgid "Examples"
msgstr "مثالها"
msgid "Reading in a compressed file:"
msgstr "خواندن از یک پرونده فشرده:"
msgid ""
"from compression import zstd\n"
"\n"
"with zstd.open(\"file.zst\") as f:\n"
" file_content = f.read()"
msgstr ""
"from compression import zstd\n"
"\n"
"with zstd.open(\"file.zst\") as f:\n"
" file_content = f.read()"
msgid "Creating a compressed file:"
msgstr "ایجاد یک پرونده فشرده:"
msgid ""
"from compression import zstd\n"
"\n"
"data = b\"Insert Data Here\"\n"
"with zstd.open(\"file.zst\", \"w\") as f:\n"
" f.write(data)"
msgstr ""
"from compression import zstd\n"
"\n"
"data = b\"Insert Data Here\"\n"
"with zstd.open(\"file.zst\", \"w\") as f:\n"
" f.write(data)"
msgid "Compressing data in memory:"
msgstr "فشردهسازی دادهها در حافظه:"
msgid ""
"from compression import zstd\n"
"\n"
"data_in = b\"Insert Data Here\"\n"
"data_out = zstd.compress(data_in)"
msgstr ""
"from compression import zstd\n"
"\n"
"data_in = b\"Insert Data Here\"\n"
"data_out = zstd.compress(data_in)"
msgid "Incremental compression:"
msgstr "فشردهسازی تدریجی:"
msgid ""
"from compression import zstd\n"
"\n"
"comp = zstd.ZstdCompressor()\n"
"out1 = comp.compress(b\"Some data\\n\")\n"
"out2 = comp.compress(b\"Another piece of data\\n\")\n"
"out3 = comp.compress(b\"Even more data\\n\")\n"
"out4 = comp.flush()\n"
"# Concatenate all the partial results:\n"
"result = b\"\".join([out1, out2, out3, out4])"
msgstr ""
"from compression import zstd\n"
"\n"
"comp = zstd.ZstdCompressor()\n"
"out1 = comp.compress(b\"Some data\\n\")\n"
"out2 = comp.compress(b\"Another piece of data\\n\")\n"
"out3 = comp.compress(b\"Even more data\\n\")\n"
"out4 = comp.flush()\n"
"# Concatenate all the partial results:\n"
"result = b\"\".join([out1, out2, out3, out4])"
msgid "Writing compressed data to an already-open file:"
msgstr "نوشتن دادههای فشرده در پروندهای که از قبل باز است:"
msgid ""
"from compression import zstd\n"
"\n"
"with open(\"myfile\", \"wb\") as f:\n"
" f.write(b\"This data will not be compressed\\n\")\n"
" with zstd.open(f, \"w\") as zstf:\n"
" zstf.write(b\"This *will* be compressed\\n\")\n"
" f.write(b\"Not compressed\\n\")"
msgstr ""
"from compression import zstd\n"
"\n"
"with open(\"myfile\", \"wb\") as f:\n"
" f.write(b\"This data will not be compressed\\n\")\n"
" with zstd.open(f, \"w\") as zstf:\n"
" zstf.write(b\"This *will* be compressed\\n\")\n"
" f.write(b\"Not compressed\\n\")"
msgid "Creating a compressed file using compression parameters:"
msgstr "ایجاد یک پرونده فشرده با استفاده از پارامترهای فشردهسازی:"
msgid ""
"from compression import zstd\n"
"\n"
"options = {\n"
" zstd.CompressionParameter.checksum_flag: 1\n"
"}\n"
"with zstd.open(\"file.zst\", \"w\", options=options) as f:\n"
" f.write(b\"Mind if I squeeze in?\")"
msgstr ""
"from compression import zstd\n"
"\n"
"options = {\n"
" zstd.CompressionParameter.checksum_flag: 1\n"
"}\n"
"with zstd.open(\"file.zst\", \"w\", options=options) as f:\n"
" f.write(b\"Mind if I squeeze in?\")"