8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.7\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-06-30 05:56 +0900\n "
11
+ "POT-Creation-Date : 2018-10-28 09:36 +0900\n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : Akihiro Uchida <uchida@turbare.net>, 2017\n "
14
14
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -112,7 +112,7 @@ msgstr ":class:`Differ` クラスによる差分の各行は、2文字のコー
112
112
msgid "Code"
113
113
msgstr "コード"
114
114
115
- #: ../../library/difflib.rst:68 ../../library/difflib.rst:489
115
+ #: ../../library/difflib.rst:68 ../../library/difflib.rst:490
116
116
msgid "Meaning"
117
117
msgstr "意味"
118
118
@@ -657,27 +657,21 @@ msgstr "このメソッドは :term:`named tuple` ``Match(a, b, size)`` を返
657
657
658
658
#: ../../library/difflib.rst:460
659
659
msgid ""
660
- "Return list of triples describing matching subsequences. Each triple is of "
661
- "the form ``(i, j, n)``, and means that ``a[i:i+n] == b[j:j+n]``. The "
662
- "triples are monotonically increasing in *i* and *j*."
660
+ "Return list of triples describing non-overlapping matching subsequences. "
661
+ "Each triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == "
662
+ "b[j:j+n]``. The triples are monotonically increasing in *i* and *j*."
663
663
msgstr ""
664
- "マッチしたシーケンス中で個別にマッチしたシーケンスをあらわす、3つの値のリストを返します。それぞれの値は ``(i, j, n)`` "
665
- "という形式であらわされ、``a[i:i+n] == b[j:j+n]`` という関係を意味します。3つの値は *i* と *j* "
666
- "の間で単調に増加します。"
667
664
668
- #: ../../library/difflib.rst:464
665
+ #: ../../library/difflib.rst:465
669
666
msgid ""
670
667
"The last triple is a dummy, and has the value ``(len(a), len(b), 0)``. It "
671
668
"is the only triple with ``n == 0``. If ``(i, j, n)`` and ``(i', j', n')`` "
672
669
"are adjacent triples in the list, and the second is not the last triple in "
673
- "the list, then ``i+n != i'`` or ``j+n != j'``; in other words, adjacent "
670
+ "the list, then ``i+n < i'`` or ``j+n < j'``; in other words, adjacent "
674
671
"triples always describe non-adjacent equal blocks."
675
672
msgstr ""
676
- "最後のタプルはダミーで、``(len(a), len(b), 0)`` という値を持ちます。
6D40
これは ``n == 0`` である唯一のタプルです。もし "
677
- "``(i, j, n)`` と ``(i', j', n')`` がリストで並んでいる3つ組で、2つ目が最後の3つ組でなければ、``i+n != "
678
- "i'`` または ``j+n != j'`` です。言い換えると並んでいる3つ組は常に隣接していない同じブロックを表しています。"
679
673
680
- #: ../../library/difflib.rst:481
674
+ #: ../../library/difflib.rst:482
681
675
msgid ""
682
676
"Return list of 5-tuples describing how to turn *a* into *b*. Each tuple is "
683
677
"of the form ``(tag, i1, i2, j1, j2)``. The first tuple has ``i1 == j1 == "
@@ -688,57 +682,57 @@ msgstr ""
688
682
"という形式であらわされます。最初のタプルは ``i1 == j1 == 0`` であり、*i1* はその前にあるタプルの *i2* と同じ値です。同様に"
689
683
" *j1* は前の *j2* と同じ値になります。"
690
684
691
- #: ../../library/difflib.rst:486
685
+ #: ../../library/difflib.rst:487
692
686
msgid "The *tag* values are strings, with these meanings:"
693
687
msgstr "*tag* の値は文字列であり、次のような意味です:"
694
688
695
- #: ../../library/difflib.rst:489
689
+ #: ../../library/difflib.rst:490
696
690
msgid "Value"
697
691
msgstr "値"
698
692
699
- #: ../../library/difflib.rst:491
693
+ #: ../../library/difflib.rst:492
700
694
msgid "``'replace'``"
701
695
msgstr "``'replace'``"
702
696
703
- #: ../../library/difflib.rst:491
697
+ #: ../../library/difflib.rst:492
704
698
msgid "``a[i1:i2]`` should be replaced by ``b[j1:j2]``."
705
699
msgstr "``a[i1:i2]`` は ``b[j1:j2]`` に置き換えられる。"
706
700
707
- #: ../../library/difflib.rst:494
701
+ #: ../../library/difflib.rst:495
708
702
msgid "``'delete'``"
709
703
msgstr "``'delete'``"
710
704
711
- #: ../../library/difflib.rst:494
705
+ #: ../../library/difflib.rst:495
712
706
msgid "``a[i1:i2]`` should be deleted. Note that ``j1 == j2`` in this case."
713
707
msgstr "``a[i1:i2]`` は削除される。この時、``j1 == j2`` である。"
714
708
715
- #: ../../library/difflib.rst:497
709
+ #: ../../library/difflib.rst:498
716
710
msgid "``'insert'``"
717
711
msgstr "``'insert'``"
718
712
719
- #: ../../library/difflib.rst:497
713
+ #: ../../library/difflib.rst:498
720
714
msgid ""
721
715
"``b[j1:j2]`` should be inserted at ``a[i1:i1]``. Note that ``i1 == i2`` in "
722
716
"this case."
723
717
msgstr "``b[j1:j2]`` が ``a[i1:i1]`` に挿入される。この時 ``i1 == i2`` である。"
724
718
725
- #: ../../library/difflib.rst:501
719
+ #: ../../library/difflib.rst:502
726
720
msgid "``'equal'``"
727
721
msgstr "``'equal'``"
728
722
729
- #: ../../library/difflib.rst:501
723
+ #: ../../library/difflib.rst:502
730
724
msgid "``a[i1:i2] == b[j1:j2]`` (the sub-sequences are equal)."
731
725
msgstr "``a[i1:i2] == b[j1:j2]`` (サブシーケンスは等しい)."
732
726
733
- #: ../../library/difflib.rst:505
727
+ #: ../../library/difflib.rst:506
734
728
msgid "For example::"
735
729
msgstr "例えば::"
736
730
737
- #: ../../library/difflib.rst:522
731
+ #: ../../library/difflib.rst:523
738
732
msgid "Return a :term:`generator` of groups with up to *n* lines of context."
739
733
msgstr "最大 *n* 行までのコンテクストを含むグループを生成するような、ジェネレータ(:term:`generator`)を返します。"
740
734
741
- #: ../../library/difflib.rst:524
735
+ #: ../../library/difflib.rst:525
742
736
msgid ""
743
737
"Starting with the groups returned by :meth:`get_opcodes`, this method splits"
744
738
" out smaller change clusters and eliminates intervening ranges which have no"
@@ -747,17 +741,17 @@ msgstr ""
747
741
"このメソッドは、 :meth:`get_opcodes` "
748
742
"で返されるグループの中から、似たような差異のかたまりに分け、間に挟まっている変更の無い部分を省きます。"
749
743
750
- #: ../../library/difflib.rst:528
744
+ #: ../../library/difflib.rst:529
751
745
msgid "The groups are returned in the same format as :meth:`get_opcodes`."
752
746
msgstr "グループは :meth:`get_opcodes` と同じ書式で返されます。"
753
747
754
- #: ../../library/difflib.rst:533
748
+ #: ../../library/difflib.rst:534
755
749
msgid ""
756
750
"Return a measure of the sequences' similarity as a float in the range [0, "
757
751
"1]."
758
752
msgstr "[0, 1] の範囲の浮動小数点数で、シーケンスの類似度を測る値を返します。"
759
753
760
- #: ../../library/difflib.rst:536
754
+ #: ../../library/difflib.rst:537
761
755
msgid ""
762
756
"Where T is the total number of elements in both sequences, and M is the "
763
757
"number of matches, this is 2.0\\ *M / T. Note that this is ``1.0`` if the "
@@ -766,7 +760,7 @@ msgstr ""
766
760
"T が2つのシーケンスの要素数の総計だと仮定し、M をマッチした数とすると、この値は 2.0\\ *M / T "
767
761
"であらわされます。もしシーケンスがまったく同じ場合、値は ``1.0`` となり、まったく異なる場合には ``0.0`` となります。"
768
762
769
- #: ../../library/difflib.rst:540
763
+ #: ../../library/difflib.rst:541
770
764
msgid ""
771
765
"This is expensive to compute if :meth:`get_matching_blocks` or "
772
766
":meth:`get_opcodes` hasn't already been called, in which case you may want "
@@ -777,15 +771,15 @@ msgstr ""
777
771
"がまだ呼び出されていない場合には非常にコストが高いです。この場合、上限を素早く計算するために、 :meth:`quick_ratio` もしくは "
778
772
":meth:`real_quick_ratio` を最初に試してみる方がいいかもしれません。"
779
773
780
- #: ../../library/difflib.rst:548
774
+ #: ../../library/difflib.rst:549
781
775
msgid "Return an upper bound on :meth:`ratio` relatively quickly."
782
776
msgstr ":meth:`ratio` の上界を、より高速に計算します。"
783
777
784
- #: ../../library/difflib.rst:553
778
+ #: ../../library/difflib.rst:554
785
779
msgid "Return an upper bound on :meth:`ratio` very quickly."
786
780
msgstr ":meth:`ratio` の上界を、非常に高速に計算します。"
787
781
788
- #: ../../library/difflib.rst:556
782
+ #: ../../library/difflib.rst:557
789
783
msgid ""
790
784
"The three methods that return the ratio of matching to total characters can "
791
785
"give different results due to differing levels of approximation, although "
@@ -795,15 +789,15 @@ msgstr ""
795
789
"この文字列全体のマッチ率を返す3つのメソッドは、精度の異なる近似値を返します。 :meth:`quick_ratio` と "
796
790
":meth:`real_quick_ratio` は、常に :meth:`ratio` 以上の値を返します:"
797
791
798
- #: ../../library/difflib.rst:573
792
+ #: ../../library/difflib.rst:574
799
793
msgid "SequenceMatcher Examples"
800
794
msgstr "SequenceMatcher の例"
801
795
802
- #: ../../library/difflib.rst:575
796
+ #: ../../library/difflib.rst:576
803
797
msgid "This example compares two strings, considering blanks to be \" junk\" :"
804
798
msgstr "この例は2つの文字列を比較します。空白を \" junk\" とします:"
805
799
806
- #: ../../library/difflib.rst:581
800
+ #: ../../library/difflib.rst:582
807
801
msgid ""
808
802
":meth:`ratio` returns a float in [0, 1], measuring the similarity of the "
809
803
"sequences. As a rule of thumb, a :meth:`ratio` value over 0.6 means the "
@@ -812,13 +806,13 @@ msgstr ""
812
806
":meth:`ratio` は、[0, 1] の範囲の値を返し、シーケンスの類似度を測ります。経験によると、 :meth:`ratio` "
813
807
"の値が0.6を超えると、シーケンスがよく似ていることを示します:"
814
808
815
- #: ../../library/difflib.rst:588
809
+ #: ../../library/difflib.rst:589
816
810
msgid ""
817
811
"If you're only interested in where the sequences match, "
818
812
":meth:`get_matching_blocks` is handy:"
819
813
msgstr "シーケンスのどこがマッチしているかにだけ興味のある時には :meth:`get_matching_blocks` が手軽でしょう:"
820
814
821
- #: ../../library/difflib.rst:597
815
+ #: ../../library/difflib.rst:598
822
816
msgid ""
823
817
"Note that the last tuple returned by :meth:`get_matching_blocks` is always a"
824
818
" dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last"
@@ -827,21 +821,21 @@ msgstr ""
827
821
":meth:`get_matching_blocks` が返す最後のタプルが常にダミーであることに注目してください。このダミーは ``(len(a), "
828
822
"len(b), 0)`` であり、これはタプルの最後の要素(マッチする要素の数)が ``0`` となる唯一のケースです。"
829
823
830
- #: ../../library/difflib.rst:601
824
+ #: ../../library/difflib.rst:602
831
825
msgid ""
832
826
"If you want to know how to change the first sequence into the second, use "
833
827
":meth:`get_opcodes`:"
834
828
msgstr "はじめのシーケンスがどのようにして2番目のものになるのかを知るには、 :meth:`get_opcodes` を使います:"
835
829
836
- #: ../../library/difflib.rst:612
830
+ #: ../../library/difflib.rst:613
837
831
msgid ""
838
832
"The :func:`get_close_matches` function in this module which shows how simple"
839
833
" code building on :class:`SequenceMatcher` can be used to do useful work."
840
834
msgstr ""
841
835
":class:`SequenceMatcher` を使った、シンプルで使えるコードを知るには、このモジュールの関数 "
842
836
":func:`get_close_matches` を参照してください。"
843
837
844
- #: ../../library/difflib.rst:616
838
+ #: ../../library/difflib.rst:617
845
839
msgid ""
846
840
"`Simple version control recipe "
847
841
"<https://code.activestate.com/recipes/576729/>`_ for a small application "
@@ -851,11 +845,11 @@ msgstr ""
851
845
"<https://code.activestate.com/recipes/576729/>`_ :class:`SequenceMatcher` "
852
846
"で作った小規模アプリケーション。"
853
847
854
- #: ../../library/difflib.rst:624
848
+ #: ../../library/difflib.rst:625
855
849
msgid "Differ Objects"
856
850
msgstr "Differ オブジェクト"
857
851
858
- #: ../../library/difflib.rst:626
852
+ #: ../../library/difflib.rst:627
859
853
msgid ""
860
854
"Note that :class:`Differ`\\ -generated deltas make no claim to be "
861
855
"**minimal** diffs. To the contrary, minimal diffs are often counter-"
@@ -867,18 +861,18 @@ msgstr ""
867
861
":class:`Differ` オブジェクトによって生成された差分が **最小** "
868
862
"であるなどとは言いません。むしろ、最小の差分はしばしば直観に反しています。その理由は、どこでもできるとなれば一致を見いだしてしまうからで、ときには思いがけなく100ページも離れたマッチになってしまうのです。一致点を互いに隣接したマッチに制限することで、場合によって長めの差分を出力するというコストを掛けることにはなっても、ある種の局所性を保つことができるのです。"
869
863
870
- #: ../../library/difflib.rst:632
864
+ #: ../../library/difflib.rst:633
871
865
msgid "The :class:`Differ` class has this constructor:"
872
866
msgstr ":class:`Differ` は、以下のようなコンストラクタを持ちます:"
873
867
874
- #: ../../library/difflib.rst:637
868
+ #: ../../library/difflib.rst:638
875
869
msgid ""
876
870
"Optional keyword parameters *linejunk* and *charjunk* are for filter "
877
871
"functions (or ``None``):"
878
872
msgstr ""
879
873
"オプションのキーワードパラメータ *linejunk* と *charjunk* は、フィルタ関数を渡します (使わないときは ``None``):"
880
874
881
- #: ../../library/difflib.rst:640
875
+ #: ../../library/difflib.rst:641
882
876
msgid ""
883
877
"*linejunk*: A function that accepts a single string argument, and returns "
884
878
"true if the string is junk. The default is ``None``, meaning that no line "
@@ -887,7 +881,7 @@ msgstr ""
887
881
"*linejunk*: ひとつの文字列引数を受け取る関数です。文字列が junk のときに真を返します。デフォルトでは、``None`` "
888
882
"であり、どんな行であっても junk とは見なされません。"
889
883
890
- #: ../../library/difflib.rst:644
884
+ #: ../../library/difflib.rst:645
891
885
msgid ""
892
886
"*charjunk*: A function that accepts a single character argument (a string of"
893
887
" length 1), and returns true if the character is junk. The default is "
@@ -896,7 +890,7 @@ msgstr ""
896
890
"*charjunk*: この関数は文字(長さ1の文字列)を引数として受け取り、文字が junk であるときに真を返します。デフォルトは ``None``"
897
891
" であり、どんな文字も junk とは見なされません。"
898
892
899
- #: ../../library/difflib.rst:648
893
+ #: ../../library/difflib.rst:649
900
894
msgid ""
901
895
"These junk-filtering functions speed up matching to find differences and do "
902
896
"not cause any differing lines or characters to be ignored. Read the "
@@ -906,18 +900,18 @@ msgstr ""
906
900
"これらの junk フィルター関数により、差分を発見するマッチングが高速化し、差分の行や文字が無視されることがなくなります。説明については、 "
907
901
":meth:`~SequenceMatcher.find_longest_match` メソッドの *isjunk* 引数の説明をご覧ください。"
908
902
909
- #: ../../library/difflib.rst:654
903
+ #: ../../library/difflib.rst:655
910
904
msgid ""
911
905
":class:`Differ` objects are used (deltas generated) via a single method:"
912
906
msgstr ":class:`Differ` オブジェクトは、以下の1つのメソッドを通して利用されます。(差分を生成します):"
913
907
914
- #: ../../library/difflib.rst:659
908
+ #: ../../library/difflib.rst:660
915
909
msgid ""
916
910
"Compare two sequences of lines, and generate the delta (a sequence of "
917
911
"lines)."
918
912
msgstr "文字列からなる2つのシーケンスを比較し、差分(を表す文字列からなるシーケンス)を生成します。"
919
913
920
- #: ../../library/difflib.rst:661
914
+ #: ../../library/difflib.rst:662
921
915
msgid ""
922
916
"Each sequence must contain individual single-line strings ending with "
923
917
"newlines. Such sequences can be obtained from the "
@@ -930,11 +924,11 @@ msgstr ""
930
924
"メソッドによって得ることができます。(得られる)差分は改行文字で終了する文字列のシーケンスとして得られ、ファイル風オブジェクトの "
931
925
":meth:`~io.IOBase.writelines` メソッドによって出力できる形になっています。"
932
926
933
- #: ../../library/difflib.rst:672
927
+ #: ../../library/difflib.rst:673
934
928
msgid "Differ Example"
935
929
msgstr "Differ の例"
936
930
937
- #: ../../library/difflib.rst:674
931
+ #: ../../library/difflib.rst:675
938
932
msgid ""
939
933
"This example compares two texts. First we set up the texts, sequences of "
940
934
"individual single-line strings ending with newlines (such sequences can also"
@@ -944,11 +938,11 @@ msgstr ""
944
938
"以下の例は2つのテキストを比較しています。最初に、テキストを行毎に改行で終わる文字列のシーケンスにセットアップします "
945
939
"(そのようなシーケンスは、ファイル風オブジェクトの :meth:`~io.BaseIO.readlines` メソッドからも得ることができます):"
946
940
947
- #: ../../library/difflib.rst:693
941
+ #: ../../library/difflib.rst:694
948
942
msgid "Next we instantiate a Differ object:"
949
943
msgstr "次に Differ オブジェクトをインスタンス化します:"
950
944
951
- #: ../../library/difflib.rst:697
945
+ #: ../../library/difflib.rst:698
952
946
msgid ""
953
947
"Note that when instantiating a :class:`Differ` object we may pass functions "
954
948
"to filter out line and character \" junk.\" See the :meth:`Differ` "
@@ -957,23 +951,23 @@ msgstr ""
957
951
"注意: :class:`Differ` オブジェクトをインスタンス化するとき、行 junk と文字 junk "
958
952
"をフィルタリングする関数を渡すことができます。詳細は :meth:`Differ` コンストラクタを参照してください。"
959
953
960
- #: ../../library/difflib.rst:701
954
+ #: ../../library/difflib.rst:702
961
955
msgid "Finally, we compare the two:"
962
956
msgstr "最後に、2つを比較します:"
963
957
964
- #: ../../library/difflib.rst:705
958
+ #: ../../library/difflib.rst:706
965
959
msgid "``result`` is a list of strings, so let's pretty-print it:"
966
960
msgstr "``result`` は文字列のリストなので、pretty-printしてみましょう:"
967
961
968
- #: ../../library/difflib.rst:720
962
+ #: ../../library/difflib.rst:721
969
963
msgid "As a single multi-line string it looks like this:"
970
964
msgstr "これは、複数行の文字列として、次のように出力されます:"
971
965
972
- #: ../../library/difflib.rst:739
966
+ #: ../../library/difflib.rst:740
973
967
msgid "A command-line interface to difflib"
974
968
msgstr "difflib のコマンドラインインタフェース"
975
969
976
- #: ../../library/difflib.rst:741
970
+ #: ../../library/difflib.rst:742
977
971
msgid ""
978
972
"This example shows how to use difflib to create a ``diff``-like utility. It "
979
973
"is also contained in the Python source distribution, as "
0 commit comments