Skip to content

Commit f9da08c

Browse files
committed
avances hasta 85%
1 parent 74d050b commit f9da08c

File tree

1 file changed

+123
-21
lines changed

1 file changed

+123
-21
lines changed

library/difflib.po

+123-21
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
14-
"PO-Revision-Date: 2020-07-26 16:02+0000\n"
14+
"PO-Revision-Date: 2020-07-26 19:27+0000\n"
1515
"Language-Team: python-doc-es\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
@@ -650,18 +650,25 @@ msgid ""
650650
"where they occur. All three are reset whenever *b* is reset with :meth:"
651651
"`set_seqs` or :meth:`set_seq2`."
652652
msgstr ""
653+
"Los objetos `SequenceMatcher` reciben tres atributos: *bjunk* es el conjunto "
654+
"de elementos de *b* para los cuales *isjunk* es ``True``; *bpopular* es el "
655+
"set de elementos que no son basura considerados populares por la heurística "
656+
"(si no es que fue deshabilitada); *b2j* es un diccionario que mapea elementos "
657+
"de *b* a una lista de posiciones donde estos ocurren. Los tres atributos son "
658+
"reseteados cuando *b* es reseteado mediante :meth:`set_seqs` or :meth:"
659+
"`set_seq2`."
653660

654661
#: ../Doc/library/difflib.rst:397
655662
msgid "The *bjunk* and *bpopular* attributes."
656-
msgstr ""
663+
msgstr "Los atributos *bjunk* y *bpopular*."
657664

658665
#: ../Doc/library/difflib.rst:400
659666
msgid ":class:`SequenceMatcher` objects have the following methods:"
660-
msgstr ""
667+
msgstr "Los objetos :class:`SequenceMatcher` tienen los siguientes métodos:"
661668

662669
#: ../Doc/library/difflib.rst:404
663670
msgid "Set the two sequences to be compared."
664-
msgstr ""
671+
msgstr "Establece las dos secuencias a ser comparadas."
665672

666673
#: ../Doc/library/difflib.rst:406
667674
msgid ""
@@ -670,24 +677,36 @@ msgid ""
670677
"sequences, use :meth:`set_seq2` to set the commonly used sequence once and "
671678
"call :meth:`set_seq1` repeatedly, once for each of the other sequences."
672679
msgstr ""
680+
":class:`SequenceMatcher` calcula y almacena información detallada sobre la "
681+
"segunda secuencia, con lo cual si quieres comparar una secuencia contra "
682+
"muchas otras, usa :meth:`set_seq2` para establecer la secuencia común una "
683+
"sola vez y llamar :meth:`set_seq1` repetidamente, una vez por cada una de las "
684+
"otras secuencias."
673685

674686
#: ../Doc/library/difflib.rst:414
675687
msgid ""
676688
"Set the first sequence to be compared. The second sequence to be compared is "
677689
"not changed."
678690
msgstr ""
691+
"Establece la primer secuencia a ser comparada. La segunda secuencia a ser "
692+
"comparada no es modificada."
679693

680694
#: ../Doc/library/difflib.rst:420
681695
msgid ""
682696
"Set the second sequence to be compared. The first sequence to be compared is "
683697
"not changed."
684698
msgstr ""
699+
"Establece la segunda secuencia a ser comparada. La primera secuencia a ser "
700+
"comparada no es modificada."
685701

686702
#: ../Doc/library/difflib.rst:426
687703
msgid "Find longest matching block in ``a[alo:ahi]`` and ``b[blo:bhi]``."
688704
msgstr ""
705+
"Encuentra el bloque de coincidencia mas largo en ``a[alo:ahi]`` y ``b[blo:"
706+
"bhi]``."
689707

