88msgstr ""
99"Project-Id-Version : Python 3.7\n "
1010"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 "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator : Akihiro Uchida <uchida@turbare.net>, 2017\n "
1414"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -112,7 +112,7 @@ msgstr ":class:`Differ` クラスによる差分の各行は、2文字のコー
112112msgid "Code"
113113msgstr "コード"
114114
115- #: ../../library/difflib.rst:68 ../../library/difflib.rst:489
115+ #: ../../library/difflib.rst:68 ../../library/difflib.rst:490
116116msgid "Meaning"
117117msgstr "意味"
118118
@@ -657,27 +657,21 @@ msgstr "このメソッドは :term:`named tuple` ``Match(a, b, size)`` を返
657657
658658#: ../../library/difflib.rst:460
659659msgid ""
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*."
663663msgstr ""
664- "マッチしたシーケンス中で個別にマッチしたシーケンスをあらわす、3つの値のリストを返します。それぞれの値は ``(i, j, n)`` "
665- "という形式であらわされ、``a[i:i+n] == b[j:j+n]`` という関係を意味します。3つの値は *i* と *j* "
666- "の間で単調に増加します。"
667664
668- #: ../../library/difflib.rst:464
665+ #: ../../library/difflib.rst:465
669666msgid ""
670667"The last triple is a dummy, and has the value ``(len(a), len(b), 0)``. It "
671668"is the only triple with ``n == 0``. If ``(i, j, n)`` and ``(i', j', n')`` "
672669"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 "
674671"triples always describe non-adjacent equal blocks."
675672msgstr ""
676- "最後のタプルはダミーで、``(len(a), len(b), 0)`` という値を持ちます。これは ``n == 0`` である唯一のタプルです。もし "
677- "``(i, j, n)`` と ``(i', j', n')`` がリストで並んでいる3つ組で、2つ目が最後の3つ組でなければ、``i+n != "
678- "i'`` または ``j+n != j'`` です。言い換えると並んでいる3つ組は常に隣接していない同じブロックを表しています。"
679673
680- #: ../../library/difflib.rst:481
674+ #: ../../library/difflib.rst:482
681675msgid ""
682676"Return list of 5-tuples describing how to turn *a* into *b*. Each tuple is "
683677"of the form ``(tag, i1, i2, j1, j2)``. The first tuple has ``i1 == j1 == "
@@ -688,57 +682,57 @@ msgstr ""
688682"という形式であらわされます。最初のタプルは ``i1 == j1 == 0`` であり、*i1* はその前にあるタプルの *i2* と同じ値です。同様に"
689683" *j1* は前の *j2* と同じ値になります。"
690684
691- #: ../../library/difflib.rst:486
685+ #: ../../library/difflib.rst:487
692686msgid "The *tag* values are strings, with these meanings:"
693687msgstr "*tag* の値は文字列であり、次のような意味です:"
694688
695- #: ../../library/difflib.rst:489
689+ #: ../../library/difflib.rst:490
696690msgid "Value"
697691msgstr "値"
698692
699- #: ../../library/difflib.rst:491
693+ #: ../../library/difflib.rst:492
700694msgid "``'replace'``"
701695msgstr "``'replace'``"
702696
703- #: ../../library/difflib.rst:491
697+ #: ../../library/difflib.rst:492
704698msgid "``a[i1:i2]`` should be replaced by ``b[j1:j2]``."
705699msgstr "``a[i1:i2]`` は ``b[j1:j2]`` に置き換えられる。"
706700
707- #: ../../library/difflib.rst:494
701+ #: ../../library/difflib.rst:495
708702msgid "``'delete'``"
709703msgstr "``'delete'``"
710704
711- #: ../../library/difflib.rst:494
705+ #: ../../library/difflib.rst:495
712706msgid "``a[i1:i2]`` should be deleted. Note that ``j1 == j2`` in this case."
713707msgstr "``a[i1:i2]`` は削除される。この時、``j1 == j2`` である。"
714708
715- #: ../../library/difflib.rst:497
709+ #: ../../library/difflib.rst:498
716710msgid "``'insert'``"
717711msgstr "``'insert'``"
718712
719- #: ../../library/difflib.rst:497
713+ #: ../../library/difflib.rst:498
720714msgid ""
721715"``b[j1:j2]`` should be inserted at ``a[i1:i1]``. Note that ``i1 == i2`` in "
722716"this case."
723717msgstr "``b[j1:j2]`` が ``a[i1:i1]`` に挿入される。この時 ``i1 == i2`` である。"
724718
725- #: ../../library/difflib.rst:501
719+ #: ../../library/difflib.rst:502
726720msgid "``'equal'``"
727721msgstr "``'equal'``"
728722
729- #: ../../library/difflib.rst:501
723+ #: ../../library/difflib.rst:502
730724msgid "``a[i1:i2] == b[j1:j2]`` (the sub-sequences are equal)."
731725msgstr "``a[i1:i2] == b[j1:j2]`` (サブシーケンスは等しい)."
732726
733- #: ../../library/difflib.rst:505
727+ #: ../../library/difflib.rst:506
734728msgid "For example::"
735729msgstr "例えば::"
736730
737- #: ../../library/difflib.rst:522
731+ #: ../../library/difflib.rst:523
738732msgid "Return a :term:`generator` of groups with up to *n* lines of context."
739733msgstr "最大 *n* 行までのコンテクストを含むグループを生成するような、ジェネレータ(:term:`generator`)を返します。"
740734
741- #: ../../library/difflib.rst:524
735+ #: ../../library/difflib.rst:525
742736msgid ""
743737"Starting with the groups returned by :meth:`get_opcodes`, this method splits"
744738" out smaller change clusters and eliminates intervening ranges which have no"
@@ -747,17 +741,17 @@ msgstr ""
747741"このメソッドは、 :meth:`get_opcodes` "
748742"で返されるグループの中から、似たような差異のかたまりに分け、間に挟まっている変更の無い部分を省きます。"
749743
750- #: ../../library/difflib.rst:528
744+ #: ../../library/difflib.rst:529
751745msgid "The groups are returned in the same format as :meth:`get_opcodes`."
752746msgstr "グループは :meth:`get_opcodes` と同じ書式で返されます。"
753747
754- #: ../../library/difflib.rst:533
748+ #: ../../library/difflib.rst:534
755749msgid ""
756750"Return a measure of the sequences' similarity as a float in the range [0, "
757751"1]."
758752msgstr "[0, 1] の範囲の浮動小数点数で、シーケンスの類似度を測る値を返します。"
759753
760- #: ../../library/difflib.rst:536
754+ #: ../../library/difflib.rst:537
761755msgid ""
762756"Where T is the total number of elements in both sequences, and M is the "
763757"number of matches, this is 2.0\\ *M / T. Note that this is ``1.0`` if the "
@@ -766,7 +760,7 @@ msgstr ""
766760"T が2つのシーケンスの要素数の総計だと仮定し、M をマッチした数とすると、この値は 2.0\\ *M / T "
767761"であらわされます。もしシーケンスがまったく同じ場合、値は ``1.0`` となり、まったく異なる場合には ``0.0`` となります。"
768762
769- #: ../../library/difflib.rst:540
763+ #: ../../library/difflib.rst:541
770764msgid ""
771765"This is expensive to compute if :meth:`get_matching_blocks` or "
772766":meth:`get_opcodes` hasn't already been called, in which case you may want "
@@ -777,15 +771,15 @@ msgstr ""
777771"がまだ呼び出されていない場合には非常にコストが高いです。この場合、上限を素早く計算するために、 :meth:`quick_ratio` もしくは "
778772":meth:`real_quick_ratio` を最初に試してみる方がいいかもしれません。"
779773
780- #: ../../library/difflib.rst:548
774+ #: ../../library/difflib.rst:549
781775msgid "Return an upper bound on :meth:`ratio` relatively quickly."
782776msgstr ":meth:`ratio` の上界を、より高速に計算します。"
783777
784- #: ../../library/difflib.rst:553
778+ #: ../../library/difflib.rst:554
785779msgid "Return an upper bound on :meth:`ratio` very quickly."
786780msgstr ":meth:`ratio` の上界を、非常に高速に計算します。"
787781
788- #: ../../library/difflib.rst:556
782+ #: ../../library/difflib.rst:557
789783msgid ""
790784"The three methods that return the ratio of matching to total characters can "
791785"give different results due to differing levels of approximation, although "
@@ -795,15 +789,15 @@ msgstr ""
795789"この文字列全体のマッチ率を返す3つのメソッドは、精度の異なる近似値を返します。 :meth:`quick_ratio` と "
796790":meth:`real_quick_ratio` は、常に :meth:`ratio` 以上の値を返します:"
797791
798- #: ../../library/difflib.rst:573
792+ #: ../../library/difflib.rst:574
799793msgid "SequenceMatcher Examples"
800794msgstr "SequenceMatcher の例"
801795
802- #: ../../library/difflib.rst:575
796+ #: ../../library/difflib.rst:576
803797msgid "This example compares two strings, considering blanks to be \" junk\" :"
804798msgstr "この例は2つの文字列を比較します。空白を \" junk\" とします:"
805799
806- #: ../../library/difflib.rst:581
800+ #: ../../library/difflib.rst:582
807801msgid ""
808802":meth:`ratio` returns a float in [0, 1], measuring the similarity of the "
809803"sequences. As a rule of thumb, a :meth:`ratio` value over 0.6 means the "
@@ -812,13 +806,13 @@ msgstr ""
812806":meth:`ratio` は、[0, 1] の範囲の値を返し、シーケンスの類似度を測ります。経験によると、 :meth:`ratio` "
813807"の値が0.6を超えると、シーケンスがよく似ていることを示します:"
814808
815- #: ../../library/difflib.rst:588
809+ #: ../../library/difflib.rst:589
816810msgid ""
817811"If you're only interested in where the sequences match, "
818812":meth:`get_matching_blocks` is handy:"
819813msgstr "シーケンスのどこがマッチしているかにだけ興味のある時には :meth:`get_matching_blocks` が手軽でしょう:"
820814
821- #: ../../library/difflib.rst:597
815+ #: ../../library/difflib.rst:598
822816msgid ""
823817"Note that the last tuple returned by :meth:`get_matching_blocks` is always a"
824818" dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last"
@@ -827,21 +821,21 @@ msgstr ""
827821":meth:`get_matching_blocks` が返す最後のタプルが常にダミーであることに注目してください。このダミーは ``(len(a), "
828822"len(b), 0)`` であり、これはタプルの最後の要素(マッチする要素の数)が ``0`` となる唯一のケースです。"
829823
830- #: ../../library/difflib.rst:601
824+ #: ../../library/difflib.rst:602
831825msgid ""
832826"If you want to know how to change the first sequence into the second, use "
833827":meth:`get_opcodes`:"
834828msgstr "はじめのシーケンスがどのようにして2番目のものになるのかを知るには、 :meth:`get_opcodes` を使います:"
835829
836- #: ../../library/difflib.rst:612
830+ #: ../../library/difflib.rst:613
837831msgid ""
838832"The :func:`get_close_matches` function in this module which shows how simple"
839833" code building on :class:`SequenceMatcher` can be used to do useful work."
840834msgstr ""
841835":class:`SequenceMatcher` を使った、シンプルで使えるコードを知るには、このモジュールの関数 "
842836":func:`get_close_matches` を参照してください。"
843837
844- #: ../../library/difflib.rst:616
838+ #: ../../library/difflib.rst:617
845839msgid ""
846840"`Simple version control recipe "
847841"<https://code.activestate.com/recipes/576729/>`_ for a small application "
@@ -851,11 +845,11 @@ msgstr ""
851845"<https://code.activestate.com/recipes/576729/>`_ :class:`SequenceMatcher` "
852846"で作った小規模アプリケーション。"
853847
854- #: ../../library/difflib.rst:624
848+ #: ../../library/difflib.rst:625
855849msgid "Differ Objects"
856850msgstr "Differ オブジェクト"
857851
858- #: ../../library/difflib.rst:626
852+ #: ../../library/difflib.rst:627
859853msgid ""
860854"Note that :class:`Differ`\\ -generated deltas make no claim to be "
861855"**minimal** diffs. To the contrary, minimal diffs are often counter-"
@@ -867,18 +861,18 @@ msgstr ""
867861":class:`Differ` オブジェクトによって生成された差分が **最小** "
868862"であるなどとは言いません。むしろ、最小の差分はしばしば直観に反しています。その理由は、どこでもできるとなれば一致を見いだしてしまうからで、ときには思いがけなく100ページも離れたマッチになってしまうのです。一致点を互いに隣接したマッチに制限することで、場合によって長めの差分を出力するというコストを掛けることにはなっても、ある種の局所性を保つことができるのです。"
869863
870- #: ../../library/difflib.rst:632
864+ #: ../../library/difflib.rst:633
871865msgid "The :class:`Differ` class has this constructor:"
872866msgstr ":class:`Differ` は、以下のようなコンストラクタを持ちます:"
873867
874- #: ../../library/difflib.rst:637
868+ #: ../../library/difflib.rst:638
875869msgid ""
876870"Optional keyword parameters *linejunk* and *charjunk* are for filter "
877871"functions (or ``None``):"
878872msgstr ""
879873"オプションのキーワードパラメータ *linejunk* と *charjunk* は、フィルタ関数を渡します (使わないときは ``None``):"
880874
881- #: ../../library/difflib.rst:640
875+ #: ../../library/difflib.rst:641
882876msgid ""
883877"*linejunk*: A function that accepts a single string argument, and returns "
884878"true if the string is junk. The default is ``None``, meaning that no line "
@@ -887,7 +881,7 @@ msgstr ""
887881"*linejunk*: ひとつの文字列引数を受け取る関数です。文字列が junk のときに真を返します。デフォルトでは、``None`` "
888882"であり、どんな行であっても junk とは見なされません。"
889883
890- #: ../../library/difflib.rst:644
884+ #: ../../library/difflib.rst:645
891885msgid ""
892886"*charjunk*: A function that accepts a single character argument (a string of"
893887" length 1), and returns true if the character is junk. The default is "
@@ -896,7 +890,7 @@ msgstr ""
896890"*charjunk*: この関数は文字(長さ1の文字列)を引数として受け取り、文字が junk であるときに真を返します。デフォルトは ``None``"
897891" であり、どんな文字も junk とは見なされません。"
898892
899- #: ../../library/difflib.rst:648
893+ #: ../../library/difflib.rst:649
900894msgid ""
901895"These junk-filtering functions speed up matching to find differences and do "
902896"not cause any differing lines or characters to be ignored. Read the "
@@ -906,18 +900,18 @@ msgstr ""
906900"これらの junk フィルター関数により、差分を発見するマッチングが高速化し、差分の行や文字が無視されることがなくなります。説明については、 "
907901":meth:`~SequenceMatcher.find_longest_match` メソッドの *isjunk* 引数の説明をご覧ください。"
908902
909- #: ../../library/difflib.rst:654
903+ #: ../../library/difflib.rst:655
910904msgid ""
911905":class:`Differ` objects are used (deltas generated) via a single method:"
912906msgstr ":class:`Differ` オブジェクトは、以下の1つのメソッドを通して利用されます。(差分を生成します):"
913907
914- #: ../../library/difflib.rst:659
908+ #: ../../library/difflib.rst:660
915909msgid ""
916910"Compare two sequences of lines, and generate the delta (a sequence of "
917911"lines)."
918912msgstr "文字列からなる2つのシーケンスを比較し、差分(を表す文字列からなるシーケンス)を生成します。"
919913
920- #: ../../library/difflib.rst:661
914+ #: ../../library/difflib.rst:662
921915msgid ""
922916"Each sequence must contain individual single-line strings ending with "
923917"newlines. Such sequences can be obtained from the "
@@ -930,11 +924,11 @@ msgstr ""
930924"メソッドによって得ることができます。(得られる)差分は改行文字で終了する文字列のシーケンスとして得られ、ファイル風オブジェクトの "
931925":meth:`~io.IOBase.writelines` メソッドによって出力できる形になっています。"
932926
933- #: ../../library/difflib.rst:672
927+ #: ../../library/difflib.rst:673
934928msgid "Differ Example"
935929msgstr "Differ の例"
936930
937- #: ../../library/difflib.rst:674
931+ #: ../../library/difflib.rst:675
938932msgid ""
939933"This example compares two texts. First we set up the texts, sequences of "
940934"individual single-line strings ending with newlines (such sequences can also"
@@ -944,11 +938,11 @@ msgstr ""
944938"以下の例は2つのテキストを比較しています。最初に、テキストを行毎に改行で終わる文字列のシーケンスにセットアップします "
945939"(そのようなシーケンスは、ファイル風オブジェクトの :meth:`~io.BaseIO.readlines` メソッドからも得ることができます):"
946940
947- #: ../../library/difflib.rst:693
941+ #: ../../library/difflib.rst:694
948942msgid "Next we instantiate a Differ object:"
949943msgstr "次に Differ オブジェクトをインスタンス化します:"
950944
951- #: ../../library/difflib.rst:697
945+ #: ../../library/difflib.rst:698
952946msgid ""
953947"Note that when instantiating a :class:`Differ` object we may pass functions "
954948"to filter out line and character \" junk.\" See the :meth:`Differ` "
@@ -957,23 +951,23 @@ msgstr ""
957951"注意: :class:`Differ` オブジェクトをインスタンス化するとき、行 junk と文字 junk "
958952"をフィルタリングする関数を渡すことができます。詳細は :meth:`Differ` コンストラクタを参照してください。"
959953
960- #: ../../library/difflib.rst:701
954+ #: ../../library/difflib.rst:702
961955msgid "Finally, we compare the two:"
962956msgstr "最後に、2つを比較します:"
963957
964- #: ../../library/difflib.rst:705
958+ #: ../../library/difflib.rst:706
965959msgid "``result`` is a list of strings, so let's pretty-print it:"
966960msgstr "``result`` は文字列のリストなので、pretty-printしてみましょう:"
967961
968- #: ../../library/difflib.rst:720
962+ #: ../../library/difflib.rst:721
969963msgid "As a single multi-line string it looks like this:"
970964msgstr "これは、複数行の文字列として、次のように出力されます:"
971965
972- #: ../../library/difflib.rst:739
966+ #: ../../library/difflib.rst:740
973967msgid "A command-line interface to difflib"
974968msgstr "difflib のコマンドラインインタフェース"
975969
976- #: ../../library/difflib.rst:741
970+ #: ../../library/difflib.rst:742
977971msgid ""
978972"This example shows how to use difflib to create a ``diff``-like utility. It "
979973"is also contained in the Python source distribution, as "
0 commit comments