Add Vietnamese man page translations.
1.1 --- a/config.mk Wed Oct 27 09:11:46 2010 +0100
1.2 +++ b/config.mk Wed Oct 27 09:15:42 2010 +0100
1.3 @@ -1,7 +1,7 @@
1.4 VERSION=1.3.2.1
1.5 BUILDDATE=20100212
1.6
1.7 -MANCOUNTRIES=da en_GB es fr it nl pl pt pt_BR tr
1.8 +MANCOUNTRIES=da en_GB es fr it nl pl pt pt_BR tr vi
1.9
1.10 # Add "-DDEBUG" to CFLAGS for verbose debug output
1.11 CFLAGS=-ggdb -Wall -O2
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/man/po/vi.po Wed Oct 27 09:15:42 2010 +0100
2.3 @@ -0,0 +1,751 @@
2.4 +# Vietnamese translation for ralcalc
2.5 +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
2.6 +# This file is distributed under the same license as the ralcalc package.
2.7 +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
2.8 +#
2.9 +msgid ""
2.10 +msgstr ""
2.11 +"Project-Id-Version: ralcalc\n"
2.12 +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
2.13 +"POT-Creation-Date: 2010-05-17 10:13+0100\n"
2.14 +"PO-Revision-Date: 2010-10-14 17:41+0000\n"
2.15 +"Last-Translator: Nguyen Quang Chien <Unknown>\n"
2.16 +"Language-Team: Vietnamese <vi@li.org>\n"
2.17 +"MIME-Version: 1.0\n"
2.18 +"Content-Type: text/plain; charset=UTF-8\n"
2.19 +"Content-Transfer-Encoding: 8bit\n"
2.20 +"X-Launchpad-Export-Date: 2010-10-25 04:50+0000\n"
2.21 +"X-Generator: Launchpad (build Unknown)\n"
2.22 +
2.23 +#: ralcalc.1.xml:8(refentrytitle) ralcalc.1.xml:13(refname) ralcalc.1.xml:19(command) ralcalc.1.xml:43(command)
2.24 +msgid "ralcalc"
2.25 +msgstr "ralcalc"
2.26 +
2.27 +#: ralcalc.1.xml:9(manvolnum) ralcalc.1.xml:282(term)
2.28 +msgid "1"
2.29 +msgstr "1"
2.30 +
2.31 +#: ralcalc.1.xml:14(refpurpose)
2.32 +msgid "a simple command line calculator"
2.33 +msgstr "máy tính đơn giản được thao tác từ dòng lệnh"
2.34 +
2.35 +#: ralcalc.1.xml:23(option) ralcalc.1.xml:60(option) ralcalc.1.xml:107(option)
2.36 +msgid "-a"
2.37 +msgstr "-a"
2.38 +
2.39 +#: ralcalc.1.xml:24(option) ralcalc.1.xml:61(option) ralcalc.1.xml:108(option)
2.40 +msgid "--all"
2.41 +msgstr "--all"
2.42 +
2.43 +#: ralcalc.1.xml:29(option) ralcalc.1.xml:66(option) ralcalc.1.xml:126(option)
2.44 +msgid "-h"
2.45 +msgstr "-h"
2.46 +
2.47 +#: ralcalc.1.xml:30(option) ralcalc.1.xml:67(option) ralcalc.1.xml:127(option)
2.48 +msgid "--help"
2.49 +msgstr "--help"
2.50 +
2.51 +#: ralcalc.1.xml:35(option) ralcalc.1.xml:72(option) ralcalc.1.xml:160(option)
2.52 +msgid "-v"
2.53 +msgstr "-v"
2.54 +
2.55 +#: ralcalc.1.xml:36(option) ralcalc.1.xml:73(option) ralcalc.1.xml:161(option)
2.56 +msgid "--version"
2.57 +msgstr "--version"
2.58 +
2.59 +#: ralcalc.1.xml:45(option) ralcalc.1.xml:82(option) ralcalc.1.xml:114(option)
2.60 +msgid "-e"
2.61 +msgstr "-e"
2.62 +
2.63 +#: ralcalc.1.xml:46(option) ralcalc.1.xml:83(option) ralcalc.1.xml:146(option)
2.64 +msgid "-r"
2.65 +msgstr "-r"
2.66 +
2.67 +#: ralcalc.1.xml:48(option) ralcalc.1.xml:85(option) ralcalc.1.xml:120(option)
2.68 +msgid "-f"
2.69 +msgstr "-f"
2.70 +
2.71 +#: ralcalc.1.xml:48(replaceable) ralcalc.1.xml:85(replaceable)
2.72 +msgid "filename"
2.73 +msgstr "tên file"
2.74 +
2.75 +#: ralcalc.1.xml:49(option) ralcalc.1.xml:86(option) ralcalc.1.xml:133(option)
2.76 +msgid "-i"
2.77 +msgstr "-i"
2.78 +
2.79 +#: ralcalc.1.xml:50(option) ralcalc.1.xml:87(option) ralcalc.1.xml:139(option)
2.80 +msgid "-q"
2.81 +msgstr "-q"
2.82 +
2.83 +#: ralcalc.1.xml:51(option) ralcalc.1.xml:88(option) ralcalc.1.xml:153(option)
2.84 +msgid "-s"
2.85 +msgstr "-s"
2.86 +
2.87 +#: ralcalc.1.xml:51(replaceable) ralcalc.1.xml:88(replaceable)
2.88 +msgid "prefix"
2.89 +msgstr "tiền tố"
2.90 +
2.91 +#: ralcalc.1.xml:52(replaceable) ralcalc.1.xml:89(replaceable)
2.92 +msgid "equation"
2.93 +msgstr "phương trình"
2.94 +
2.95 +#: ralcalc.1.xml:56(command) ralcalc.1.xml:80(command)
2.96 +msgid "="
2.97 +msgstr "="
2.98 +
2.99 +#: ralcalc.1.xml:94(title)
2.100 +msgid "Description"
2.101 +msgstr "Mô tả"
2.102 +
2.103 +#: ralcalc.1.xml:95(para)
2.104 +msgid ""
2.105 +"<command>ralcalc</command> is a command line calculator designed for very "
2.106 +"quick calculations where perhaps only a single result is wanted without "
2.107 +"having to start and then quit a program."
2.108 +msgstr ""
2.109 +"<command>ralcalc</command> là máy tính chạy trên dòng lệnh giúp bạn thực "
2.110 +"hiện phép tính nhanh chóng, những lúc chỉ cần một đáp số mà không cần phải "
2.111 +"khởi động và thoát chương trình."
2.112 +
2.113 +#: ralcalc.1.xml:99(para)
2.114 +msgid ""
2.115 +"<command>ralcalc</command> is also installed as the <command>=</command> "
2.116 +"command to make using it even quicker."
2.117 +msgstr ""
2.118 +"<command>ralcalc</command> cũng được cài đặt như lệnh <command>=</command> "
2.119 +"để có thể được sử dụng nhanh hơn."
2.120 +
2.121 +#: ralcalc.1.xml:104(title)
2.122 +msgid "Options"
2.123 +msgstr "Tuỳ chọn"
2.124 +
2.125 +#: ralcalc.1.xml:110(para)
2.126 +msgid "Print out all of the available operators, functions and constants."
2.127 +msgstr "In ra tất cả các toán tử, hàm số và hằng số hiện có."
2.128 +
2.129 +#: ralcalc.1.xml:116(para)
2.130 +msgid ""
2.131 +"Display the result in the \"1e-3\" form rather than using SI prefixes."
2.132 +msgstr "Hiển thị kết quả dưới dạng \"1e-3\" thay vì dùng các tiền tố SI."
2.133 +
2.134 +#: ralcalc.1.xml:122(para)
2.135 +msgid ""
2.136 +"Process a list of calculations from a file. See the FILE INPUT section below "
2.137 +"for more information."
2.138 +msgstr ""
2.139 +"Xử lí dãy các phép tính từ một file. Xem phần FILE INPUT sau đây để biết "
2.140 +"thêm thông tin."
2.141 +
2.142 +#: ralcalc.1.xml:129(para) ralcalc.1.xml:163(para)
2.143 +msgid "Display usage, version and contact details."
2.144 +msgstr "Hiển thị cách dùng, phiên bản và thông tin về tác giả."
2.145 +
2.146 +#: ralcalc.1.xml:135(para)
2.147 +msgid ""
2.148 +"Process a list of calculations from <filename "
2.149 +"class=\"devicefile\">stdin</filename>. See the FILE INPUT section below for "
2.150 +"more information."
2.151 +msgstr ""
2.152 +"Xử lí dãy các phép tính từ <filename class=\"devicefile\">stdin</filename>. "
2.153 +"Xem phần FILE INPUT sau đây để biết thêm thông tin."
2.154 +
2.155 +#: ralcalc.1.xml:142(para)
2.156 +msgid "Only display the result (so hide the input and any errors)."
2.157 +msgstr ""
2.158 +"Chỉ hiển thị kết quả (và do đó giấu đi lệnh nhập vào và lỗi, nếu có)."
2.159 +
2.160 +#: ralcalc.1.xml:149(para)
2.161 +msgid ""
2.162 +"Display the result in decimal format with neither SI prefixes nor exponent."
2.163 +msgstr ""
2.164 +"Hiển thị kết quả dưới dạng thập phân mà không có các tiền tố SI hay số mũ."
2.165 +
2.166 +#: ralcalc.1.xml:156(para)
2.167 +msgid ""
2.168 +"Display the result using a particular SI prefix. This option is ignored if "
2.169 +"<option>-e</option> or <option>-r</option> is also used."
2.170 +msgstr ""
2.171 +"Hiển thị kết quả atheo một tiền tố SI riêng. Tùy chọ này sẽ được bỏ qua nếu "
2.172 +"<option>-e</option> hoặc <option>-r</option> cũng được dùng."
2.173 +
2.174 +#: ralcalc.1.xml:170(title)
2.175 +msgid "Number Format"
2.176 +msgstr "Định dạng Số"
2.177 +
2.178 +#: ralcalc.1.xml:171(para)
2.179 +msgid ""
2.180 +"Numbers should be input using either \".\" or \",\" as a decimal point (this "
2.181 +"is locale dependent so both may not work in your locale), with no thousands "
2.182 +"separators."
2.183 +msgstr ""
2.184 +"Các số thập phân nên dùng dấu \".\" hoặc \",\" làm dấu phân cách (quy định "
2.185 +"dấu này phụ thuộc vào từng máy); không có dấu phân cách hàng nghìn."
2.186 +
2.187 +#: ralcalc.1.xml:174(userinput)
2.188 +#, no-wrap
2.189 +msgid "= 2u/35"
2.190 +msgstr "= 2u/35"
2.191 +
2.192 +#: ralcalc.1.xml:175(computeroutput)
2.193 +#, no-wrap
2.194 +msgid "2u/35 = 57.1429n"
2.195 +msgstr "2u/35 = 57.1429n"
2.196 +
2.197 +#: ralcalc.1.xml:172(para)
2.198 +msgid ""
2.199 +"<command>ralcalc</command> supports SI prefix characters for both input and "
2.200 +"output: <placeholder-1/>"
2.201 +msgstr ""
2.202 +"<command>ralcalc</command> hỗ trợ các chữ tiền tố SI cho cả đầu vào lẫn đầu "
2.203 +"ra: <placeholder-1/>"
2.204 +
2.205 +#: ralcalc.1.xml:177(para)
2.206 +msgid ""
2.207 +"Numbers of the form 1e-3 are also supported, where the \"e\" indicates a "
2.208 +"power of ten. Don't mix and match SI prefixes and \"e\" in the same number "
2.209 +"(although 1e-3n is valid, 1ne-3 is not - avoid both for less confusion)."
2.210 +msgstr ""
2.211 +"Các số kiểu như 1e-3 cũng được hỗ trợ, trong đó chữ \"e\" biểu thị lũy thừa "
2.212 +"của 10. Đừng dùng lẫn các tiền tố SI và chữ \"e\" trong cùng một số (mặc dù "
2.213 +"1e-3n là hợp lệ, nhưng 1ne-3 thì không - và tốt nhất tránh cả hai cách để đỡ "
2.214 +"nhầm lẫn)."
2.215 +
2.216 +#: ralcalc.1.xml:178(para)
2.217 +msgid ""
2.218 +"The SI prefixes supported are: Y, Z, E, P, T, G, M, k, m, u, n, p, f, a, z, "
2.219 +"y."
2.220 +msgstr ""
2.221 +"Các tiền tố SI được hỗ trợ bao gồm: Y, Z, E, P, T, G, M, k, m, u, n, p, f, "
2.222 +"a, z, y."
2.223 +
2.224 +#: ralcalc.1.xml:182(title)
2.225 +msgid "Operators"
2.226 +msgstr "Toán tử"
2.227 +
2.228 +#: ralcalc.1.xml:185(userinput)
2.229 +#, no-wrap
2.230 +msgid "= 1+2x3"
2.231 +msgstr "= 1+2x3"
2.232 +
2.233 +#: ralcalc.1.xml:186(computeroutput)
2.234 +#, no-wrap
2.235 +msgid "1+2x3 = 7"
2.236 +msgstr "1+2x3 = 7"
2.237 +
2.238 +#: ralcalc.1.xml:188(userinput)
2.239 +#, no-wrap
2.240 +msgid "= 1/2^0.5"
2.241 +msgstr "= 1/2^0.5"
2.242 +
2.243 +#: ralcalc.1.xml:189(computeroutput)
2.244 +#, no-wrap
2.245 +msgid "1/2^0.5 = 0.707107"
2.246 +msgstr "1/2^0.5 = 0.707107"
2.247 +
2.248 +#: ralcalc.1.xml:183(para)
2.249 +msgid ""
2.250 +"The simple mathematical operators for addition (+), subtraction (-), "
2.251 +"multiplication (*, x), division (/) and power (^) are supported, with "
2.252 +"addition and subtraction having the lowest precedence and power having the "
2.253 +"highest. <placeholder-1/>"
2.254 +msgstr ""
2.255 +"Các toán tử đơn giản như cộng (+), trừ (-), nhân (*, x), chia (/) và lũy "
2.256 +"thừa (^) đều được hỗ trợ, với phép cộng và trừ có thứ tự ưu tiên thực hiện "
2.257 +"thấp nhất và lũy thừa ưu tiên cao nhất. <placeholder-1/>"
2.258 +
2.259 +#: ralcalc.1.xml:193(userinput)
2.260 +#, no-wrap
2.261 +msgid "= [1+2]x3"
2.262 +msgstr "= [1+2]x3"
2.263 +
2.264 +#: ralcalc.1.xml:194(computeroutput)
2.265 +#, no-wrap
2.266 +msgid "[1+2]x3 = 9"
2.267 +msgstr "[1+2]x3 = 9"
2.268 +
2.269 +#: ralcalc.1.xml:191(para)
2.270 +msgid ""
2.271 +"Brackets ( (), [] ) can be used to control the order in which statements are "
2.272 +"processed: <placeholder-1/>"
2.273 +msgstr ""
2.274 +"Các ngoặc ( (), [] ) có thể được dùng để kiểm soát thứ tự thực hiện phép "
2.275 +"tính: <placeholder-1/>"
2.276 +
2.277 +#: ralcalc.1.xml:196(para)
2.278 +msgid ""
2.279 +"Both the square and round brackets can be used and are both directly "
2.280 +"equivalent, so [1+2)x3 is also valid. Round brackets are more commonly used "
2.281 +"in mathematics, but the square brackets (and the \"x\" for multiplication) "
2.282 +"are included to try to prevent problems with the shell expanding those "
2.283 +"characters."
2.284 +msgstr ""
2.285 +"Cả ngoặc vuông và ngoặc tròn đều dùng được và chúng tương đương nhau, vì vậy "
2.286 +"[1+2)x3 cũng hợp lệ. Ngoặc tròn thường dùng trong toán học, nhưng ngoặc "
2.287 +"vuông (và dấu \"x\" cho phép nhân) sẽ cần dùng đến trong trường hợp muốn "
2.288 +"tránh bị trùng kí hiệu với shell."
2.289 +
2.290 +#: ralcalc.1.xml:199(userinput)
2.291 +#, no-wrap
2.292 +msgid "= 2^0.5"
2.293 +msgstr "= 2^0.5"
2.294 +
2.295 +#: ralcalc.1.xml:200(computeroutput)
2.296 +#, no-wrap
2.297 +msgid "2^0.5 = 1.41421"
2.298 +msgstr "2^0.5 = 1.41421"
2.299 +
2.300 +#: ralcalc.1.xml:202(userinput)
2.301 +#, no-wrap
2.302 +msgid "= 1/_"
2.303 +msgstr "= 1/_"
2.304 +
2.305 +#: ralcalc.1.xml:203(computeroutput)
2.306 +#, no-wrap
2.307 +msgid "1/_ = 0.707107"
2.308 +msgstr "1/_ = 0.707107"
2.309 +
2.310 +#: ralcalc.1.xml:197(para)
2.311 +msgid ""
2.312 +"<command>ralcalc</command> stores the result of the calculation so that it "
2.313 +"can be used in the next calculation with the \"_\" character. <placeholder-"
2.314 +"1/>"
2.315 +msgstr ""
2.316 +"<command>ralcalc</command> lưu kết quả tính toán vì vậy bằng kí tự \"_\" ta "
2.317 +"có thể dùng kết quả này trong phép tính kế tiếp. <placeholder-1/>"
2.318 +
2.319 +#: ralcalc.1.xml:208(title)
2.320 +msgid "Functions"
2.321 +msgstr "Hàm số"
2.322 +
2.323 +#: ralcalc.1.xml:211(userinput)
2.324 +#, no-wrap
2.325 +msgid "= sin2x2"
2.326 +msgstr "= sin2x2"
2.327 +
2.328 +#: ralcalc.1.xml:212(computeroutput)
2.329 +#, no-wrap
2.330 +msgid "sin2x2 = 1.81859"
2.331 +msgstr "sin2x2 = 1.81859"
2.332 +
2.333 +#: ralcalc.1.xml:214(userinput)
2.334 +#, no-wrap
2.335 +msgid "= sin[2x2]"
2.336 +msgstr "= sin[2x2]"
2.337 +
2.338 +#: ralcalc.1.xml:215(computeroutput)
2.339 +#, no-wrap
2.340 +msgid "sin[2x2] = -0.756802"
2.341 +msgstr "sin[2x2] = -0.756802"
2.342 +
2.343 +#: ralcalc.1.xml:209(para)
2.344 +msgid ""
2.345 +"The functions <function>sin</function>, <function>cos</function>, "
2.346 +"<function>tan</function>, <function>asin</function>, "
2.347 +"<function>acos</function>, <function>atan</function>, "
2.348 +"<function>sqrt</function>, <function>log</function> (base 10 logarithm) and "
2.349 +"<function>ln</function> (natural logarithm) are supported. The trigonometric "
2.350 +"functions work on radians. The use of brackets is not necessary, but is "
2.351 +"recommended where precedence may be confusing. The functions have equal "
2.352 +"precedence to multiplication/division, so care must be taken: <placeholder-"
2.353 +"1/>"
2.354 +msgstr ""
2.355 +"Các hàm <function>sin</function>, <function>cos</function>, "
2.356 +"<function>tan</function>, <function>asin</function>, "
2.357 +"<function>acos</function>, <function>atan</function>, "
2.358 +"<function>sqrt</function>, <function>log</function> (lôga cơ số 10) và "
2.359 +"<function>ln</function> (lôga tự nhiên) đều được hỗ trợ. Các hàm lượng giác "
2.360 +"tính với ra-đian. Việc dùng ngoặc là không cần thiết, nhưng có thể nếu muốn "
2.361 +"đỡ bị lẫn thứ tự thực hiện. Các hàm có độ ưu tiên thứ tự thực hiện ngang với "
2.362 +"phép nhân/chia, vì vậy phải cẩn thận: <placeholder-1/>"
2.363 +
2.364 +#: ralcalc.1.xml:220(title)
2.365 +msgid "Constants"
2.366 +msgstr "Hằng số"
2.367 +
2.368 +#: ralcalc.1.xml:221(para)
2.369 +msgid ""
2.370 +"The constants <constant>pi</constant> (3.14159) and <constant>exp</constant> "
2.371 +"(2.71828) can be used and are treated the same as any other number."
2.372 +msgstr ""
2.373 +"Các hằng số <constant>pi</constant> (3.14159) và <constant>exp</constant> "
2.374 +"(2.71828) có thể được dùng và chúng được coi như bất kì số thông thường nào."
2.375 +
2.376 +#: ralcalc.1.xml:225(title)
2.377 +msgid "File Input"
2.378 +msgstr "File đầu vào"
2.379 +
2.380 +#: ralcalc.1.xml:228(userinput)
2.381 +#, no-wrap
2.382 +msgid "2^0.5"
2.383 +msgstr "2^0.5"
2.384 +
2.385 +#: ralcalc.1.xml:229(userinput)
2.386 +#, no-wrap
2.387 +msgid "1/_"
2.388 +msgstr "1/_"
2.389 +
2.390 +#: ralcalc.1.xml:230(userinput)
2.391 +#, no-wrap
2.392 +msgid "238/1064x100"
2.393 +msgstr "238/1064x100"
2.394 +
2.395 +#: ralcalc.1.xml:226(para)
2.396 +msgid ""
2.397 +"A list of calculations can be processed at once by placing them in a file. "
2.398 +"Each line of the file will be process exactly the same as if "
2.399 +"<command>ralcalc</command> had been run with those arguments. The file could "
2.400 +"look like the following (note the lack of the command <command>=</command> "
2.401 +"or <command>ralcalc</command>): <placeholder-1/>"
2.402 +msgstr ""
2.403 +"Một dãy các phép tính có thể thực hiện liền nhau nếu chúng được đặt trong "
2.404 +"một file. Mỗi dòng của file sẽ được xử lí giống như khi "
2.405 +"<command>ralcalc</command> được chạy với các thông số đó. File có thể giống "
2.406 +"như sau (chú ý sự vắng mặt của lệnh <command>=</command> hoặc "
2.407 +"<command>ralcalc</command>): <placeholder-1/>"
2.408 +
2.409 +#: ralcalc.1.xml:232(para)
2.410 +msgid ""
2.411 +"File input is also possible using <filename "
2.412 +"class=\"devicefile\">stdin</filename>, i.e. reading interactively directly "
2.413 +"from the terminal with each line being calculated as normal. To quit, type "
2.414 +"\"q\" or \"quit\" on a new line, use Ctrl-D to indicate the end of file, or "
2.415 +"use Ctrl-C to cause <command>ralcalc</command> to be terminated."
2.416 +msgstr ""
2.417 +"Cũng có thể nhập vào qua file <filename "
2.418 +"class=\"devicefile\">stdin</filename>, nghĩa là trực tiếp đọc từ cửa sổ lệnh "
2.419 +"với mỗi dòng được tính toán như thông thường. Để thoát, ấn \"q\" hoặc "
2.420 +"\"quit\" ở đầu dòng mới, dùng Ctrl-D để chỉ định kết thúc file, hoặc dùng "
2.421 +"Ctrl-C để chấm dứt chạy <command>ralcalc</command>."
2.422 +
2.423 +#: ralcalc.1.xml:233(para)
2.424 +msgid ""
2.425 +"If either of the file input options are given on the command line, then any "
2.426 +"calculations given on the command line will be calculated first. If both of "
2.427 +"the file input options are given, then the calculations from the <option>-"
2.428 +"f</option> will be carried out first, followed by those from <filename "
2.429 +"class=\"devicefile\">stdin</filename>."
2.430 +msgstr ""
2.431 +"Nếu trên dòng lệnh có bất kì tùy chọn file đầu vào nào thì các phép tính ở "
2.432 +"dòng lệnh sẽ được thực hiện trước. Nếu có cả hai tùy chọn file đầu vào thì "
2.433 +"các phép tính ở <option>-f</option> sẽ được thực hiên trước, sau đó mới đến "
2.434 +"ở <filename class=\"devicefile\">stdin</filename>."
2.435 +
2.436 +#: ralcalc.1.xml:237(title)
2.437 +msgid "Examples"
2.438 +msgstr "Các ví dụ"
2.439 +
2.440 +#: ralcalc.1.xml:240(userinput)
2.441 +#, no-wrap
2.442 +msgid "= ln 1.0001"
2.443 +msgstr "= ln 1.0001"
2.444 +
2.445 +#: ralcalc.1.xml:241(computeroutput)
2.446 +#, no-wrap
2.447 +msgid "ln 1.0001 = 99.995u"
2.448 +msgstr "ln 1.0001 = 99.995u"
2.449 +
2.450 +#: ralcalc.1.xml:238(para)
2.451 +msgid "Basic calculation: <placeholder-1/>"
2.452 +msgstr "Phép tính cơ bản: <placeholder-1/>"
2.453 +
2.454 +#: ralcalc.1.xml:245(userinput)
2.455 +#, no-wrap
2.456 +msgid "= -e ln 1.0001"
2.457 +msgstr "= -e ln 1.0001"
2.458 +
2.459 +#: ralcalc.1.xml:246(computeroutput)
2.460 +#, no-wrap
2.461 +msgid "ln 1.0001 = 9.9995e-05"
2.462 +msgstr "ln 1.0001 = 9.9995e-05"
2.463 +
2.464 +#: ralcalc.1.xml:243(para)
2.465 +msgid "Exponent number output format: <placeholder-1/>"
2.466 +msgstr "Dạng trình bày kết quả số mũ: <placeholder-1/>"
2.467 +
2.468 +#: ralcalc.1.xml:250(userinput)
2.469 +#, no-wrap
2.470 +msgid "= -r ln 1.0001"
2.471 +msgstr "= -r ln 1.0001"
2.472 +
2.473 +#: ralcalc.1.xml:251(computeroutput)
2.474 +#, no-wrap
2.475 +msgid "ln 1.0001 = 0.000100"
2.476 +msgstr "ln 1.0001 = 0.000100"
2.477 +
2.478 +#: ralcalc.1.xml:248(para)
2.479 +msgid "Raw number output format: <placeholder-1/>"
2.480 +msgstr "Định dạng kết quả số thuần tuý: <placeholder-1/>"
2.481 +
2.482 +#: ralcalc.1.xml:255(userinput)
2.483 +#, no-wrap
2.484 +msgid "= -s m ln 1.0001"
2.485 +msgstr "= -s m ln 1.0001"
2.486 +
2.487 +#: ralcalc.1.xml:256(computeroutput)
2.488 +#, no-wrap
2.489 +msgid "ln 1.0001 = 0.099995"
2.490 +msgstr "ln 1.0001 = 0.099995"
2.491 +
2.492 +#: ralcalc.1.xml:253(para)
2.493 +msgid "Number output format with a specified SI prefix: <placeholder-1/>"
2.494 +msgstr "Đáp số với một tiền tố SI: <placeholder-1/>"
2.495 +
2.496 +#: ralcalc.1.xml:261(title)
2.497 +msgid "Environment Variables"
2.498 +msgstr "Các biến môi trường"
2.499 +
2.500 +#: ralcalc.1.xml:264(envar)
2.501 +msgid "HOME"
2.502 +msgstr "HOME"
2.503 +
2.504 +#: ralcalc.1.xml:266(para)
2.505 +msgid "Determines where the .ralcalc_result file is stored."
2.506 +msgstr "Chỉ định chỗ lưu giữ file .ralcalc_result."
2.507 +
2.508 +#: ralcalc.1.xml:273(title)
2.509 +msgid "Exit Values"
2.510 +msgstr "Các giá trị thoát"
2.511 +
2.512 +#: ralcalc.1.xml:276(term)
2.513 +msgid "0"
2.514 +msgstr "0"
2.515 +
2.516 +#: ralcalc.1.xml:278(para)
2.517 +msgid "Success"
2.518 +msgstr "Thành công"
2.519 +
2.520 +#: ralcalc.1.xml:284(para)
2.521 +msgid "At least one error occurred."
2.522 +msgstr "Ít nhất là có một lỗi đã nảy sinh."
2.523 +
2.524 +#: ralcalc.1.xml:291(title)
2.525 +msgid "Files"
2.526 +msgstr "File"
2.527 +
2.528 +#: ralcalc.1.xml:293(filename)
2.529 +msgid "${HOME}/.ralcalc_result"
2.530 +msgstr "${HOME}/.ralcalc_result"
2.531 +
2.532 +#: ralcalc.1.xml:294(blockquote)
2.533 +msgid ""
2.534 +"The result of the most recent calculation, which can be accessed in a later "
2.535 +"calculation using the \"_\" character. Note that this is not necessarily "
2.536 +"portable across different machine architectures."
2.537 +msgstr ""
2.538 +"Kết quả của phép tính gần nhất, ta có thể lưu lại nó bằng dấu \"_\" để phục "
2.539 +"vụ phép tính kế tiếp. Lưu ý rằng điều này không chắc áp dụng được với các hệ "
2.540 +"máy khác nhau."
2.541 +
2.542 +#: ralcalc.1.xml:299(title)
2.543 +msgid "Diagnostics"
2.544 +msgstr "Chẩn đoán"
2.545 +
2.546 +#: ralcalc.1.xml:300(para)
2.547 +msgid ""
2.548 +"<command>ralcalc</command> attempts to notify the user of as many errors as "
2.549 +"possible and indicate where those errors are, if they are user input related."
2.550 +msgstr ""
2.551 +"<command>ralcalc</command> cố gắng lưu ý người dùng càng nhiều lỗi càng tốt "
2.552 +"và chỉ ra các lỗi đó ở đâu, nếu như chúng liên quan đến phần người dùng nhập "
2.553 +"vào."
2.554 +
2.555 +#: ralcalc.1.xml:303(programlisting)
2.556 +#, no-wrap
2.557 +msgid ""
2.558 +"\n"
2.559 +"\t<userinput>= 34/3@2</userinput>\n"
2.560 +"\n"
2.561 +"\t<computeroutput>Error: 34/3@2</computeroutput>\n"
2.562 +"\t ^ unknown token"
2.563 +msgstr ""
2.564 +"\n"
2.565 +"\t<userinput>= 34/3@2</userinput>\n"
2.566 +"\n"
2.567 +"\t<computeroutput>Error: 34/3@2</computeroutput>\n"
2.568 +"\t ^ unknown token"
2.569 +
2.570 +#: ralcalc.1.xml:302(para)
2.571 +msgid ""
2.572 +"If an unknown character is included in the equation, an \"<errortext>unknown "
2.573 +"token</errortext>\" error will be generated. The error marker points to the "
2.574 +"invalid character. <placeholder-1/>"
2.575 +msgstr ""
2.576 +"Nếu có kí tự đáng ngờ xuât hiên trong phương trình thì một thông báo lỗi "
2.577 +"\"<errortext>unknown token</errortext>\" sẽ được đưa ra. Có một dấu chỉ vào "
2.578 +"đúng kí tự không hợp lệ đó. <placeholder-1/>"
2.579 +
2.580 +#: ralcalc.1.xml:311(programlisting)
2.581 +#, no-wrap
2.582 +msgid ""
2.583 +"\n"
2.584 +"\t<userinput>= 3.14.159x2.8^2</userinput>\n"
2.585 +"\n"
2.586 +"\t<computeroutput>Error: 3.14.159x2.8^2</computeroutput>\n"
2.587 +"\t ^ bad number"
2.588 +msgstr ""
2.589 +"\n"
2.590 +"\t<userinput>= 3.14.159x2.8^2</userinput>\n"
2.591 +"\n"
2.592 +"\t<computeroutput>Error: 3.14.159x2.8^2</computeroutput>\n"
2.593 +"\t ^ bad number"
2.594 +
2.595 +#: ralcalc.1.xml:310(para)
2.596 +msgid ""
2.597 +"If an invalid number is included, a \"<errortext>bad number</errortext>\" "
2.598 +"error will be generated. The error marker points to the end of the invalid "
2.599 +"number. <placeholder-1/>"
2.600 +msgstr ""
2.601 +"Nếu có một con số không hợp lệ thì một thông báo lỗi \"<errortext>unknown "
2.602 +"token</errortext>\" sẽ được đưa ra. Có một dấu chỉ vào cuối số không hợp lệ "
2.603 +"đó. <placeholder-1/>"
2.604 +
2.605 +#: ralcalc.1.xml:319(programlisting)
2.606 +#, no-wrap
2.607 +msgid ""
2.608 +"\n"
2.609 +"\t<userinput>= 5/[[2+3]*9</userinput>\n"
2.610 +"\n"
2.611 +"\t<computeroutput>Error: 5/[[2+3]*9</computeroutput>\n"
2.612 +"\t ^ mismatched brackets"
2.613 +msgstr ""
2.614 +"\n"
2.615 +"\t<userinput>= 5/[[2+3]*9</userinput>\n"
2.616 +"\n"
2.617 +"\t<computeroutput>Error: 5/[[2+3]*9</computeroutput>\n"
2.618 +"\t ^ mismatched brackets"
2.619 +
2.620 +#: ralcalc.1.xml:318(para)
2.621 +msgid ""
2.622 +"If the number of open and close brackets do not match, a "
2.623 +"\"<errortext>mismatched brackets</errortext>\" error will be generated. The "
2.624 +"error marker position has no significance. <placeholder-1/>"
2.625 +msgstr ""
2.626 +"Nếu số ngoặc mở và ngoặc đóng không bằng nhau, một lỗi "
2.627 +"\"<errortext>mismatched brackets</errortext>\" sẽ được thông báo. Khi đó vị "
2.628 +"trí chỉ lỗi không quan trọng. <placeholder-1/>"
2.629 +
2.630 +#: ralcalc.1.xml:327(programlisting)
2.631 +#, no-wrap
2.632 +msgid ""
2.633 +"\n"
2.634 +"\t<userinput>= 3^^7</userinput>\n"
2.635 +"\n"
2.636 +"\t<computeroutput>Error: 3^^7</computeroutput>\n"
2.637 +"\t ^ invalid operator"
2.638 +msgstr ""
2.639 +"\n"
2.640 +"\t<userinput>= 3^^7</userinput>\n"
2.641 +"\n"
2.642 +"\t<computeroutput>Error: 3^^7</computeroutput>\n"
2.643 +"\t ^ invalid operator"
2.644 +
2.645 +#: ralcalc.1.xml:326(para)
2.646 +msgid ""
2.647 +"If an operator appears in an invalid position, an \"<errortext>invalid "
2.648 +"operator</errortext>\" error will be generated. The error marker indicated "
2.649 +"the invalid operator. <placeholder-1/>"
2.650 +msgstr ""
2.651 +"Nếu một toán tử xuất hiên ở vị trí không hợp lệ, một lỗi "
2.652 +"\"<errortext>invalid operator</errortext>\" sẽ được thông báo. Dấu chỉ lỗi "
2.653 +"sẽ ở vị trí toán tử không hợp lệ đó. <placeholder-1/>"
2.654 +
2.655 +#: ralcalc.1.xml:335(programlisting)
2.656 +#, no-wrap
2.657 +msgid ""
2.658 +"\n"
2.659 +"\t<userinput>= [2+]3</userinput>\n"
2.660 +"\n"
2.661 +"\t<computeroutput>Error: [2+]3</computeroutput>\n"
2.662 +"\t ^ invalid bracket\n"
2.663 +"\n"
2.664 +"\t<computeroutput>Error: [2+]3</computeroutput>\n"
2.665 +"\t ^ invalid operator"
2.666 +msgstr ""
2.667 +"\n"
2.668 +"\t<userinput>= [2+]3</userinput>\n"
2.669 +"\n"
2.670 +"\t<computeroutput>Error: [2+]3</computeroutput>\n"
2.671 +"\t ^ invalid bracket\n"
2.672 +"\n"
2.673 +"\t<computeroutput>Error: [2+]3</computeroutput>\n"
2.674 +"\t ^ invalid operator"
2.675 +
2.676 +#: ralcalc.1.xml:334(para)
2.677 +msgid ""
2.678 +"If a bracket appears in an invalid position, an \"<errortext>invalid "
2.679 +"bracket</errortext>\" error will be generated. This type of error often "
2.680 +"overlaps with other errors, so there will be a number of messages written to "
2.681 +"the screen. It is best to fix this error first as it will likely be the root "
2.682 +"cause of the problem. The error marker indicates the invalid bracket. "
2.683 +"<placeholder-1/>"
2.684 +msgstr ""
2.685 +"Nếu ngoặc xuât hiên ở vị trí không hợp lệ, một lỗi \"<errortext>invalid "
2.686 +"bracket</errortext>\" sẽ được thông báo. Kiểu lỗi này thường đi cùng với các "
2.687 +"lỗi khác, vì vậy sẽ có một số thông báo xuất hiên trên màn hình. Khi đó tốt "
2.688 +"nhất là sửa lỗi này trước tiên, vì nó dường như là gốc rễ của vấn đề. Dấu "
2.689 +"chỉ lỗi sẽ ở vị trí ngoặc không hợp lệ. <placeholder-1/>"
2.690 +
2.691 +#: ralcalc.1.xml:345(para)
2.692 +msgid ""
2.693 +"If <command>ralcalc</command> is unable to allocate some memory, an "
2.694 +"\"<errortext>out of memory</errortext>\" error will be generated."
2.695 +msgstr ""
2.696 +"Nếu <command>ralcalc</command> không thể điều động bộ nhớ, một lỗi "
2.697 +"\"<errortext>out of memory</errortext>\" sẽ được thông báo."
2.698 +
2.699 +#: ralcalc.1.xml:347(para)
2.700 +msgid ""
2.701 +"Internal error: If the parser notices two numbers next to each other yet "
2.702 +"does not generate a \"<errortext>bad number</errortext>\" error, the a "
2.703 +"\"<errortext>duplicate number</errortext>\" error will be generated. This "
2.704 +"should never happen."
2.705 +msgstr ""
2.706 +"Lỗi bên trong: Nếu bộ tách phát hiện hai số cạnh nhau mà không phát thông "
2.707 +"báo lỗi \"<errortext>bad number</errortext>\", thì thông báo lỗi "
2.708 +"\"<errortext>duplicate number</errortext>\" sẽ được phát ra. Điều này lẽ ra "
2.709 +"không bao giờ có."
2.710 +
2.711 +#: ralcalc.1.xml:349(para)
2.712 +msgid ""
2.713 +"Internal error: If an unknown error code is passed to the error output "
2.714 +"function, an \"<errortext>unknown error</errortext>\" will be generated and "
2.715 +"the invalid error code displayed. This should never happen."
2.716 +msgstr ""
2.717 +"Lỗi bên trong: Nếu một mã lỗi không rõ được chuyển đến hàm báo lỗi, thì dòng "
2.718 +"thông báo lỗi \"<errortext>unknown error</errortext>\" sẽ được phát ra. Điều "
2.719 +"này lẽ ra không bao giờ có."
2.720 +
2.721 +#: ralcalc.1.xml:353(title)
2.722 +msgid "Bugs"
2.723 +msgstr "Lỗi"
2.724 +
2.725 +#: ralcalc.1.xml:354(para)
2.726 +msgid ""
2.727 +"Only a single \"<option>-f <replaceable>filename</replaceable></option>\" "
2.728 +"can be passed at once."
2.729 +msgstr ""
2.730 +"Mỗi lần chỉ chuyển được một \"<option>-f "
2.731 +"<replaceable>filename</replaceable></option>\" (tên file) duy nhất."
2.732 +
2.733 +#: ralcalc.1.xml:355(para)
2.734 +msgid ""
2.735 +"If you find a bug, please submit a report at <uri "
2.736 +"type=\"webpage\">http://bugs.launchpad.net/ralcalc</uri>"
2.737 +msgstr ""
2.738 +"Nếu bạn phát hiện lỗi trong chương trình, hãy báo cáo đến <uri "
2.739 +"type=\"webpage\">http://bugs.launchpad.net/ralcalc</uri>"
2.740 +
2.741 +#: ralcalc.1.xml:359(title)
2.742 +msgid "Author"
2.743 +msgstr "Tác giả"
2.744 +
2.745 +#: ralcalc.1.xml:360(para)
2.746 +msgid "Roger Light <email>roger@atchoo.org</email>"
2.747 +msgstr "Roger Light <email>roger@atchoo.org</email>"
2.748 +
2.749 +#. Put one translator per line, in the form of NAME <EMAIL>, YEAR1, YEAR2
2.750 +#: ralcalc.1.xml:0(None)
2.751 +msgid "translator-credits"
2.752 +msgstr ""
2.753 +"Launchpad Contributions:\n"
2.754 +" Nguyen Quang Chien https://launchpad.net/~nguyenquangchien"
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/man/ralcalc-vi.1.xml Wed Oct 27 09:15:42 2010 +0100
3.3 @@ -0,0 +1,327 @@
3.4 +<?xml version="1.0" encoding="utf-8"?>
3.5 +<?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?>
3.6 +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd">
3.7 +<refentry xml:id="ralcalc">
3.8 + <refmeta>
3.9 + <refentrytitle>ralcalc</refentrytitle>
3.10 + <manvolnum>1</manvolnum>
3.11 + </refmeta>
3.12 +
3.13 + <refnamediv>
3.14 + <refname>ralcalc</refname>
3.15 + <refpurpose>máy tính đơn giản được thao tác từ dòng lệnh</refpurpose>
3.16 + </refnamediv>
3.17 +
3.18 + <refsynopsisdiv>
3.19 + <cmdsynopsis>
3.20 + <command>ralcalc</command>
3.21 + <group choice="plain">
3.22 + <arg choice="plain">
3.23 + <group choice="req">
3.24 + <arg choice="plain"><option>-a</option></arg>
3.25 + <arg choice="plain"><option>--all</option></arg>
3.26 + </group>
3.27 + </arg>
3.28 + <arg choice="plain">
3.29 + <group choice="req">
3.30 + <arg choice="plain"><option>-h</option></arg>
3.31 + <arg choice="plain"><option>--help</option></arg>
3.32 + </group>
3.33 + </arg>
3.34 + <arg choice="plain">
3.35 + <group choice="req">
3.36 + <arg choice="plain"><option>-v</option></arg>
3.37 + <arg choice="plain"><option>--version</option></arg>
3.38 + </group>
3.39 + </arg>
3.40 + </group>
3.41 + </cmdsynopsis>
3.42 +
3.43 + <cmdsynopsis>
3.44 + <command>ralcalc</command>
3.45 + <group choice="opt">
3.46 + <arg><option>-e</option></arg>
3.47 + <arg><option>-r</option></arg>
3.48 + </group>
3.49 + <arg><option>-f</option> <replaceable>tên file</replaceable></arg>
3.50 + <arg><option>-i</option></arg>
3.51 + <arg><option>-q</option></arg>
3.52 + <arg><option>-s</option><replaceable>tiền tố</replaceable></arg>
3.53 + <arg choice="plain"><replaceable>phương trình</replaceable></arg>
3.54 + </cmdsynopsis>
3.55 +
3.56 + <cmdsynopsis>
3.57 + <command>=</command>
3.58 + <group choice="plain">
3.59 + <arg choice="plain">
3.60 + <group choice="req">
3.61 + <arg choice="plain"><option>-a</option></arg>
3.62 + <arg choice="plain"><option>--all</option></arg>
3.63 + </group>
3.64 + </arg>
3.65 + <arg choice="plain">
3.66 + <group choice="req">
3.67 + <arg choice="plain"><option>-h</option></arg>
3.68 + <arg choice="plain"><option>--help</option></arg>
3.69 + </group>
3.70 + </arg>
3.71 + <arg choice="plain">
3.72 + <group choice="req">
3.73 + <arg choice="plain"><option>-v</option></arg>
3.74 + <arg choice="plain"><option>--version</option></arg>
3.75 + </group>
3.76 + </arg>
3.77 + </group>
3.78 + </cmdsynopsis>
3.79 +
3.80 + <cmdsynopsis>
3.81 + <command>=</command>
3.82 + <group choice="opt">
3.83 + <arg><option>-e</option></arg>
3.84 + <arg><option>-r</option></arg>
3.85 + </group>
3.86 + <arg><option>-f</option> <replaceable>tên file</replaceable></arg>
3.87 + <arg><option>-i</option></arg>
3.88 + <arg><option>-q</option></arg>
3.89 + <arg><option>-s</option><replaceable>tiền tố</replaceable></arg>
3.90 + <arg choice="plain"><replaceable>phương trình</replaceable></arg>
3.91 + </cmdsynopsis>
3.92 + </refsynopsisdiv>
3.93 +
3.94 + <refsect1>
3.95 + <title>Mô tả</title>
3.96 + <para><command>ralcalc</command> là máy tính chạy trên dòng lệnh giúp bạn thực hiện phép tính nhanh chóng, những lúc chỉ cần một đáp số mà không cần phải khởi động và thoát chương trình.</para>
3.97 +
3.98 + <para><command>ralcalc</command> cũng được cài đặt như lệnh <command>=</command> để có thể được sử dụng nhanh hơn.</para>
3.99 + </refsect1>
3.100 +
3.101 + <refsect1>
3.102 + <title>Tuỳ chọn</title>
3.103 + <variablelist>
3.104 + <varlistentry>
3.105 + <term><option>-a</option></term>
3.106 + <term><option>--all</option></term>
3.107 + <listitem>
3.108 + <para>In ra tất cả các toán tử, hàm số và hằng số hiện có.</para>
3.109 + </listitem>
3.110 + </varlistentry>
3.111 + <varlistentry>
3.112 + <term><option>-e</option></term>
3.113 + <listitem>
3.114 + <para>Hiển thị kết quả dưới dạng "1e-3" thay vì dùng các tiền tố SI.</para>
3.115 + </listitem>
3.116 + </varlistentry>
3.117 + <varlistentry>
3.118 + <term><option>-f</option></term>
3.119 + <listitem>
3.120 + <para>Xử lí dãy các phép tính từ một file. Xem phần FILE INPUT sau đây để biết thêm thông tin.</para>
3.121 + </listitem>
3.122 + </varlistentry>
3.123 + <varlistentry>
3.124 + <term><option>-h</option></term>
3.125 + <term><option>--help</option></term>
3.126 + <listitem>
3.127 + <para>Hiển thị cách dùng, phiên bản và thông tin về tác giả.</para>
3.128 + </listitem>
3.129 + </varlistentry>
3.130 + <varlistentry>
3.131 + <term><option>-i</option></term>
3.132 + <listitem>
3.133 + <para>Xử lí dãy các phép tính từ <filename class="devicefile">stdin</filename>. Xem phần FILE INPUT sau đây để biết thêm thông tin.</para>
3.134 + </listitem>
3.135 + </varlistentry>
3.136 + <varlistentry>
3.137 + <term><option>-q</option></term>
3.138 + <!-- <term><option>- -quiet</option></term> -->
3.139 + <listitem>
3.140 + <para>Chỉ hiển thị kết quả (và do đó giấu đi lệnh nhập vào và lỗi, nếu có).</para>
3.141 + </listitem>
3.142 + </varlistentry>
3.143 + <varlistentry>
3.144 + <term><option>-r</option></term>
3.145 + <!-- <term><option>- -raw</option></term> -->
3.146 + <listitem>
3.147 + <para>Hiển thị kết quả dưới dạng thập phân mà không có các tiền tố SI hay số mũ.</para>
3.148 + </listitem>
3.149 + </varlistentry>
3.150 + <varlistentry>
3.151 + <term><option>-s</option></term>
3.152 + <!-- <term><option>- -si-prefix</option></term> -->
3.153 + <listitem>
3.154 + <para>Hiển thị kết quả atheo một tiền tố SI riêng. Tùy chọ này sẽ được bỏ qua nếu <option>-e</option> hoặc <option>-r</option> cũng được dùng.</para>
3.155 + </listitem>
3.156 + </varlistentry>
3.157 + <varlistentry>
3.158 + <term><option>-v</option></term>
3.159 + <term><option>--version</option></term>
3.160 + <listitem>
3.161 + <para>Hiển thị cách dùng, phiên bản và thông tin về tác giả.</para>
3.162 + </listitem>
3.163 + </varlistentry>
3.164 + </variablelist>
3.165 + </refsect1>
3.166 +
3.167 + <refsect1>
3.168 + <title>Định dạng Số</title>
3.169 + <para>Các số thập phân nên dùng dấu "." hoặc "," làm dấu phân cách (quy định dấu này phụ thuộc vào từng máy); không có dấu phân cách hàng nghìn.</para>
3.170 + <para><command>ralcalc</command> hỗ trợ các chữ tiền tố SI cho cả đầu vào lẫn đầu ra: <programlisting>
3.171 + <userinput>= 2u/35</userinput>
3.172 + <computeroutput>2u/35 = 57.1429n</computeroutput></programlisting></para>
3.173 + <para>Các số kiểu như 1e-3 cũng được hỗ trợ, trong đó chữ "e" biểu thị lũy thừa của 10. Đừng dùng lẫn các tiền tố SI và chữ "e" trong cùng một số (mặc dù 1e-3n là hợp lệ, nhưng 1ne-3 thì không - và tốt nhất tránh cả hai cách để đỡ nhầm lẫn).</para>
3.174 + <para>Các tiền tố SI được hỗ trợ bao gồm: Y, Z, E, P, T, G, M, k, m, u, n, p, f, a, z, y.</para>
3.175 + </refsect1>
3.176 +
3.177 + <refsect1>
3.178 + <title>Toán tử</title>
3.179 + <para>Các toán tử đơn giản như cộng (+), trừ (-), nhân (*, x), chia (/) và lũy thừa (^) đều được hỗ trợ, với phép cộng và trừ có thứ tự ưu tiên thực hiện thấp nhất và lũy thừa ưu tiên cao nhất. <programlisting>
3.180 + <userinput>= 1+2x3</userinput>
3.181 + <computeroutput>1+2x3 = 7</computeroutput>
3.182 +
3.183 + <userinput>= 1/2^0.5</userinput>
3.184 + <computeroutput>1/2^0.5 = 0.707107</computeroutput></programlisting></para>
3.185 + <para>Các ngoặc ( (), [] ) có thể được dùng để kiểm soát thứ tự thực hiện phép tính: <programlisting>
3.186 + <userinput>= [1+2]x3</userinput>
3.187 + <computeroutput>[1+2]x3 = 9</computeroutput></programlisting></para>
3.188 + <para>Cả ngoặc vuông và ngoặc tròn đều dùng được và chúng tương đương nhau, vì vậy [1+2)x3 cũng hợp lệ. Ngoặc tròn thường dùng trong toán học, nhưng ngoặc vuông (và dấu "x" cho phép nhân) sẽ cần dùng đến trong trường hợp muốn tránh bị trùng kí hiệu với shell.</para>
3.189 + <para><command>ralcalc</command> lưu kết quả tính toán vì vậy bằng kí tự "_" ta có thể dùng kết quả này trong phép tính kế tiếp. <programlisting>
3.190 + <userinput>= 2^0.5</userinput>
3.191 + <computeroutput>2^0.5 = 1.41421</computeroutput>
3.192 +
3.193 + <userinput>= 1/_</userinput>
3.194 + <computeroutput>1/_ = 0.707107</computeroutput></programlisting></para>
3.195 + </refsect1>
3.196 +
3.197 + <refsect1>
3.198 + <title>Hàm số</title>
3.199 + <para>Các hàm <function>sin</function>, <function>cos</function>, <function>tan</function>, <function>asin</function>, <function>acos</function>, <function>atan</function>, <function>sqrt</function>, <function>log</function> (lôga cơ số 10) và <function>ln</function> (lôga tự nhiên) đều được hỗ trợ. Các hàm lượng giác tính với ra-đian. Việc dùng ngoặc là không cần thiết, nhưng có thể nếu muốn đỡ bị lẫn thứ tự thực hiện. Các hàm có độ ưu tiên thứ tự thực hiện ngang với phép nhân/chia, vì vậy phải cẩn thận: <programlisting>
3.200 + <userinput>= sin2x2</userinput>
3.201 + <computeroutput>sin2x2 = 1.81859</computeroutput>
3.202 +
3.203 + <userinput>= sin[2x2]</userinput>
3.204 + <computeroutput>sin[2x2] = -0.756802</computeroutput></programlisting></para>
3.205 + </refsect1>
3.206 +
3.207 + <refsect1>
3.208 + <title>Hằng số</title>
3.209 + <para>Các hằng số <constant>pi</constant> (3.14159) và <constant>exp</constant> (2.71828) có thể được dùng và chúng được coi như bất kì số thông thường nào.</para>
3.210 + </refsect1>
3.211 +
3.212 + <refsect1 id="fileinput">
3.213 + <title>File đầu vào</title>
3.214 + <para>Một dãy các phép tính có thể thực hiện liền nhau nếu chúng được đặt trong một file. Mỗi dòng của file sẽ được xử lí giống như khi <command>ralcalc</command> được chạy với các thông số đó. File có thể giống như sau (chú ý sự vắng mặt của lệnh <command>=</command> hoặc <command>ralcalc</command>): <programlisting>
3.215 + <userinput>2^0.5</userinput>
3.216 + <userinput>1/_</userinput>
3.217 + <userinput>238/1064x100</userinput></programlisting></para>
3.218 + <para>Cũng có thể nhập vào qua file <filename class="devicefile">stdin</filename>, nghĩa là trực tiếp đọc từ cửa sổ lệnh với mỗi dòng được tính toán như thông thường. Để thoát, ấn "q" hoặc "quit" ở đầu dòng mới, dùng Ctrl-D để chỉ định kết thúc file, hoặc dùng Ctrl-C để chấm dứt chạy <command>ralcalc</command>.</para>
3.219 + <para>Nếu trên dòng lệnh có bất kì tùy chọn file đầu vào nào thì các phép tính ở dòng lệnh sẽ được thực hiện trước. Nếu có cả hai tùy chọn file đầu vào thì các phép tính ở <option>-f</option> sẽ được thực hiên trước, sau đó mới đến ở <filename class="devicefile">stdin</filename>.</para>
3.220 + </refsect1>
3.221 +
3.222 + <refsect1>
3.223 + <title>Các ví dụ</title>
3.224 + <para>Phép tính cơ bản: <programlisting>
3.225 + <userinput>= ln 1.0001</userinput>
3.226 + <computeroutput>ln 1.0001 = 99.995u</computeroutput></programlisting></para>
3.227 + <para>Dạng trình bày kết quả số mũ: <programlisting>
3.228 + <userinput>= -e ln 1.0001</userinput>
3.229 + <computeroutput>ln 1.0001 = 9.9995e-05</computeroutput></programlisting></para>
3.230 + <para>Định dạng kết quả số thuần tuý: <programlisting>
3.231 + <userinput>= -r ln 1.0001</userinput>
3.232 + <computeroutput>ln 1.0001 = 0.000100</computeroutput></programlisting></para>
3.233 + <para>Đáp số với một tiền tố SI: <programlisting>
3.234 + <userinput>= -s m ln 1.0001</userinput>
3.235 + <computeroutput>ln 1.0001 = 0.099995</computeroutput></programlisting></para>
3.236 + </refsect1>
3.237 +
3.238 + <refsect1>
3.239 + <title>Các biến môi trường</title>
3.240 + <variablelist>
3.241 + <varlistentry>
3.242 + <term><envar>HOME</envar></term>
3.243 + <listitem>
3.244 + <para>Chỉ định chỗ lưu giữ file .ralcalc_result.</para>
3.245 + </listitem>
3.246 + </varlistentry>
3.247 + </variablelist>
3.248 + </refsect1>
3.249 +
3.250 + <refsect1>
3.251 + <title>Các giá trị thoát</title>
3.252 + <variablelist>
3.253 + <varlistentry>
3.254 + <term>0</term>
3.255 + <listitem>
3.256 + <para>Thành công</para>
3.257 + </listitem>
3.258 + </varlistentry>
3.259 + <varlistentry>
3.260 + <term>1</term>
3.261 + <listitem>
3.262 + <para>Ít nhất là có một lỗi đã nảy sinh.</para>
3.263 + </listitem>
3.264 + </varlistentry>
3.265 + </variablelist>
3.266 + </refsect1>
3.267 +
3.268 + <refsect1>
3.269 + <title>File</title>
3.270 + <para>
3.271 + <filename>${HOME}/.ralcalc_result</filename>
3.272 + <blockquote>Kết quả của phép tính gần nhất, ta có thể lưu lại nó bằng dấu "_" để phục vụ phép tính kế tiếp. Lưu ý rằng điều này không chắc áp dụng được với các hệ máy khác nhau.</blockquote>
3.273 + </para>
3.274 + </refsect1>
3.275 +
3.276 + <refsect1>
3.277 + <title>Chẩn đoán</title>
3.278 + <para><command>ralcalc</command> cố gắng lưu ý người dùng càng nhiều lỗi càng tốt và chỉ ra các lỗi đó ở đâu, nếu như chúng liên quan đến phần người dùng nhập vào.</para>
3.279 +
3.280 + <para>Nếu có kí tự đáng ngờ xuât hiên trong phương trình thì một thông báo lỗi "<errortext>unknown token</errortext>" sẽ được đưa ra. Có một dấu chỉ vào đúng kí tự không hợp lệ đó. <programlisting>
3.281 + <userinput>= 34/3@2</userinput>
3.282 +
3.283 + <computeroutput>Error: 34/3@2</computeroutput>
3.284 + ^ unknown token</programlisting></para>
3.285 +
3.286 + <para>Nếu có một con số không hợp lệ thì một thông báo lỗi "<errortext>unknown token</errortext>" sẽ được đưa ra. Có một dấu chỉ vào cuối số không hợp lệ đó. <programlisting>
3.287 + <userinput>= 3.14.159x2.8^2</userinput>
3.288 +
3.289 + <computeroutput>Error: 3.14.159x2.8^2</computeroutput>
3.290 + ^ bad number</programlisting></para>
3.291 +
3.292 + <para>Nếu số ngoặc mở và ngoặc đóng không bằng nhau, một lỗi "<errortext>mismatched brackets</errortext>" sẽ được thông báo. Khi đó vị trí chỉ lỗi không quan trọng. <programlisting>
3.293 + <userinput>= 5/[[2+3]*9</userinput>
3.294 +
3.295 + <computeroutput>Error: 5/[[2+3]*9</computeroutput>
3.296 + ^ mismatched brackets</programlisting></para>
3.297 +
3.298 + <para>Nếu một toán tử xuất hiên ở vị trí không hợp lệ, một lỗi "<errortext>invalid operator</errortext>" sẽ được thông báo. Dấu chỉ lỗi sẽ ở vị trí toán tử không hợp lệ đó. <programlisting>
3.299 + <userinput>= 3^^7</userinput>
3.300 +
3.301 + <computeroutput>Error: 3^^7</computeroutput>
3.302 + ^ invalid operator</programlisting></para>
3.303 +
3.304 + <para>Nếu ngoặc xuât hiên ở vị trí không hợp lệ, một lỗi "<errortext>invalid bracket</errortext>" sẽ được thông báo. Kiểu lỗi này thường đi cùng với các lỗi khác, vì vậy sẽ có một số thông báo xuất hiên trên màn hình. Khi đó tốt nhất là sửa lỗi này trước tiên, vì nó dường như là gốc rễ của vấn đề. Dấu chỉ lỗi sẽ ở vị trí ngoặc không hợp lệ. <programlisting>
3.305 + <userinput>= [2+]3</userinput>
3.306 +
3.307 + <computeroutput>Error: [2+]3</computeroutput>
3.308 + ^ invalid bracket
3.309 +
3.310 + <computeroutput>Error: [2+]3</computeroutput>
3.311 + ^ invalid operator</programlisting></para>
3.312 +
3.313 + <para>Nếu <command>ralcalc</command> không thể điều động bộ nhớ, một lỗi "<errortext>out of memory</errortext>" sẽ được thông báo.</para>
3.314 +
3.315 + <para>Lỗi bên trong: Nếu bộ tách phát hiện hai số cạnh nhau mà không phát thông báo lỗi "<errortext>bad number</errortext>", thì thông báo lỗi "<errortext>duplicate number</errortext>" sẽ được phát ra. Điều này lẽ ra không bao giờ có.</para>
3.316 +
3.317 + <para>Lỗi bên trong: Nếu một mã lỗi không rõ được chuyển đến hàm báo lỗi, thì dòng thông báo lỗi "<errortext>unknown error</errortext>" sẽ được phát ra. Điều này lẽ ra không bao giờ có.</para>
3.318 + </refsect1>
3.319 +
3.320 + <refsect1>
3.321 + <title>Lỗi</title>
3.322 + <para>Mỗi lần chỉ chuyển được một "<option>-f <replaceable>filename</replaceable></option>" (tên file) duy nhất.</para>
3.323 + <para>Nếu bạn phát hiện lỗi trong chương trình, hãy báo cáo đến <uri type="webpage">http://bugs.launchpad.net/ralcalc</uri></para>
3.324 + </refsect1>
3.325 +
3.326 + <refsect1>
3.327 + <title>Tác giả</title>
3.328 + <para>Roger Light <email>roger@atchoo.org</email></para>
3.329 + </refsect1>
3.330 +</refentry>