690708
#: ../Doc/library/difflib.rst:428
709+
#, fuzzy
691710
msgid ""
692711
"If *isjunk* was omitted or ``None``, :meth:`find_longest_match` returns ``(i, "
693712
"j, k)`` such that ``a[i:i+k]`` is equal to ``b[j:j+k]``, where ``alo <= i <= i"
@@ -698,15 +717,31 @@ msgid ""
698717
"maximal matching blocks that start earliest in *a*, return the one that "
699718
"starts earliest in *b*."
700719
msgstr ""
720+
"Si *isjunk* fue omitido o es ``None``, :meth:`find_longest_match` devuelve "
721+
"``(i, j, k)`` tal que ``a[i:i+k]`` es igual a ``b[j:j+k]``, donde ``alo <= i "
722+
"<= i+k <= ahi`` y ``blo <= j <= j+k <= bhi``. Para todo ``(i', j', k')`` "
723+
"cumpliendo esas condiciones, las condiciones adicionales ``k >= k'``, ``i <= "
724+
"i'``, y si ``i == i'``, ``j <= j'`` también se cumplen. En otras palabras, de "
725+
"todos los bloques coincidentes máximos, devuelve aquel que comienza antes en "
726+
"*a*, y de todos esos bloques coincidentes máximos que comienzan antes en *a*, "
727+
"devuelve aquel que comienza antes en *b*."
701728

702729
#: ../Doc/library/difflib.rst:441
730+
#, fuzzy
703731
msgid ""
704732
"If *isjunk* was provided, first the longest matching block is determined as "
705733
"above, but with the additional restriction that no junk element appears in "
706734
"the block. Then that block is extended as far as possible by matching (only) "
707735
"junk elements on both sides. So the resulting block never matches on junk "
708736
"except as identical junk happens to be adjacent to an interesting match."
709737
msgstr ""
738+
"Si se porporcionó *isjunk*, primero se determina el bloque coincidente mas "
739+
"largo como fue indicado anteriormente, pero con la restricción adicional de "
740+
"que no aparezca ningún elemento no deseado en el bloque. Entonces, ese bloque "
741+
"se extiende tan lejos como sea posible haciendo coincidir (solo) elementos no "
742+
"deseados de ambos lados. Por lo tanto, el bloque resultante nunca hará "
743+
"coincidir ningún elemento no deseado, excepto que un elemento no deseado "
744+
"idéntico pase a ser adyacente a una coincidencia interesante."
710745

711746
#: ../Doc/library/difflib.rst:448
712747
msgid ""
@@ -715,21 +750,30 @@ msgid ""
715750
"second sequence directly. Instead only the ``'abcd'`` can match, and matches "
716751
"the leftmost ``'abcd'`` in the second sequence:"
717752
msgstr ""
753+
"Este es el mismo ejemplo que el mostrado anteriormente, pero considerando "
754+
"elementos en blanco como no deseados. Esto previene que ``' abcd'`` sea "
755+
"coincidente con ``' abcd'`` en el final de la segunda secuencia directamente. "
756+
"En cambio, sólo el ``'abcd'`` puede coincidir, y coincide con el ``'abcd'`` "
757+
"que se encuentre mas a la izquierda en la segunda secuencia:"
718758

719759
#: ../Doc/library/difflib.rst:457
720760
msgid "If no blocks match, this returns ``(alo, blo, 0)``."
721-
msgstr ""
761+
msgstr "Si no coincide ningún bloque, esto devuelve ``(alo, blo, 0)``."
722762

723763
#: ../Doc/library/difflib.rst:459
724764
msgid "This method returns a :term:`named tuple` ``Match(a, b, size)``."
725-
msgstr ""
765+
msgstr "Este método devuelve un :term:`named tuple` ``Match(a, b, size)``."
726766

727767
#: ../Doc/library/difflib.rst:464
728768
msgid ""
729769
"Return list of triples describing non-overlapping matching subsequences. Each "
730770
"triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == b[j:j"
731771
"+n]``. The triples are monotonically increasing in *i* and *j*."
732772
msgstr ""
773+
"Devuelve una lista de triplas (tuplas de tres elementos) describiendo "
774+
"subsecuencias coincidentes no superpuestas. Cada tripla sigue el formato "
775+
"``(i, j, n)``, y significa que ``a[i:i+n] == b[j:j+n]``. Las triplas son "
776+
"monótonamente crecientes en *i* y *j*."
733777

734778
#: ../Doc/library/difflib.rst:469
735779
msgid ""
@@ -739,6 +783,11 @@ msgid ""
739783
"list, then ``i+n < i'`` or ``j+n < j'``; in other words, adjacent triples "
740784
"always describe non-adjacent equal blocks."
741785
msgstr ""
786+
"La última tripla es un objeto ficticio (dummy), y tiene el valor ``(len(a), "
787+
"len(b), 0)``. Es la única tripla con ``n == 0``. Si ``(i, j, n)`` y ``(i', "
788+
"j', n')`` son triplas adyacentes en la lista, y la segunda no es el último "
789+
"elemento de la lista, entonces ``i+n < i'`` or ``j+n < j'``; en otras "
790+
"palabras, las triplas adyacentes describen bloques iguales no adyacentes."
742791

