8
8
msgstr ""
9
9
"Project-Id-Version :Python 2.7\n "
10
10
"Report-Msgid-Bugs-To :\n "
11
- "POT-Creation-Date :2018-01-21 01:52 +0900\n "
12
- "PO-Revision-Date :2017-09-22 17:56 +0000\n "
11
+ "POT-Creation-Date :2018-10-27 14:45 +0900\n "
12
+ "PO-Revision-Date :2018-10-27 05:52 +0000\n "
13
13
"Last-Translator :tomo🐧\n "
14
14
"Language-Team :Japanese (http://www.transifex.com/python-doc/python-27/language/ja/)\n "
15
15
"MIME-Version :1.0\n "
@@ -86,7 +86,7 @@ msgstr ":class:`Differ` クラスによる差分の各行は、2文字のコー
86
86
msgid "Code"
87
87
msgstr "コード"
88
88
89
- #: ../../library/difflib.rst:61 ../../library/difflib.rst:467
89
+ #: ../../library/difflib.rst:61 ../../library/difflib.rst:468
90
90
msgid "Meaning"
91
91
msgstr "意味"
92
92
@@ -287,7 +287,7 @@ msgid ""
287
287
"delta (a :term:`generator` generating the delta lines)."
288
288
msgstr "*a* と *b* (文字列のリスト) を比較し、差分 (差分形式の行を生成するジェネレータ(:term:`generator`)) を、 :class:`Differ` のスタイルで返します。"
289
289
290
- #: ../../library/difflib.rst:217 ../../library/difflib.rst:617
290
+ #: ../../library/difflib.rst:217 ../../library/difflib.rst:618
291
291
msgid ""
292
292
"Optional keyword parameters *linejunk* and *charjunk* are for filter "
293
293
"functions (or ``None``):"
@@ -491,184 +491,184 @@ msgstr "このメソッドは :term:`named tuple` ``Match(a, b, size)`` を返
491
491
492
492
#: ../../library/difflib.rst:434
493
493
msgid ""
494
- "Return list of triples describing matching subsequences. Each triple is of "
495
- "the form ``(i, j, n)``, and means that ``a[i:i+n] == b[j:j+n]``. The "
496
- "triples are monotonically increasing in *i* and *j*."
497
- msgstr "マッチしたシーケンス中で個別にマッチしたシーケンスをあらわす、3つの値のリストを返します。それぞれの値は ``(i, j, n)`` という形式であらわされ、``a[i:i+n] == b[j:j+n]`` という関係を意味します。3つの値は *i* と *j* の間で単調に増加します。 "
494
+ "Return list of triples describingnon-overlapping matching subsequences. "
495
+ "Each triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == "
496
+ "b[j:j+n]``. The triples are monotonically increasing in *i* and *j*."
497
+ msgstr ""
498
498
499
- #: ../../library/difflib.rst:438
499
+ #: ../../library/difflib.rst:439
500
500
msgid ""
501
501
"The last triple is a dummy, and has the value ``(len(a), len(b), 0)``. It "
502
502
"is the only triple with ``n == 0``. If ``(i, j, n)`` and ``(i', j', n')`` "
503
503
"are adjacent triples in the list, and the second is not the last triple in "
504
- "the list, then ``i+n!= i'`` or ``j+n!= j'``; in other words, adjacent "
504
+ "the list, then ``i+n< i'`` or ``j+n< j'``; in other words, adjacent "
505
505
"triples always describe non-adjacent equal blocks."
506
- msgstr "最後のタプルはダミーで、``(len(a), len(b), 0)`` という値を持ちます。これは ``n == 0`` である唯一のタプルです。もし ``(i, j, n)`` と ``(i', j', n')`` がリストで並んでいる3つ組で、2つ目が最後の3つ組でなければ、``i+n != i'`` または ``j+n != j'`` です。言い換えると並んでいる3つ組は常に隣接していない同じブロックを表しています。 "
506
+ msgstr ""
507
507
508
- #: ../../library/difflib.rst:446
508
+ #: ../../library/difflib.rst:447
509
509
msgid ""
510
510
"The guarantee that adjacent triples always describe non-adjacent blocks was "
511
511
"implemented."
512
512
msgstr "隣接する3つ組は常に隣接しないブロックを表すと保証するようになりました。"
513
513
514
- #: ../../library/difflib.rst:459
514
+ #: ../../library/difflib.rst:460
515
515
msgid ""
516
516
"Return list of 5-tuples describing how to turn *a* into *b*. Each tuple is "
517
517
"of the form ``(tag, i1, i2, j1, j2)``. The first tuple has ``i1 == j1 == "
518
518
"0``, and remaining tuples have *i1* equal to the *i2* from the preceding "
519
519
"tuple, and, likewise, *j1* equal to the previous *j2*."
520
520
msgstr "*a* を *b* にするための方法を記述する5つのタプルを返します。それぞれのタプルは ``(tag, i1, i2, j1, j2)`` という形式であらわされます。最初のタプルは ``i1 == j1 == 0`` であり、*i1* はその前にあるタプルの *i2* と同じ値です。同様に *j1* は前の *j2* と同じ値になります。"
521
521
522
- #: ../../library/difflib.rst:464
522
+ #: ../../library/difflib.rst:465
523
523
msgid "The *tag* values are strings, with these meanings:"
524
524
msgstr "*tag* の値は文字列であり、次のような意味です:"
525
525
526
- #: ../../library/difflib.rst:467
526
+ #: ../../library/difflib.rst:468
527
527
msgid "Value"
528
528
msgstr "``値``"
529
529
530
- #: ../../library/difflib.rst:469
530
+ #: ../../library/difflib.rst:470
531
531
msgid "``'replace'``"
532
532
msgstr "``'replace'``"
533
533
534
- #: ../../library/difflib.rst:469
534
+ #: ../../library/difflib.rst:470
535
535
msgid "``a[i1:i2]`` should be replaced by ``b[j1:j2]``."
536
536
msgstr "``a[i1:i2]`` は ``b[j1:j2]`` に置き換えられる。"
537
537
538
- #: ../../library/difflib.rst:472
538
+ #: ../../library/difflib.rst:473
539
539
msgid "``'delete'``"
540
540
msgstr "``'delete'``"
541
541
542
- #: ../../library/difflib.rst:472
542
+ #: ../../library/difflib.rst:473
543
543
msgid "``a[i1:i2]`` should be deleted. Note that ``j1 == j2`` in this case."
544
544
msgstr "``a[i1:i2]`` は削除される。この時、``j1 == j2`` である。"
545
545
546
- #: ../../library/difflib.rst:475
546
+ #: ../../library/difflib.rst:476
547
547
msgid "``'insert'``"
548
548
msgstr "``'insert'``"
549
549
550
- #: ../../library/difflib.rst:475
550
+ #: ../../library/difflib.rst:476
551
551
msgid ""
552
552
"``b[j1:j2]`` should be inserted at ``a[i1:i1]``. Note that ``i1 == i2`` in "
553
553
"this case."
554
554
msgstr "``b[j1:j2]`` が ``a[i1:i1]`` に挿入される。この時 ``i1 == i2`` である。"
555
555
556
- #: ../../library/difflib.rst:479
556
+ #: ../../library/difflib.rst:480
557
557
msgid "``'equal'``"
558
558
msgstr "``'equal'``"
559
559
560
- #: ../../library/difflib.rst:479
560
+ #: ../../library/difflib.rst:480
561
561
msgid "``a[i1:i2] == b[j1:j2]`` (the sub-sequences are equal)."
562
562
msgstr "``a[i1:i2] == b[j1:j2]`` (サブシーケンスは等しい)."
563
563
564
- #: ../../library/difflib.rst:483
564
+ #: ../../library/difflib.rst:484
565
565
msgid "For example:"
566
566
msgstr "例えば:"
567
567
568
- #: ../../library/difflib.rst:500
568
+ #: ../../library/difflib.rst:501
569
569
msgid "Return a :term:`generator` of groups with up to *n* lines of context."
570
570
msgstr "最大 *n* 行までのコンテクストを含むグループを生成するような、ジェネレータ(:term:`generator`)を返します。"
571
571
572
- #: ../../library/difflib.rst:502
572
+ #: ../../library/difflib.rst:503
573
573
msgid ""
574
574
"Starting with the groups returned by :meth:`get_opcodes`, this method splits"
575
575
" out smaller change clusters and eliminates intervening ranges which have no"
576
576
" changes."
577
577
msgstr "このメソッドは、 :meth:`get_opcodes` で返されるグループの中から、似たような差異のかたまりに分け、間に挟まっている変更の無い部分を省きます。"
578
578
579
- #: ../../library/difflib.rst:506
579
+ #: ../../library/difflib.rst:507
580
580
msgid "The groups are returned in the same format as :meth:`get_opcodes`."
581
581
msgstr "グループは :meth:`get_opcodes` と同じ書式で返されます。"
582
582
583
- #: ../../library/difflib.rst:513
583
+ #: ../../library/difflib.rst:514
584
584
msgid ""
585
585
"Return a measure of the sequences' similarity as a float in the range [0, "
586
586
"1]."
587
587
msgstr "[0, 1] の範囲の浮動小数点数で、シーケンスの類似度を測る値を返します。"
588
588
589
- #: ../../library/difflib.rst:516
589
+ #: ../../library/difflib.rst:517
590
590
msgid ""
591
591
"Where T is the total number of elements in both sequences, and M is the "
592
592
"number of matches, this is 2.0\\ *M / T. Note that this is ``1.0`` if the "
593
593
"sequences are identical, and ``0.0`` if they have nothing in common."
594
594
msgstr "T が2つのシーケンスの要素数の総計だと仮定し、M をマッチした数とすると、この値は 2.0\\ *M / T であらわされます。もしシーケンスがまったく同じ場合、値は ``1.0`` となり、まったく異なる場合には ``0.0`` となります。"
595
595
596
- #: ../../library/difflib.rst:520
596
+ #: ../../library/difflib.rst:521
597
597
msgid ""
598
598
"This is expensive to compute if :meth:`get_matching_blocks` or "
599
599
":meth:`get_opcodes` hasn't already been called, in which case you may want "
600
600
"to try :meth:`quick_ratio` or :meth:`real_quick_ratio` first to get an upper"
601
601
" bound."
602
602
msgstr "このメソッドは :meth:`get_matching_blocks` または :meth:`get_opcodes` がまだ呼び出されていない場合には非常にコストが高いです。この場合、上限を素早く計算するために、 :meth:`quick_ratio` もしくは :meth:`real_quick_ratio` を最初に試してみる方がいいかもしれません。"
603
603
604
- #: ../../library/difflib.rst:528
604
+ #: ../../library/difflib.rst:529
605
605
msgid "Return an upper bound on :meth:`ratio` relatively quickly."
606
606
msgstr ":meth:`ratio` の上界を、より高速に計算します。"
607
607
608
- #: ../../library/difflib.rst:533
608
+ #: ../../library/difflib.rst:534
609
609
msgid "Return an upper bound on :meth:`ratio` very quickly."
610
610
msgstr ":meth:`ratio` の上界を、非常に高速に計算します。"
611
611
612
- #: ../../library/difflib.rst:536
612
+ #: ../../library/difflib.rst:537
613
613
msgid ""
614
614
"The three methods that return the ratio of matching to total characters can "
615
615
"give different results due to differing levels of approximation, although "
616
616
":meth:`quick_ratio` and :meth:`real_quick_ratio` are always at least as "
617
617
"large as :meth:`ratio`:"
618
618
msgstr "この文字列全体のマッチ率を返す3つのメソッドは、精度の異なる近似値を返します。 :meth:`quick_ratio` と :meth:`real_quick_ratio` は、常に :meth:`ratio` 以上の値を返します:"
619
619
620
- #: ../../library/difflib.rst:553
620
+ #: ../../library/difflib.rst:554
621
621
msgid "SequenceMatcher Examples"
622
622
msgstr "SequenceMatcher の例"
623
623
624
- #: ../../library/difflib.rst:555
624
+ #: ../../library/difflib.rst:556
625
625
msgid "This example compares two strings, considering blanks to be\" junk:\" "
626
626
msgstr "この例は2つの文字列を比較します。空白を\" junk\" とします。"
627
627
628
- #: ../../library/difflib.rst:561
628
+ #: ../../library/difflib.rst:562
629
629
msgid ""
630
630
":meth:`ratio` returns a float in [0, 1], measuring the similarity of the "
631
631
"sequences. As a rule of thumb, a :meth:`ratio` value over 0.6 means the "
632
632
"sequences are close matches:"
633
633
msgstr ":meth:`ratio` は、[0, 1] の範囲の値を返し、シーケンスの類似度を測ります。経験によると、 :meth:`ratio` の値が0.6を超えると、シーケンスがよく似ていることを示します:"
634
634
635
- #: ../../library/difflib.rst:568
635
+ #: ../../library/difflib.rst:569
636
636
msgid ""
637
637
"If you're only interested in where the sequences match, "
638
638
":meth:`get_matching_blocks` is handy:"
639
639
msgstr "シーケンスのどこがマッチしているかにだけ興味のある時には :meth:`get_matching_blocks` が手軽でしょう:"
640
640
641
- #: ../../library/difflib.rst:577
641
+ #: ../../library/difflib.rst:578
642
642
msgid ""
643
643
"Note that the last tuple returned by :meth:`get_matching_blocks` is always a"
644
644
" dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last"
645
645
" tuple element (number of elements matched) is ``0``."
646
646
msgstr ":meth:`get_matching_blocks` が返す最後のタプルが常にダミーであることに注目してください。このダミーは ``(len(a), len(b), 0)`` であり、これはタプルの最後の要素(マッチする要素の数)が ``0`` となる唯一のケースです。"
647
647
648
- #: ../../library/difflib.rst:581
648
+ #: ../../library/difflib.rst:582
649
649
msgid ""
650
650
"If you want to know how to change the first sequence into the second, use "
651
651
":meth:`get_opcodes`:"
652
652
msgstr "はじめのシーケンスがどのようにして2番目のものになるのかを知るには、 :meth:`get_opcodes` を使います:"
653
653
654
- #: ../../library/difflib.rst:592
654
+ #: ../../library/difflib.rst:593
655
655
msgid ""
656
656
"The :func:`get_close_matches` function in this module which shows how simple"
657
657
" code building on :class:`SequenceMatcher` can be used to do useful work."
658
658
msgstr ":class:`SequenceMatcher` を使った、シンプルで使えるコードを知るには、このモジュールの関数 :func:`get_close_matches` を参照してください。"
659
659
660
- #: ../../library/difflib.rst:596
660
+ #: ../../library/difflib.rst:597
661
661
msgid ""
662
662
"`Simple version control recipe "
663
663
"<https://code.activestate.com/recipes/576729/>`_ for a small application "
664
664
"built with :class:`SequenceMatcher`."
665
665
msgstr "`Simple version control recipe <https://code.activestate.com/recipes/576729/>`_ :class:`SequenceMatcher` で作った小規模アプリケーション。"
666
666
667
- #: ../../library/difflib.rst:604
667
+ #: ../../library/difflib.rst:605
668
668
msgid "Differ Objects"
669
669
msgstr "Differ オブジェクト"
670
670
671
- #: ../../library/difflib.rst:606
671
+ #: ../../library/difflib.rst:607
672
672
msgid ""
673
673
"Note that :class:`Differ`\\ -generated deltas make no claim to be "
674
674
"**minimal** diffs. To the contrary, minimal diffs are often counter-"
@@ -678,36 +678,36 @@ msgid ""
678
678
"longer diff."
679
679
msgstr ":class:`Differ` オブジェクトによって生成された差分が **最小** であるなどとは言いません。むしろ、最小の差分はしばしば直観に反しています。その理由は、どこでもできるとなれば一致を見いだしてしまうからで、ときには思いがけなく100ページも離れたマッチになってしまうのです。一致点を互いに隣接したマッチに制限することで、場合によって長めの差分を出力するというコストを掛けることにはなっても、ある種の局所性を保つことができるのです。"
680
680
681
- #: ../../library/difflib.rst:612
681
+ #: ../../library/difflib.rst:613
682
682
msgid "The :class:`Differ` class has this constructor:"
683
683
msgstr ":class:`Differ` は、以下のようなコンストラクタを持ちます:"
684
684
685
- #: ../../library/difflib.rst:620
685
+ #: ../../library/difflib.rst:621
686
686
msgid ""
687
687
"*linejunk*: A function that accepts a single string argument, and returns "
688
688
"true if the string is junk. The default is ``None``, meaning that no line "
689
689
"is considered junk."
690
690
msgstr "*linejunk*: ひとつの文字列引数を受け取る関数です。文字列が junk のときに真を返します。デフォルトでは、``None`` であり、どんな行であっても junk とは見なされません。"
691
691
692
- #: ../../library/difflib.rst:624
692
+ #: ../../library/difflib.rst:625
693
693
msgid ""
694
694
"*charjunk*: A function that accepts a single character argument (a string of"
695
695
" length 1), and returns true if the character is junk. The default is "
696
696
"``None``, meaning that no character is considered junk."
697
697
msgstr "*charjunk*: この関数は文字(長さ1の文字列)を引数として受け取り、文字が junk であるときに真を返します。デフォルトは ``None`` であり、どんな文字も junk とは見なされません。"
698
698
699
- #: ../../library/difflib.rst:628
699
+ #: ../../library/difflib.rst:629
700
700
msgid ""
701
701
":class:`Differ` objects are used (deltas generated) via a single method:"
702
702
msgstr ":class:`Differ` オブジェクトは、以下の1つのメソッドを通して利用されます。(差分を生成します):"
703
703
704
- #: ../../library/difflib.rst:633
704
+ #: ../../library/difflib.rst:634
705
705
msgid ""
706
706
"Compare two sequences of lines, and generate the delta (a sequence of "
707
707
"lines)."
708
708
msgstr "文字列からなる2つのシーケンスを比較し、差分(を表す文字列からなるシーケンス)を生成します。"
709
709
710
- #: ../../library/difflib.rst:635
710
+ #: ../../library/difflib.rst:636
711
711
msgid ""
712
712
"Each sequence must contain individual single-line strings ending with "
713
713
"newlines. Such sequences can be obtained from the :meth:`~file.readlines` "
@@ -716,45 +716,45 @@ msgid ""
716
716
":meth:`~file.writelines` method of a file-like object."
717
717
msgstr "各シーケンスの要素は、改行で終わる独立した単一行からなる文字列でなければなりません。そのようなシーケンスは、ファイル風オブジェクトの :meth:`~file.readlines` メソッドによって得ることができます。(得られる)差分は改行文字で終了する文字列のシーケンスとして得られ、ファイル風オブジェクトの :meth:`~file.writelines` メソッドによって出力できる形になっています。"
718
718
719
- #: ../../library/difflib.rst:646
719
+ #: ../../library/difflib.rst:647
720
720
msgid "Differ Example"
721
721
msgstr "Differ の例"
722
722
723
- #: ../../library/difflib.rst:648
723
+ #: ../../library/difflib.rst:649
724
724
msgid ""
725
725
"This example compares two texts. First we set up the texts, sequences of "
726
726
"individual single-line strings ending with newlines (such sequences can also"
727
727
" be obtained from the :meth:`~file.readlines` method of file-like objects):"
728
728
msgstr "以下の例は2つのテキストを比較しています。最初に、テキストを行毎に改行で終わる文字列のシーケンスにセットアップします (そのようなシーケンスは、ファイル風オブジェクトの :meth:`~file.readlines` メソッドからも得ることができます) 。"
729
729
730
- #: ../../library/difflib.rst:667
730
+ #: ../../library/difflib.rst:668
731
731
msgid "Next we instantiate a Differ object:"
732
732
msgstr "次に Differ オブジェクトをインスタンス化します:"
733
733
734
- #: ../../library/difflib.rst:671
734
+ #: ../../library/difflib.rst:672
735
735
msgid ""
736
736
"Note that when instantiating a :class:`Differ` object we may pass functions "
737
737
"to filter out line and character\" junk.\" See the :meth:`Differ` "
738
738
"constructor for details."
739
739
msgstr "注意: :class:`Differ` オブジェクトをインスタンス化するとき、行 junk と文字 junk をフィルタリングする関数を渡すことができます。詳細は :meth:`Differ` コンストラクタを参照してください。"
740
740
741
- #: ../../library/difflib.rst:675
741
+ #: ../../library/difflib.rst:676
742
742
msgid "Finally, we compare the two:"
743
743
msgstr "最後に、2つを比較します:"
744
744
745
- #: ../../library/difflib.rst:679
745
+ #: ../../library/difflib.rst:680
746
746
msgid "``result`` is a list of strings, so let's pretty-print it:"
747
747
msgstr "``result`` は文字列のリストなので、pretty-printしてみましょう:"
748
748
749
- #: ../../library/difflib.rst:694
749
+ #: ../../library/difflib.rst:695
750
750
msgid "As a single multi-line string it looks like this:"
751
751
msgstr "これは、複数行の文字列として、次のように出力されます:"
752
752
753
- #: ../../library/difflib.rst:713
753
+ #: ../../library/difflib.rst:714
754
754
msgid "A command-line interface to difflib"
755
755
msgstr "difflib のコマンドラインインタフェース"
756
756
757
- #: ../../library/difflib.rst:715
757
+ #: ../../library/difflib.rst:716
758
758
msgid ""
759
759
"This example shows how to use difflib to create a ``diff``-like utility. It "
760
760
"is also contained in the Python source distribution, as "