- Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathunicode.po
2291 lines (1951 loc) · 89.8 KB
/
unicode.po
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
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2025, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# 秘湯 <xwhhsprings@gmail.com>, 2023
# Arihiro TAKASE, 2023
# Taichi Haradaguchi, 2024
# tomo, 2024
# 石井明久, 2024
#
#,fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-04-18 14:18+0000\n"
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
"Last-Translator: 石井明久, 2024\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#:../../c-api/unicode.rst:6
msgid"Unicode Objects and Codecs"
msgstr"Unicode オブジェクトと codec"
#:../../c-api/unicode.rst:12
msgid"Unicode Objects"
msgstr"Unicode オブジェクト"
#:../../c-api/unicode.rst:14
msgid""
"Since the implementation of :pep:`393` in Python 3.3, Unicode objects "
"internally use a variety of representations, in order to allow handling the "
"complete range of Unicode characters while staying memory efficient. There "
"are special cases for strings where all code points are below 128, 256, or "
"65536; otherwise, code points must be below 1114112 (which is the full "
"Unicode range)."
msgstr""
"Python3.3 の :pep:`393` 実装から、メモリ効率を維持しながらUnicode文字の完全な"
"範囲を扱えるように、Unicodeオブジェクトは内部的に多様な表現形式を用いていま"
"す。すべてのコードポイントが128、256または65536以下の文字列に対して特別なケー"
"スが存在しますが、それ以外ではコードポイントは1114112以下 (これはすべての"
"Unicode範囲です) でなければなりません。"
#:../../c-api/unicode.rst:20
msgid""
"UTF-8 representation is created on demand and cached in the Unicode object."
msgstr""
#:../../c-api/unicode.rst:23
msgid""
"The :c:type:`Py_UNICODE` representation has been removed since Python 3.12 "
"with deprecated APIs. See :pep:`623` for more information."
msgstr""
#:../../c-api/unicode.rst:29
msgid"Unicode Type"
msgstr"Unicode 型"
#:../../c-api/unicode.rst:31
msgid""
"These are the basic Unicode object types used for the Unicode implementation "
"in Python:"
msgstr""
"以下は Python の Unicode 実装に用いられている基本 Unicode オブジェクト型です:"
#:../../c-api/unicode.rst:38
msgid""
"These types are typedefs for unsigned integer types wide enough to contain "
"characters of 32 bits, 16 bits and 8 bits, respectively. When dealing with "
"single Unicode characters, use :c:type:`Py_UCS4`."
msgstr""
"これらの型は、それぞれ、32ビット、16ビット、そして8ビットの文字を保持するのに"
"充分な幅を持つ符号なしの整数型のtypedefです。単一のUnicode文字を扱う場合"
"は、 :c:type:`Py_UCS4` を用いてください。"
#:../../c-api/unicode.rst:47
msgid""
"This is a typedef of :c:type:`wchar_t`, which is a 16-bit type or 32-bit "
"type depending on the platform."
msgstr""
"これは、:c:type:`wchar_t` のtypedef で、プラットフォームに依存して16ビットか"
"32ビットの型になります。"
#:../../c-api/unicode.rst:50
msgid""
"In previous versions, this was a 16-bit type or a 32-bit type depending on "
"whether you selected a \"narrow\" or \"wide\" Unicode version of Python at "
"build time."
msgstr""
"以前のバージョンでは、Pythonをビルドした際に \"narrow\" または \"wide\" "
"Unicode バージョンのどちらを選択したかによって、 16ビットか32ビットのどちらか"
"の型になっていました。"
#:../../c-api/unicode.rst:62
msgid""
"These subtypes of :c:type:`PyObject` represent a Python Unicode object. In "
"almost all cases, they shouldn't be used directly, since all API functions "
"that deal with Unicode objects take and return :c:type:`PyObject` pointers."
msgstr""
"これらの :c:type:`PyObject` のサブタイプは Python Unicode オブジェクトを表現"
"します。\n"
"Unicode オブジェクトを扱う全ての API 関数は :c:type:`PyObject` へのポインタを"
"受け取って PyObject へのポインタを返すので、ほとんどの場合、これらの型を直接"
"使うべきではありません。"
#:../../c-api/unicode.rst:71
msgid""
"This instance of :c:type:`PyTypeObject` represents the Python Unicode type. "
"It is exposed to Python code as ``str``."
msgstr""
"この :c:type:`PyTypeObject` のインスタンスは、Python Unicode型を表します。こ"
"れは、Pythonコードに ``str`` として露出されます。"
#:../../c-api/unicode.rst:75
msgid""
"The following APIs are C macros and static inlined functions for fast checks "
"and access to internal read-only data of Unicode objects:"
msgstr""
#:../../c-api/unicode.rst:80
msgid""
"Return true if the object *obj* is a Unicode object or an instance of a "
"Unicode subtype. This function always succeeds."
msgstr""
"オブジェクト *obj* が Unicode オブジェクトか Unicode 型のサブタイプのインスタ"
"ンスである場合に真を返します。この関数は常に成功します。"
#:../../c-api/unicode.rst:86
msgid""
"Return true if the object *obj* is a Unicode object, but not an instance of "
"a subtype. This function always succeeds."
msgstr""
"オブジェクト *obj* が Unicode オブジェクトだがサブタイプのインスタンスでない"
"場合に真を返します。この関数は常に成功します。"
#:../../c-api/unicode.rst:92
msgid"Returns ``0``. This API is kept only for backward compatibility."
msgstr""
#:../../c-api/unicode.rst:96
msgid"This API does nothing since Python 3.12."
msgstr""
#:../../c-api/unicode.rst:102
msgid""
"Return the length of the Unicode string, in code points. *unicode* has to "
"be a Unicode object in the \"canonical\" representation (not checked)."
msgstr""
"Unicode 文字列のコードポイントでの長さを返します。\n"
"*unicode* は \"正統な\" 表現形式の Unicode オブジェクトでなければなりません "
"(ただしチェックはしません)。"
#:../../c-api/unicode.rst:112
msgid""
"Return a pointer to the canonical representation cast to UCS1, UCS2 or UCS4 "
"integer types for direct character access. No checks are performed if the "
"canonical representation has the correct character size; use :c:func:"
"`PyUnicode_KIND` to select the right function."
msgstr""
"文字に直接アクセスするために、 UCS1, UCS2, UCS4 のいずれかの整数型にキャスト"
"された正統な表現形式へのポインタを返します。\n"
"正統な表現が適正な文字サイズになっているかどうかのチェックはしません;\n"
":c:func:`PyUnicode_KIND` を使って正しい関数を選んでください。"
#:../../c-api/unicode.rst:124
msgid"Return values of the :c:func:`PyUnicode_KIND` macro."
msgstr":c:func:`PyUnicode_KIND` マクロの返り値です。"
#:../../c-api/unicode.rst:128
msgid"``PyUnicode_WCHAR_KIND`` has been removed."
msgstr"``PyUnicode_WCHAR_KIND`` は削除されました。"
#:../../c-api/unicode.rst:134
msgid""
"Return one of the PyUnicode kind constants (see above) that indicate how "
"many bytes per character this Unicode object uses to store its data. "
"*unicode* has to be a Unicode object in the \"canonical\" representation "
"(not checked)."
msgstr""
"この Unicode がデータを保存するのに1文字あたり何バイト使っているかを示す "
"PyUnicode 種別の定数 (上を読んでください) のうち1つを返します。\n"
"*unicode* は \"正統な\" 表現形式の Unicode オブジェクトでなければなりません "
"(ただしチェックはしません)。"
#:../../c-api/unicode.rst:143
msgid""
"Return a void pointer to the raw Unicode buffer. *unicode* has to be a "
"Unicode object in the \"canonical\" representation (not checked)."
msgstr""
"生の Unicode バッファへの void ポインタを返します。\n"
"*unicode* は \"正統な\" 表現形式の Unicode オブジェクトでなければなりません "
"(ただしチェックはしません)。"
#:../../c-api/unicode.rst:152
msgid""
"Write into a canonical representation *data* (as obtained with :c:func:"
"`PyUnicode_DATA`). This function performs no sanity checks, and is intended "
"for usage in loops. The caller should cache the *kind* value and *data* "
"pointer as obtained from other calls. *index* is the index in the string "
"(starts at 0) and *value* is the new code point value which should be "
"written to that location."
msgstr""
"正統な表現形式となっている (:c:func:`PyUnicode_DATA` で取得した) *data* に書"
"き込みます。\n"
"この関数は正常性のチェックを行わない、ループで使われるためのものです。\n"
"呼び出し側は、他の呼び出しで取得した *kind* 値と *data* ポインタをキャッシュ"
"すべきです。\n"
"*index* は文字列の (0始まりの) インデックスで、 *value* はその場所に書き込ま"
"れることになる新しいコードポイントの値です。"
#:../../c-api/unicode.rst:165
msgid""
"Read a code point from a canonical representation *data* (as obtained with :"
"c:func:`PyUnicode_DATA`). No checks or ready calls are performed."
msgstr""
"正統な表現形式となっている (:c:func:`PyUnicode_DATA` で取得した) *data* から"
"コードポイントを読み取ります。\n"
"チェックや事前確認のマクロ呼び出しは一切行われません。"
#:../../c-api/unicode.rst:173
msgid""
"Read a character from a Unicode object *unicode*, which must be in the "
"\"canonical\" representation. This is less efficient than :c:func:"
"`PyUnicode_READ` if you do multiple consecutive reads."
msgstr""
"Unicode オブジェクト *unicode* から文字を読み取ります。\n"
"この Unicode オブジェクトは \"正統な\" 表現形式でなければなりません。\n"
"何度も連続して読み取る場合には、このマクロは :c:func:`PyUnicode_READ` よりも"
"非効率的です。"
#:../../c-api/unicode.rst:182
msgid""
"Return the maximum code point that is suitable for creating another string "
"based on *unicode*, which must be in the \"canonical\" representation. This "
"is always an approximation but more efficient than iterating over the string."
msgstr""
"*unicode* に基づいて他の文字列を作るのに適した最大のコードポイントを返しま"
"す。\n"
"この Unicode オブジェクトは \"正統な\" 表現形式でなければなりません。\n"
"この値は常に概算値ですが、文字列全体を調べるよりも効率的です。"
#:../../c-api/unicode.rst:191
msgid""
"Return ``1`` if the string is a valid identifier according to the language "
"definition, section :ref:`identifiers`. Return ``0`` otherwise."
msgstr""
"文字列が、 :ref:`identifiers` 節の言語定義における有効な識別子であれば ``1`` "
"を返します。それ以外の場合は ``0`` を返します。"
#:../../c-api/unicode.rst:194
msgid""
"The function does not call :c:func:`Py_FatalError` anymore if the string is "
"not ready."
msgstr""
#:../../c-api/unicode.rst:200
msgid"Unicode Character Properties"
msgstr"Unicode 文字プロパティ"
#:../../c-api/unicode.rst:202
msgid""
"Unicode provides many different character properties. The most often needed "
"ones are available through these macros which are mapped to C functions "
"depending on the Python configuration."
msgstr""
"Unicode は数多くの異なる文字プロパティ (character property) を提供していま"
"す。よく使われる文字プロパティは、以下のマクロで利用できます。これらのマクロ"
"は Python の設定に応じて、各々 C の関数に対応付けられています。"
#:../../c-api/unicode.rst:209
msgid""
"Return ``1`` or ``0`` depending on whether *ch* is a whitespace character."
msgstr"*ch* が空白文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:214
msgid""
"Return ``1`` or ``0`` depending on whether *ch* is a lowercase character."
msgstr"*ch* が小文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:219
msgid""
"Return ``1`` or ``0`` depending on whether *ch* is an uppercase character."
msgstr"*ch* が大文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:224
msgid""
"Return ``1`` or ``0`` depending on whether *ch* is a titlecase character."
msgstr""
"*ch* がタイトルケース文字 (titlecase character) かどうかに応じて ``1`` また"
"は ``0`` を返します。"
#:../../c-api/unicode.rst:229
msgid""
"Return ``1`` or ``0`` depending on whether *ch* is a linebreak character."
msgstr"*ch* が改行文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:234
msgid"Return ``1`` or ``0`` depending on whether *ch* is a decimal character."
msgstr"*ch* が decimal 文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:239
msgid"Return ``1`` or ``0`` depending on whether *ch* is a digit character."
msgstr"*ch* が digit 文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:244
msgid"Return ``1`` or ``0`` depending on whether *ch* is a numeric character."
msgstr""
"*ch* が数字 (numeric) 文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:249
msgid""
"Return ``1`` or ``0`` depending on whether *ch* is an alphabetic character."
msgstr""
"*ch* がアルファベット文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:254
msgid""
"Return ``1`` or ``0`` depending on whether *ch* is an alphanumeric character."
msgstr"*ch* が英数文字かどうかに応じて ``1`` または ``0`` を返します。"
#:../../c-api/unicode.rst:259
msgid""
"Return ``1`` or ``0`` depending on whether *ch* is a printable character, in "
"the sense of :meth:`str.isprintable`."
msgstr""
#:../../c-api/unicode.rst:263
msgid"These APIs can be used for fast direct character conversions:"
msgstr"以下の API は、高速に直接文字変換を行うために使われます:"
#:../../c-api/unicode.rst:268
msgid"Return the character *ch* converted to lower case."
msgstr"*ch* を小文字に変換したものを返します。"
#:../../c-api/unicode.rst:273
msgid"Return the character *ch* converted to upper case."
msgstr"*ch* を大文字に変換したものを返します。"
#:../../c-api/unicode.rst:278
msgid"Return the character *ch* converted to title case."
msgstr"*ch* をタイトルケース文字に変換したものを返します。"
#:../../c-api/unicode.rst:283
msgid""
"Return the character *ch* converted to a decimal positive integer. Return "
"``-1`` if this is not possible. This function does not raise exceptions."
msgstr""
#:../../c-api/unicode.rst:289
msgid""
"Return the character *ch* converted to a single digit integer. Return ``-1`` "
"if this is not possible. This function does not raise exceptions."
msgstr""
#:../../c-api/unicode.rst:295
msgid""
"Return the character *ch* converted to a double. Return ``-1.0`` if this is "
"not possible. This function does not raise exceptions."
msgstr""
"*ch* を double に変換したものを返します。不可能ならば ``-1.0`` を返します。こ"
"の関数は例外を送出しません。"
#:../../c-api/unicode.rst:299
msgid"These APIs can be used to work with surrogates:"
msgstr"これらの API はサロゲートにも使えます:"
#:../../c-api/unicode.rst:303
msgid"Check if *ch* is a surrogate (``0xD800 <= ch <= 0xDFFF``)."
msgstr""
"*ch* がサロゲートかどうか (``0xD800 <= ch <= 0xDFFF``) をチェックします。"
#:../../c-api/unicode.rst:307
msgid"Check if *ch* is a high surrogate (``0xD800 <= ch <= 0xDBFF``)."
msgstr""
"*ch* が上位サロゲートかどうか (``0xD800 <= ch <= 0xDBFF``) をチェックします。"
#:../../c-api/unicode.rst:311
msgid"Check if *ch* is a low surrogate (``0xDC00 <= ch <= 0xDFFF``)."
msgstr""
"*ch* が下位サロゲートかどうか (``0xDC00 <= ch <= 0xDFFF``) をチェックします。"
#:../../c-api/unicode.rst:315
msgid""
"Join two surrogate code points and return a single :c:type:`Py_UCS4` value. "
"*high* and *low* are respectively the leading and trailing surrogates in a "
"surrogate pair. *high* must be in the range [0xD800; 0xDBFF] and *low* must "
"be in the range [0xDC00; 0xDFFF]."
msgstr""
#:../../c-api/unicode.rst:322
msgid"Creating and accessing Unicode strings"
msgstr"Unicode 文字列の生成とアクセス"
#:../../c-api/unicode.rst:324
msgid""
"To create Unicode objects and access their basic sequence properties, use "
"these APIs:"
msgstr""
"Unicode オブジェクトを生成したり、Unicode のシーケンスとしての基本的なプロパ"
"ティにアクセスしたりするには、以下の API を使ってください:"
#:../../c-api/unicode.rst:329
msgid""
"Create a new Unicode object. *maxchar* should be the true maximum code "
"point to be placed in the string. As an approximation, it can be rounded up "
"to the nearest value in the sequence 127, 255, 65535, 1114111."
msgstr""
"新しい Unicode オブジェクトを生成します。\n"
"*maxchar* は文字列に並べるコードポイントの正しい最大値にすべきです。\n"
"その値は概算値として 127, 255, 65535, 1114111 の一番近い値に切り上げられま"
"す。"
#:../../c-api/unicode.rst:333
msgid""
"This is the recommended way to allocate a new Unicode object. Objects "
"created using this function are not resizable."
msgstr""
"これは新しい Unicode オブジェクトを生成する推奨された方法です。\n"
"この関数を使って生成されたオブジェクトはサイズ変更は不可能です。"
#:../../c-api/unicode.rst:336
msgid"On error, set an exception and return ``NULL``."
msgstr""
#:../../c-api/unicode.rst:344
msgid""
"Create a new Unicode object with the given *kind* (possible values are :c:"
"macro:`PyUnicode_1BYTE_KIND` etc., as returned by :c:func:"
"`PyUnicode_KIND`). The *buffer* must point to an array of *size* units of "
"1, 2 or 4 bytes per character, as given by the kind."
msgstr""
"与えられた *kind* (取り得る値は :c:macro:`PyUnicode_1BYTE_KIND` などの :c:"
"func:`PyUnicode_KIND` が返す値です) の Unicode オブジェクトを生成します。\n"
"*buffer* は、与えられた kind に従って1文字あたり 1, 2, 4 バイトのいずれかを単"
"位として、長さ *size* の配列へのポインタでなければなりません。"
#:../../c-api/unicode.rst:349
msgid""
"If necessary, the input *buffer* is copied and transformed into the "
"canonical representation. For example, if the *buffer* is a UCS4 string (:c:"
"macro:`PyUnicode_4BYTE_KIND`) and it consists only of codepoints in the UCS1 "
"range, it will be transformed into UCS1 (:c:macro:`PyUnicode_1BYTE_KIND`)."
msgstr""
#:../../c-api/unicode.rst:360
msgid""
"Create a Unicode object from the char buffer *str*. The bytes will be "
"interpreted as being UTF-8 encoded. The buffer is copied into the new "
"object. The return value might be a shared object, i.e. modification of the "
"data is not allowed."
msgstr""
#:../../c-api/unicode.rst:366
msgid"This function raises :exc:`SystemError` when:"
msgstr""
#:../../c-api/unicode.rst:368
msgid"*size* < 0,"
msgstr""
#:../../c-api/unicode.rst:369
msgid"*str* is ``NULL`` and *size* > 0"
msgstr""
#:../../c-api/unicode.rst:371
msgid"*str* == ``NULL`` with *size* > 0 is not allowed anymore."
msgstr""
#:../../c-api/unicode.rst:377
msgid""
"Create a Unicode object from a UTF-8 encoded null-terminated char buffer "
"*str*."
msgstr""
"UTF-8 エンコードされたnull終端のchar 型バッファ *str* から Unicode オブジェク"
"トを生成します。"
#:../../c-api/unicode.rst:383
msgid""
"Take a C :c:func:`printf`\\ -style *format* string and a variable number of "
"arguments, calculate the size of the resulting Python Unicode string and "
"return a string with the values formatted into it. The variable arguments "
"must be C types and must correspond exactly to the format characters in the "
"*format* ASCII-encoded string."
msgstr""
#:../../c-api/unicode.rst:389
msgid""
"A conversion specifier contains two or more characters and has the following "
"components, which must occur in this order:"
msgstr""
"一つの変換指定子は 2 またはそれ以上の文字を含み、その構成要素は以下からなりま"
"すが、示した順に出現しなければなりません:"
#:../../c-api/unicode.rst:392
msgid"The ``'%'`` character, which marks the start of the specifier."
msgstr"指定子の開始を示す文字 ``'%'`` 。"
#:../../c-api/unicode.rst:394
msgid""
"Conversion flags (optional), which affect the result of some conversion "
"types."
msgstr"変換フラグ (オプション)。一部の変換型の結果に影響します。"
#:../../c-api/unicode.rst:397
msgid""
"Minimum field width (optional). If specified as an ``'*'`` (asterisk), the "
"actual width is given in the next argument, which must be of type :c:expr:"
"`int`, and the object to convert comes after the minimum field width and "
"optional precision."
msgstr""
#:../../c-api/unicode.rst:402
msgid""
"Precision (optional), given as a ``'.'`` (dot) followed by the precision. If "
"specified as ``'*'`` (an asterisk), the actual precision is given in the "
"next argument, which must be of type :c:expr:`int`, and the value to convert "
"comes after the precision."
msgstr""
#:../../c-api/unicode.rst:407
msgid"Length modifier (optional)."
msgstr"精度長変換子 (オプション)。"
#:../../c-api/unicode.rst:409
msgid"Conversion type."
msgstr"変換型。"
#:../../c-api/unicode.rst:411
msgid"The conversion flag characters are:"
msgstr"変換フラグ文字を以下に示します:"
#:../../c-api/unicode.rst:416
msgid"Flag"
msgstr"Flag"
#:../../c-api/unicode.rst:416
msgid"Meaning"
msgstr"意味"
#:../../c-api/unicode.rst:418
msgid"``0``"
msgstr"``0``"
#:../../c-api/unicode.rst:418
msgid"The conversion will be zero padded for numeric values."
msgstr"数値型に対してゼロによるパディングを行います。"
#:../../c-api/unicode.rst:420
msgid"``-``"
msgstr""
#:../../c-api/unicode.rst:420
msgid""
"The converted value is left adjusted (overrides the ``0`` flag if both are "
"given)."
msgstr""
#:../../c-api/unicode.rst:424
msgid""
"The length modifiers for following integer conversions (``d``, ``i``, ``o``, "
"``u``, ``x``, or ``X``) specify the type of the argument (:c:expr:`int` by "
"default):"
msgstr""
#:../../c-api/unicode.rst:431
msgid"Modifier"
msgstr"修飾子"
#:../../c-api/unicode.rst:431
msgid"Types"
msgstr"型"
#:../../c-api/unicode.rst:433
msgid"``l``"
msgstr"``l``"
#:../../c-api/unicode.rst:433
msgid":c:expr:`long` or :c:expr:`unsigned long`"
msgstr":c:expr:`long` または :c:expr:`unsigned long`"
#:../../c-api/unicode.rst:435
msgid"``ll``"
msgstr"``ll``"
#:../../c-api/unicode.rst:435
msgid":c:expr:`long long` or :c:expr:`unsigned long long`"
msgstr":c:expr:`long long` または :c:expr:`unsigned long long`"
#:../../c-api/unicode.rst:437
msgid"``j``"
msgstr""
#:../../c-api/unicode.rst:437
msgid":c:type:`intmax_t` or :c:type:`uintmax_t`"
msgstr""
#:../../c-api/unicode.rst:439
msgid"``z``"
msgstr""
#:../../c-api/unicode.rst:439
msgid":c:type:`size_t` or :c:type:`ssize_t`"
msgstr""
#:../../c-api/unicode.rst:441
msgid"``t``"
msgstr"``t``"
#:../../c-api/unicode.rst:441
msgid":c:type:`ptrdiff_t`"
msgstr":c:type:`ptrdiff_t`"
#:../../c-api/unicode.rst:444
msgid""
"The length modifier ``l`` for following conversions ``s`` or ``V`` specify "
"that the type of the argument is :c:expr:`const wchar_t*`."
msgstr""
#:../../c-api/unicode.rst:447
msgid"The conversion specifiers are:"
msgstr""
#:../../c-api/unicode.rst:453
msgid"Conversion Specifier"
msgstr""
#:../../c-api/unicode.rst:454
msgid"Type"
msgstr"型"
#:../../c-api/unicode.rst:455
msgid"Comment"
msgstr"備考"
#:../../c-api/unicode.rst:457
msgid"``%``"
msgstr"``%``"
#:../../c-api/unicode.rst:458
msgid"*n/a*"
msgstr"*n/a*"
#:../../c-api/unicode.rst:459
msgid"The literal ``%`` character."
msgstr""
#:../../c-api/unicode.rst:461
msgid"``d``, ``i``"
msgstr""
#:../../c-api/unicode.rst:462../../c-api/unicode.rst:466
#:../../c-api/unicode.rst:470../../c-api/unicode.rst:474
#:../../c-api/unicode.rst:478
msgid"Specified by the length modifier"
msgstr""
#:../../c-api/unicode.rst:463
msgid"The decimal representation of a signed C integer."
msgstr""
#:../../c-api/unicode.rst:465
msgid"``u``"
msgstr"``u``"
#:../../c-api/unicode.rst:467
msgid"The decimal representation of an unsigned C integer."
msgstr""
#:../../c-api/unicode.rst:469
msgid"``o``"
msgstr"``o``"
#:../../c-api/unicode.rst:471
msgid"The octal representation of an unsigned C integer."
msgstr""
#:../../c-api/unicode.rst:473
msgid"``x``"
msgstr"``x``"
#:../../c-api/unicode.rst:475
msgid"The hexadecimal representation of an unsigned C integer (lowercase)."
msgstr""
#:../../c-api/unicode.rst:477
msgid"``X``"
msgstr"``X``"
#:../../c-api/unicode.rst:479
msgid"The hexadecimal representation of an unsigned C integer (uppercase)."
msgstr""
#:../../c-api/unicode.rst:481
msgid"``c``"
msgstr"``c``"
#:../../c-api/unicode.rst:482
msgid":c:expr:`int`"
msgstr":c:expr:`int`"
#:../../c-api/unicode.rst:483
msgid"A single character."
msgstr""
#:../../c-api/unicode.rst:485
msgid"``s``"
msgstr"``s``"
#:../../c-api/unicode.rst:486
msgid":c:expr:`const char*` or :c:expr:`const wchar_t*`"
msgstr":c:expr:`const char*` または :c:expr:`const wchar_t*`"
#:../../c-api/unicode.rst:487
msgid"A null-terminated C character array."
msgstr"null で終端された C の文字列。"
#:../../c-api/unicode.rst:489
msgid"``p``"
msgstr"``p``"
#:../../c-api/unicode.rst:490
msgid":c:expr:`const void*`"
msgstr":c:expr:`const void*`"
#:../../c-api/unicode.rst:491
msgid""
"The hex representation of a C pointer. Mostly equivalent to "
"``printf(\"%p\")`` except that it is guaranteed to start with the literal "
"``0x`` regardless of what the platform's ``printf`` yields."
msgstr""
"C ポインタの 16 進表記。``printf(\"%p\")`` とほとんど同じですが、プラット"
"フォームにおける ``printf`` の定義に関わりなく先頭にリテラル ``0x`` が付きま"
"す。"
#:../../c-api/unicode.rst:496
msgid"``A``"
msgstr"``A``"
#:../../c-api/unicode.rst:497../../c-api/unicode.rst:501
#:../../c-api/unicode.rst:511../../c-api/unicode.rst:515
#:../../c-api/unicode.rst:519../../c-api/unicode.rst:524
msgid":c:expr:`PyObject*`"
msgstr":c:expr:`PyObject*`"
#:../../c-api/unicode.rst:498
msgid"The result of calling :func:`ascii`."
msgstr":func:`ascii` の戻り値。"
#:../../c-api/unicode.rst:500
msgid"``U``"
msgstr"``U``"
#:../../c-api/unicode.rst:502
msgid"A Unicode object."
msgstr"Unicode オブジェクト。"
#:../../c-api/unicode.rst:504
msgid"``V``"
msgstr"``V``"
#:../../c-api/unicode.rst:505
msgid":c:expr:`PyObject*`, :c:expr:`const char*` or :c:expr:`const wchar_t*`"
msgstr""
#:../../c-api/unicode.rst:506
msgid""
"A Unicode object (which may be ``NULL``) and a null-terminated C character "
"array as a second parameter (which will be used, if the first parameter is "
"``NULL``)."
msgstr""
#:../../c-api/unicode.rst:510
msgid"``S``"
msgstr""
#:../../c-api/unicode.rst:512
msgid"The result of calling :c:func:`PyObject_Str`."
msgstr":c:func:`PyObject_Str` の戻り値。"
#:../../c-api/unicode.rst:514
msgid"``R``"
msgstr""
#:../../c-api/unicode.rst:516
msgid"The result of calling :c:func:`PyObject_Repr`."
msgstr":c:func:`PyObject_Repr` の戻り値。"
#:../../c-api/unicode.rst:518
msgid"``T``"
msgstr""
#:../../c-api/unicode.rst:520
msgid""
"Get the fully qualified name of an object type; call :c:func:"
"`PyType_GetFullyQualifiedName`."
msgstr""
#:../../c-api/unicode.rst:523
msgid"``#T``"
msgstr""
#:../../c-api/unicode.rst:525
msgid""
"Similar to ``T`` format, but use a colon (``:``) as separator between the "
"module name and the qualified name."
msgstr""
#:../../c-api/unicode.rst:528
msgid"``N``"
msgstr"``N``"
#:../../c-api/unicode.rst:529../../c-api/unicode.rst:534
msgid":c:expr:`PyTypeObject*`"
msgstr""
#:../../c-api/unicode.rst:530
msgid""
"Get the fully qualified name of a type; call :c:func:"
"`PyType_GetFullyQualifiedName`."
msgstr""
#:../../c-api/unicode.rst:533
msgid"``#N``"
msgstr""
#:../../c-api/unicode.rst:535
msgid""
"Similar to ``N`` format, but use a colon (``:``) as separator between the "
"module name and the qualified name."
msgstr""
#:../../c-api/unicode.rst:539
msgid""
"The width formatter unit is number of characters rather than bytes. The "
"precision formatter unit is number of bytes or :c:type:`wchar_t` items (if "
"the length modifier ``l`` is used) for ``\"%s\"`` and ``\"%V\"`` (if the "
"``PyObject*`` argument is ``NULL``), and a number of characters for "
"``\"%A\"``, ``\"%U\"``, ``\"%S\"``, ``\"%R\"`` and ``\"%V\"`` (if the "
"``PyObject*`` argument is not ``NULL``)."
msgstr""
#:../../c-api/unicode.rst:547
msgid""
"Unlike to C :c:func:`printf` the ``0`` flag has effect even when a precision "
"is given for integer conversions (``d``, ``i``, ``u``, ``o``, ``x``, or "
"``X``)."
msgstr""
#:../../c-api/unicode.rst:551
msgid"Support for ``\"%lld\"`` and ``\"%llu\"`` added."
msgstr"``\"%lld\"``, ``\"%llu\"`` のサポートが追加されました。"
#:../../c-api/unicode.rst:554
msgid"Support for ``\"%li\"``, ``\"%lli\"`` and ``\"%zi\"`` added."
msgstr"``\"%li\"``, ``\"%lli\"``, ``\"%zi\"`` のサポートが追加されました。"
#:../../c-api/unicode.rst:557
msgid""
"Support width and precision formatter for ``\"%s\"``, ``\"%A\"``, "
"``\"%U\"``, ``\"%V\"``, ``\"%S\"``, ``\"%R\"`` added."
msgstr""
"``\"%s\"``, ``\"%A\"``, ``\"%U\"``, ``\"%V\"``, ``\"%S\"``, ``\"%R\"`` での幅"
"フォーマッタおよび精度フォーマッタのサポートが追加されました。"
#:../../c-api/unicode.rst:561
msgid""
"Support for conversion specifiers ``o`` and ``X``. Support for length "
"modifiers ``j`` and ``t``. Length modifiers are now applied to all integer "
"conversions. Length modifier ``l`` is now applied to conversion specifiers "
"``s`` and ``V``. Support for variable width and precision ``*``. Support for "
"flag ``-``."
msgstr""
#:../../c-api/unicode.rst:569
msgid""
"An unrecognized format character now sets a :exc:`SystemError`. In previous "
"versions it caused all the rest of the format string to be copied as-is to "
"the result string, and any extra arguments discarded."
msgstr""
#:../../c-api/unicode.rst:573
msgid"Support for ``%T``, ``%#T``, ``%N`` and ``%#N`` formats added."
msgstr""
#:../../c-api/unicode.rst:579
msgid""
"Identical to :c:func:`PyUnicode_FromFormat` except that it takes exactly two "
"arguments."
msgstr""
"ちょうど2つの引数を取ることを除いて、 :c:func:`PyUnicode_FromFormat` と同じ"
"です。"
#:../../c-api/unicode.rst:585
msgid""
"Copy an instance of a Unicode subtype to a new true Unicode object if "
"necessary. If *obj* is already a true Unicode object (not a subtype), return "
"a new :term:`strong reference` to the object."
msgstr""
#:../../c-api/unicode.rst:589
msgid""
"Objects other than Unicode or its subtypes will cause a :exc:`TypeError`."
msgstr""
"Unicode やそのサブタイプ以外のオブジェクトでは :exc:`TypeError` が引き起こさ"
"れます。"
#:../../c-api/unicode.rst:594
msgid"Create a Unicode Object from the given Unicode code point *ordinal*."
msgstr""
#:../../c-api/unicode.rst:596
msgid""
"The ordinal must be in ``range(0x110000)``. A :exc:`ValueError` is raised in "
"the case it is not."
msgstr""
#:../../c-api/unicode.rst:603
msgid"Decode an encoded object *obj* to a Unicode object."
msgstr"エンコードされている *obj* を Unicode オブジェクトにデコードします。"
#:../../c-api/unicode.rst:605
msgid""
":class:`bytes`, :class:`bytearray` and other :term:`bytes-like objects "
"<bytes-like object>` are decoded according to the given *encoding* and using "
"the error handling defined by *errors*. Both can be ``NULL`` to have the "
"interface use the default values (see :ref:`builtincodecs` for details)."
msgstr""
":class:`bytes` や :class:`bytearray` や他の :term:`bytes-like objects <bytes-"
"like object>` は、与えられた *encoding* に従ってデコードされ、 *errors* で定"
"義されたエラーハンドリングが使われます。\n"
"これらの引数は両方とも ``NULL`` にでき、その場合この API はデフォルト値を使い"
"ます (詳しことは :ref:`builtincodecs` を参照してください)。"
#:../../c-api/unicode.rst:611
msgid""
"All other objects, including Unicode objects, cause a :exc:`TypeError` to be "
"set."
msgstr""
"その他のUnicodeオブジェクトを含むオブジェクトは :exc:`TypeError` 例外を引き起"
"こします。"
#:../../c-api/unicode.rst:614
msgid""
"The API returns ``NULL`` if there was an error. The caller is responsible "
"for decref'ing the returned objects."
msgstr""
"この API は、エラーが生じたときには ``NULL`` を返します。呼び出し側は返された"
"オブジェクトに対し参照カウンタを 1 つ減らす (decref) する責任があります。"
#:../../c-api/unicode.rst:620
msgid""
"Return the name of the default string encoding, ``\"utf-8\"``. See :func:"
"`sys.getdefaultencoding`."
msgstr""
#:../../c-api/unicode.rst:623
msgid""
"The returned string does not need to be freed, and is valid until "
"interpreter shutdown."
msgstr""
#:../../c-api/unicode.rst:629
msgid"Return the length of the Unicode object, in code points."
msgstr"Unicode オブジェクトの長さをコードポイントで返します。"
#:../../c-api/unicode.rst:631
msgid"On error, set an exception and return ``-1``."
msgstr""
#:../../c-api/unicode.rst:642
msgid""
"Copy characters from one Unicode object into another. This function "
"performs character conversion when necessary and falls back to :c:func:`!"
"memcpy` if possible. Returns ``-1`` and sets an exception on error, "
"otherwise returns the number of copied characters."
msgstr""
"ある Unicode オブジェクトから他へ文字をコピーします。\n"
"この関数は必要なときに文字変換を行い、可能な場合は :c:func:`!memcpy` へ差し戻"
"します。\n"
"失敗のときには ``-1`` を返し、例外を設定します。そうでない場合は、コピーした"
"文字数を返します。"
#:../../c-api/unicode.rst:653
msgid""
"Fill a string with a character: write *fill_char* into ``unicode[start:"
"start+length]``."
msgstr""
"文字列を文字で埋めます: ``unicode[start:start+length]`` で *fill_char* を埋め"
"ることになります。"
#:../../c-api/unicode.rst:656
msgid""