743792
#: ../Doc/library/difflib.rst:486
744793
msgid ""
@@ -747,100 +796,122 @@ msgid ""
747796
"and remaining tuples have *i1* equal to the *i2* from the preceding tuple, "
748797
"and, likewise, *j1* equal to the previous *j2*."
749798
msgstr ""
799+
"Devuelve una lista de quíntuplas (tuplas de cinco elementos) describiendo "
800+
"como convertir *a* en *b*. Cada tupla tiene la forma ``(tag, i1, i2, j1, "
801+
"j2)``. En la primer tupla se cumple que ``i1 == j1 == 0``, y las tuplas "
802+
"restantes tienen *i1* igual al *i2* de la tupla precedente, y de igual "
803+
"manera, *j1* igual al *j2* de la tupla anterior."
750804

751805
#: ../Doc/library/difflib.rst:491
752806
msgid "The *tag* values are strings, with these meanings:"
753807
msgstr ""
808+
"Los valores de *tag* son cadenas de texto, con el siguiente significado:"
754809

755810
#: ../Doc/library/difflib.rst:494
756811
msgid "Value"
757-
msgstr ""
812+
msgstr "Valor"
758813

759814
#: ../Doc/library/difflib.rst:496
760815
msgid "``'replace'``"
761-
msgstr ""
816+
msgstr "``'replace'``"
762817

763818
#: ../Doc/library/difflib.rst:496
764819
msgid "``a[i1:i2]`` should be replaced by ``b[j1:j2]``."
765-
msgstr ""
820+
msgstr "``a[i1:i2]`` debe ser reemplazado por ``b[j1:j2]``."
766821

767822
#: ../Doc/library/difflib.rst:499
768823
msgid "``'delete'``"
769-
msgstr ""
824+
msgstr "``'delete'``"
770825

771826
#: ../Doc/library/difflib.rst:499
772827
msgid "``a[i1:i2]`` should be deleted. Note that ``j1 == j2`` in this case."
773-
msgstr ""
828+
msgstr "``a[i1:i2]`` debe ser eliminado. Nótese que en este caso ``j1 == j2``."
774829

775830
#: ../Doc/library/difflib.rst:502
776831
msgid "``'insert'``"
777-
msgstr ""
832+
msgstr "``'insert'``"
778833

779834
#: ../Doc/library/difflib.rst:502
780835
msgid ""
781836
"``b[j1:j2]`` should be inserted at ``a[i1:i1]``. Note that ``i1 == i2`` in "
782837
"this case."
783838
msgstr ""
839+
"``b[j1:j2]`` debe ser insertado en ``a[i1:i1]``. Nótese que en este caso ``i1 "
840+
"== i2``."
784841

785842
#: ../Doc/library/difflib.rst:506
786843
msgid "``'equal'``"
787-
msgstr ""
844+
msgstr "``'equal'``"
788845

789846
#: ../Doc/library/difflib.rst:506
790847
msgid "``a[i1:i2] == b[j1:j2]`` (the sub-sequences are equal)."
791-
msgstr ""
848+
msgstr "``a[i1:i2] == b[j1:j2]`` (las subsecuencias son iguales)."
792849

793850
#: ../Doc/library/difflib.rst:510
794851
msgid "For example::"
795-
msgstr ""
852+
msgstr "Por ejemplo:"
796853

797854
#: ../Doc/library/difflib.rst:527
798855
msgid "Return a :term:`generator` of groups with up to *n* lines of context."
799856
msgstr ""
857+
"Devuelve un :term:`generator` de grupos de hasta *n* líneas de contexto."
800858

801859
#: ../Doc/library/difflib.rst:529
802860
msgid ""
803861
"Starting with the groups returned by :meth:`get_opcodes`, this method splits "
804862
"out smaller change clusters and eliminates intervening ranges which have no "
805863
"changes."
806864
msgstr ""
865+
"Empezando con los grupos devueltos por :meth:`get_opcodes`, este método "
866+
"separa grupos con cambios menores y elimina los rangos intermedios que no "
867+
"tienen cambios."
807868

