From aeddde2ac31047fecd76cb5bac6e8ed039260371 Mon Sep 17 00:00:00 2001 From: yichung Date: Sat, 13 Oct 2018 20:26:55 +0800 Subject: [PATCH 1/4] Working on floatingpoint --- tutorial/floatingpoint.po | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index 7f712b5cac..434e79d058 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2016-11-19 00:37+0000\n" +"PO-Revision-Date: 2018-10-13 20:21+0800\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -17,21 +17,22 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 2.2\n" #: ../../tutorial/floatingpoint.rst:9 msgid "Floating Point Arithmetic: Issues and Limitations" -msgstr "" +msgstr "浮點數運算:問題與限制" #: ../../tutorial/floatingpoint.rst:14 msgid "" "Floating-point numbers are represented in computer hardware as base 2 " "(binary) fractions. For example, the decimal fraction ::" -msgstr "" +msgstr "在計算機架構中,浮點數透過二進位小數表示。 例如說,在十進位小數中 ::" #: ../../tutorial/floatingpoint.rst:19 msgid "" "has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction ::" -msgstr "" +msgstr "可被分為 1/10 + 2/100 + 5/1000 ,同樣的道理,二進位小數 ::" #: ../../tutorial/floatingpoint.rst:23 msgid "" @@ -39,6 +40,8 @@ msgid "" "only real difference being that the first is written in base 10 fractional " "notation, and the second in base 2." msgstr "" +"可被分為 0/2 + 0/4 + 1/8 。這兩個小數有相同的數值,而唯一真正的不同在於前者以" +"十進位表示,後者以二進位表示。" #: ../../tutorial/floatingpoint.rst:27 msgid "" @@ -47,16 +50,20 @@ msgid "" "point numbers you enter are only approximated by the binary floating-point " "numbers actually stored in the machine." msgstr "" +"不幸的是,大多數十進位小數無法精準地以二進位小數表示。一般的結果為,您輸入的" +"十進位浮點數由實際存在計算機中的二進位浮點數近似。" #: ../../tutorial/floatingpoint.rst:32 msgid "" "The problem is easier to understand at first in base 10. Consider the " "fraction 1/3. You can approximate that as a base 10 fraction::" msgstr "" +"在十進位中,這個問題更容易首先被理解。考慮分數 1/3 ,您可以將其近似為十進位小" +"數 ::" #: ../../tutorial/floatingpoint.rst:37 ../../tutorial/floatingpoint.rst:41 msgid "or, better, ::" -msgstr "" +msgstr "或者,更好的近似::" #: ../../tutorial/floatingpoint.rst:45 msgid "" @@ -64,6 +71,8 @@ msgid "" "result will never be exactly 1/3, but will be an increasingly better " "approximation of 1/3." msgstr "" +"依此類推,不論你願意以多少位數表示小數,最後的結果都無法精準地表示 1/3 ,但你" +"還是能越來越精準的表示 1/3 。" #: ../../tutorial/floatingpoint.rst:49 msgid "" @@ -71,6 +80,8 @@ msgid "" "decimal value 0.1 cannot be represented exactly as a base 2 fraction. In " "base 2, 1/10 is the infinitely repeating fraction ::" msgstr "" +"同樣的道理,不論你願意以多少位數表示二進位小數,十進位小數 0.1 都無法被二進位" +"小數精準的表達。在二進位小數中, 1/10 會是一個無限循環小數 ::" #: ../../tutorial/floatingpoint.rst:55 msgid "" From 878599872ca730b0218645c9b4b76930a4adaff4 Mon Sep 17 00:00:00 2001 From: yichung Date: Tue, 16 Oct 2018 15:48:06 +0800 Subject: [PATCH 2/4] Remove redundant space and fix some rst problem --- tutorial/floatingpoint.po | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index 434e79d058..6d5e8fd613 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2018-10-13 20:21+0800\n" +"PO-Revision-Date: 2018-10-16 15:41+0800\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -27,12 +27,18 @@ msgstr "浮點數運算:問題與限制" msgid "" "Floating-point numbers are represented in computer hardware as base 2 " "(binary) fractions. For example, the decimal fraction ::" -msgstr "在計算機架構中,浮點數透過二進位小數表示。 例如說,在十進位小數中 ::" +msgstr "" +"在計算機架構中,浮點數透過二進位小數表示。例如說,在十進位小數中:\n" +"\n" +" ::" #: ../../tutorial/floatingpoint.rst:19 msgid "" "has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction ::" -msgstr "可被分為 1/10 + 2/100 + 5/1000 ,同樣的道理,二進位小數 ::" +msgstr "" +"可被分為 1/10 + 2/100 + 5/1000,同樣的道理,二進位小數 :\n" +"\n" +"::" #: ../../tutorial/floatingpoint.rst:23 msgid "" @@ -40,7 +46,7 @@ msgid "" "only real difference being that the first is written in base 10 fractional " "notation, and the second in base 2." msgstr "" -"可被分為 0/2 + 0/4 + 1/8 。這兩個小數有相同的數值,而唯一真正的不同在於前者以" +"可被分為 0/2 + 0/4 + 1/8。這兩個小數有相同的數值,而唯一真正的不同在於前者以" "十進位表示,後者以二進位表示。" #: ../../tutorial/floatingpoint.rst:27 @@ -50,7 +56,7 @@ msgid "" "point numbers you enter are only approximated by the binary floating-point " "numbers actually stored in the machine." msgstr "" -"不幸的是,大多數十進位小數無法精準地以二進位小數表示。一般的結果為,您輸入的" +"不幸的是,大多數十進位小數無法精準的以二進位小數表示。一般的結果為,您輸入的" "十進位浮點數由實際存在計算機中的二進位浮點數近似。" #: ../../tutorial/floatingpoint.rst:32 @@ -58,12 +64,17 @@ msgid "" "The problem is easier to understand at first in base 10. Consider the " "fraction 1/3. You can approximate that as a base 10 fraction::" msgstr "" -"在十進位中,這個問題更容易首先被理解。考慮分數 1/3 ,您可以將其近似為十進位小" -"數 ::" +"在十進位中,這個問題更容易被理解。以分數 1/3 為例,您可以將其近似為十進位小" +"數:\n" +"\n" +" ::" #: ../../tutorial/floatingpoint.rst:37 ../../tutorial/floatingpoint.rst:41 msgid "or, better, ::" -msgstr "或者,更好的近似::" +msgstr "" +"或者,更好的近似:\n" +"\n" +"::" #: ../../tutorial/floatingpoint.rst:45 msgid "" @@ -71,8 +82,8 @@ msgid "" "result will never be exactly 1/3, but will be an increasingly better " "approximation of 1/3." msgstr "" -"依此類推,不論你願意以多少位數表示小數,最後的結果都無法精準地表示 1/3 ,但你" -"還是能越來越精準的表示 1/3 。" +"依此類推,不論你使用多少位數表示小數,最後的結果都無法精準的表示 1/3,但你還" +"是能越來越精準的表示 1/3。" #: ../../tutorial/floatingpoint.rst:49 msgid "" @@ -81,7 +92,9 @@ msgid "" "base 2, 1/10 is the infinitely repeating fraction ::" msgstr "" "同樣的道理,不論你願意以多少位數表示二進位小數,十進位小數 0.1 都無法被二進位" -"小數精準的表達。在二進位小數中, 1/10 會是一個無限循環小數 ::" +"小數精準的表達。在二進位小數中, 1/10 會是一個無限循環小數:\n" +"\n" +"::" #: ../../tutorial/floatingpoint.rst:55 msgid "" From a271bcf5f46082fff382605259ad69f9e3728d65 Mon Sep 17 00:00:00 2001 From: yichung Date: Tue, 16 Oct 2018 16:11:02 +0800 Subject: [PATCH 3/4] =?UTF-8?q?Fix=20Chinese=20'=E7=B2=BE=E6=BA=96?= =?UTF-8?q?=E7=9A=84'=20to=20'=E7=B2=BE=E6=BA=96=E5=9C=B0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tutorial/floatingpoint.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index 6d5e8fd613..b723ddf803 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2018-10-16 15:41+0800\n" +"PO-Revision-Date: 2018-10-16 16:09+0800\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -56,7 +56,7 @@ msgid "" "point numbers you enter are only approximated by the binary floating-point " "numbers actually stored in the machine." msgstr "" -"不幸的是,大多數十進位小數無法精準的以二進位小數表示。一般的結果為,您輸入的" +"不幸的是,大多數十進位小數無法精準地以二進位小數表示。一般的結果為,您輸入的" "十進位浮點數由實際存在計算機中的二進位浮點數近似。" #: ../../tutorial/floatingpoint.rst:32 @@ -82,8 +82,8 @@ msgid "" "result will never be exactly 1/3, but will be an increasingly better " "approximation of 1/3." msgstr "" -"依此類推,不論你使用多少位數表示小數,最後的結果都無法精準的表示 1/3,但你還" -"是能越來越精準的表示 1/3。" +"依此類推,不論你使用多少位數表示小數,最後的結果都無法精準地表示 1/3,但你還" +"是能越來越精準地表示 1/3。" #: ../../tutorial/floatingpoint.rst:49 msgid "" @@ -92,7 +92,7 @@ msgid "" "base 2, 1/10 is the infinitely repeating fraction ::" msgstr "" "同樣的道理,不論你願意以多少位數表示二進位小數,十進位小數 0.1 都無法被二進位" -"小數精準的表達。在二進位小數中, 1/10 會是一個無限循環小數:\n" +"小數精準地表達。在二進位小數中, 1/10 會是一個無限循環小數:\n" "\n" "::" From 0a3e0292c135e2bc170ab37fd17d467cd8a609c7 Mon Sep 17 00:00:00 2001 From: yichung Date: Tue, 16 Oct 2018 16:16:52 +0800 Subject: [PATCH 4/4] Remove redundant space before '::' --- tutorial/floatingpoint.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index b723ddf803..72193a96f5 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2018-10-16 16:09+0800\n" +"PO-Revision-Date: 2018-10-16 16:15+0800\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -30,7 +30,7 @@ msgid "" msgstr "" "在計算機架構中,浮點數透過二進位小數表示。例如說,在十進位小數中:\n" "\n" -" ::" +"::" #: ../../tutorial/floatingpoint.rst:19 msgid "" @@ -67,7 +67,7 @@ msgstr "" "在十進位中,這個問題更容易被理解。以分數 1/3 為例,您可以將其近似為十進位小" "數:\n" "\n" -" ::" +"::" #: ../../tutorial/floatingpoint.rst:37 ../../tutorial/floatingpoint.rst:41 msgid "or, better, ::"