808869
#: ../Doc/library/difflib.rst:533
809870
msgid "The groups are returned in the same format as :meth:`get_opcodes`."
810-
msgstr ""
871+
msgstr "Los grupos son devueltos en el mismo formato que :meth:`get_opcodes`."
811872

812873
#: ../Doc/library/difflib.rst:538
813874
msgid ""
814875
"Return a measure of the sequences' similarity as a float in the range [0, 1]."
815876
msgstr ""
877+
"Devuelve una medida de la similitud de las secuencias como un flotante en el "
878+
"rango [0, 1]."
816879

817880
#: ../Doc/library/difflib.rst:541
818881
msgid ""
819882
"Where T is the total number of elements in both sequences, and M is the "
820883
"number of matches, this is 2.0\\*M / T. Note that this is ``1.0`` if the "
821884
"sequences are identical, and ``0.0`` if they have nothing in common."
822885
msgstr ""
886+
"Donde T es el número total de elementos en ambas secuencias y M es el número "
887+
"de coincidencias, esto es 2.0\\*M / T. Nótese que esto es ``1.0`` si las "
888+
"secuencias son idénticas y ``0.0`` si no tienen nada en común."
823889

824890
#: ../Doc/library/difflib.rst:545
825891
msgid ""
826892
"This is expensive to compute if :meth:`get_matching_blocks` or :meth:"
827893
"`get_opcodes` hasn't already been called, in which case you may want to try :"
828894
"meth:`quick_ratio` or :meth:`real_quick_ratio` first to get an upper bound."
829895
msgstr ""
896+
"Esto es computacionalmente costoso si :meth:`get_matching_blocks` o :meth:"
897+
"`get_opcodes` no fueron ejecutados, in tal caso deberías considerar primero :"
898+
"meth:`quick_ratio` o :meth:`real_quick_ratio` para obtener un límite superior."
830899

831900
#: ../Doc/library/difflib.rst:552
832901
msgid ""
833902
"Caution: The result of a :meth:`ratio` call may depend on the order of the "
834903
"arguments. For instance::"
835904
msgstr ""
905+
"Precaución: El resultado de una llamada a :meth:`ratio` puede depender del "
906+
"orden de los argumentos. Por ejemplo::"
836907

837908
#: ../Doc/library/difflib.rst:563
838909
msgid "Return an upper bound on :meth:`ratio` relatively quickly."
839-
msgstr ""
910+
msgstr "Devuelve un límite superior en :meth:`ratio` relativamente rápido."
840911

841912
#: ../Doc/library/difflib.rst:568
842913
msgid "Return an upper bound on :meth:`ratio` very quickly."
843-
msgstr ""
914+
msgstr "Devuelve un límite superior en :meth:`ratio` muy rápido."
844915

845916
#: ../Doc/library/difflib.rst:571
846917
msgid ""
@@ -849,69 +920,100 @@ msgid ""
849920
"meth:`quick_ratio` and :meth:`real_quick_ratio` are always at least as large "
850921
"as :meth:`ratio`:"
851922
msgstr ""
923+
"Los tres métodos que devuelven la proporción de coincidencias con el total de "
924+
"caracteres pueden dar diferentes resultados debido a los distintos niveles de "
925+
"aproximación, a pesar de que :meth:`quick_ratio` y :meth:`real_quick_ratio` "
926+
"son siempre al menos tan grandes como :meth:`ratio`:"
852927

853928
#: ../Doc/library/difflib.rst:588
854929
msgid "SequenceMatcher Examples"
855-
msgstr ""
930+
msgstr "SequenceMatcher Ejemplos"
856931

857932
#: ../Doc/library/difflib.rst:590
858933
msgid "This example compares two strings, considering blanks to be \"junk\":"
859934
msgstr ""
935+
"Este ejemplo compara dos cadenas de texto, considerando los espacios en "
936+
"blanco como caracteres no deseados:"
860937

861938
#: ../Doc/library/difflib.rst:596
862939
msgid ""
863940
":meth:`ratio` returns a float in [0, 1], measuring the similarity of the "
864941
"sequences. As a rule of thumb, a :meth:`ratio` value over 0.6 means the "
865942
"sequences are close matches:"
866943
msgstr ""
944+
":meth:`ratio` devuelve un flotante en el rango [0, 1], cuantificando la "
945+
"similitud entre las secuencias. Siguiendo la regla del pulgar, un :meth:"
946+
"`ratio` por encima de 0.6 significa que las secuencias son coincidencias "
947+
"cercanas:"
867948

868949
#: ../Doc/library/difflib.rst:603
869950
msgid ""
870951
"If you're only interested in where the sequences match, :meth:"
871952
"`get_matching_blocks` is handy:"
872953
msgstr ""
954+
"Si solamente estás interesado en verificar cuando las secuencias son "
955+
"coincidentes, :meth:`get_matching_blocks` es útil:"
873956

874957
#: ../Doc/library/difflib.rst:612
875958
msgid ""
876959
"Note that the last tuple returned by :meth:`get_matching_blocks` is always a "
877960
"dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last "
878961
"tuple element (number of elements matched) is ``0``."
879962
msgstr ""
963+
"Nótese que la última tupla devuelta por :meth:`get_matching_blocks` es "
964+
"siempre un objeto ficticio (dummy), ``(len(a), len(b), 0)``, y este es el "
965+
"único caso en el cual el último elemento de la tupla (el número de elementos "
966+
"coincidentes) es ``0``."
880967

881968
#: ../Doc/library/difflib.rst:616
882969
msgid ""
883970
"If you want to know how to change the first sequence into the second, use :"
884971
"meth:`get_opcodes`:"
885972
msgstr ""
973+
"Si quieres saber como cambiar la primer secuencia con la segunda, usa :meth:"
974+
"`get_opcodes`:"
886975

887976
#: ../Doc/library/difflib.rst:627
888977
msgid ""
889978
"The :func:`get_close_matches` function in this module which shows how simple "
890979
"code building on :class:`SequenceMatcher` can be used to do useful work."
891980
msgstr ""
981+
"La función :func:`get_close_matches` en este módulo que muestra lo simple que "
982+
"es el código que construye :class:`SequenceMatcher` puede ser utilizada para "
983+
"hacer un trabajo útil:"
892984

893985
#: ../Doc/library/difflib.rst:631
894986
msgid ""
895987
"`Simple version control recipe <https://code.activestate.com/recipes/576729/"
896988
">`_ for a small application built with :class:`SequenceMatcher`."
897989
msgstr ""
990+
"`Una receta simple de un controlador de versiones <https://code.activestate."
991+
"com/recipes/576729/>`_ para una aplicación pequeña construida con :class:"
992+
"`SequenceMatcher`."
898993

899994
#: ../Doc/library/difflib.rst:639
900995
msgid "Differ Objects"
901-
msgstr ""
996+
msgstr "Objetos Differ"
902997

903998
#: ../Doc/library/difflib.rst:641
999+
#, fuzzy
9041000
msgid ""
9051001
"Note that :class:`Differ`\\ -generated deltas make no claim to be **minimal** "
9061002
"diffs. To the contrary, minimal diffs are often counter-intuitive, because "
9071003
"they synch up anywhere possible, sometimes accidental matches 100 pages "
9081004
"apart. Restricting synch points to contiguous matches preserves some notion "
9091005
"of locality, at the occasional cost of producing a longer diff."
9101006
msgstr ""
1007+
"Nótese que los deltas generados por :class:`Differ` no dicen ser diferencias "
1008+
"**mínimas**. Todo lo contrario, las diferencias mínimas suelen ser contra-"
1009+
"intuitivas, ya que se sincronizan en cualquier lugar posible, a veces "
1010+
"coinciden accidentalmente con 100 páginas de diferencia. Restringiendo los "
1011+
"puntos de sincronización a coincidencias contiguas se preserva cierta noción "
1012+
"de cercanía, con el costo adicional de producir diferencias mas largas."
9111013

9121014
#: ../Doc/library/difflib.rst:647
9131015
msgid "The :class:`Differ` class has this constructor:"
914-
msgstr ""
1016+
msgstr "La clase :class:`Differ` tiene el siguiente constructor:"
9151017

9161018
#: ../Doc/library/difflib.rst:652
9171019
msgid ""

0 commit comments

Comments
 (0)