Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/freebsd-doc/boooks_developers-handbook/fa/units/?format=api&page=41
https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/units/?format=api&page=42", "previous": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/units/?format=api&page=40", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Clearly, we need to strip those leading zeros." ], "previous_source": "", "target": [ "" ], "id_hash": -2041821791485865006, "content_hash": -2041821791485865006, "location": "book.translate.xml:13252", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2077, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/107607/?format=api", "priority": 100, "id": 190030, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=63a9fde60fd553d2", "url": "https://translate-dev.freebsd.org/api/units/190030/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.657456Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "So, we might consider reading the user input as is, converting it to binary inside the <acronym>FPU</acronym>, and printing it out from there." ], "previous_source": "", "target": [ "" ], "id_hash": -2035764144437791767, "content_hash": -2035764144437791767, "location": "book.translate.xml:13254", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2078, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/107608/?format=api", "priority": 100, "id": 190031, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=63bf834bec4ef3e9", "url": "https://translate-dev.freebsd.org/api/units/190031/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.666821Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "But..." ], "previous_source": "", "target": [ "اما..." ], "id_hash": 216963970309430650, "content_hash": 216963970309430650, "location": "book.translate.xml:13258, book.translate.xml:13586", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2079, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/107609/?format=api", "priority": 100, "id": 190032, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=8302cf94db5a1d7a", "url": "https://translate-dev.freebsd.org/api/units/190032/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.676336Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "What if the user types something like this:" ], "previous_source": "", "target": [ "اگر کاربر چیزی شبیه به این بنویسد چه:" ], "id_hash": -4271174657198596222, "content_hash": -4271174657198596222, "location": "book.translate.xml:13260", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2080, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/107610/?format=api", "priority": 100, "id": 190033, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=44b9bd476806df82", "url": "https://translate-dev.freebsd.org/api/units/190033/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.686885Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "<userinput>17459765723452353453534535353530530534563507309676764423</userinput>" ], "previous_source": "", "target": [ "<userinput>17459765723452353453534535353530530534563507309676764423</userinput>" ], "id_hash": 3454394662779641661, "content_hash": 3454394662779641661, "location": "book.translate.xml:13262", "context": "", "note": "(itstool) path: sect3/screen", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2081, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/107611/?format=api", "priority": 100, "id": 190034, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=aff079a4c4fc5f3d", "url": "https://translate-dev.freebsd.org/api/units/190034/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.698020Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Ha! The packed decimal <acronym>FPU</acronym> format lets us input 18–digit numbers. But the user has entered more than 18 digits. How do we handle that?" ], "previous_source": "", "target": [ "" ], "id_hash": -343216878523517590, "content_hash": -343216878523517590, "location": "book.translate.xml:13264", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2082, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/107612/?format=api", "priority": 100, "id": 190035, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=7b3ca61142aff56a", "url": "https://translate-dev.freebsd.org/api/units/190035/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.706962Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Well, we <emphasis>could</emphasis> modify our code to read the first 18 digits, enter it to the <acronym>FPU</acronym>, then read more, multiply what we already have on the <acronym>TOS</acronym> by 10 raised to the number of additional digits, then <function>add</function> to it." ], "previous_source": "", "target": [ "" ], "id_hash": -5110939479924435694, "content_hash": -5110939479924435694, "location": "book.translate.xml:13269", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2083, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/107613/?format=api", "priority": 100, "id": 190036, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=39124b9f36959512", "url": "https://translate-dev.freebsd.org/api/units/190036/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.715547Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Yes, we could do that. But in <emphasis>this</emphasis> program it would be ridiculous (in a different one it may be just the thing to do): Even the circumference of the Earth expressed in millimeters only takes 11 digits. Clearly, we cannot build a camera that large (not yet, anyway)." ], "previous_source": "", "target": [ "" ], "id_hash": 2869916276253455038, "content_hash": 2869916276253455038, "location": "book.translate.xml:13276", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2084, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 49, "source_unit": "https://translate-dev.freebsd.org/api/units/107614/?format=api", "priority": 100, "id": 190037, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=a7d3fda5d532f2be", "url": "https://translate-dev.freebsd.org/api/units/190037/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.724248Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "So, if the user enters such a huge number, he is either bored, or testing us, or trying to break into the system, or playing games—doing anything but designing a pinhole camera." ], "previous_source": "", "target": [ "" ], "id_hash": 7124697278345800548, "content_hash": 7124697278345800548, "location": "book.translate.xml:13283", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2085, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://translate-dev.freebsd.org/api/units/107615/?format=api", "priority": 100, "id": 190038, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=e2e0026d27fe6b64", "url": "https://translate-dev.freebsd.org/api/units/190038/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.733460Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "What will we do?" ], "previous_source": "", "target": [ "چه خواهیم کرد؟" ], "id_hash": 9093151883838858666, "content_hash": 9093151883838858666, "location": "book.translate.xml:13288", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2086, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/107616/?format=api", "priority": 100, "id": 190039, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=fe315d75f4e3a5aa", "url": "https://translate-dev.freebsd.org/api/units/190039/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.742008Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "We will slap him in the face, in a manner of speaking:" ], "previous_source": "", "target": [ "" ], "id_hash": 8311733557336774697, "content_hash": 8311733557336774697, "location": "book.translate.xml:13290", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2087, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/107617/?format=api", "priority": 100, "id": 190040, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=f35935a208c09829", "url": "https://translate-dev.freebsd.org/api/units/190040/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.750746Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "17459765723452353453534535353530530534563507309676764423\t???\t???\t???\t???\t???" ], "previous_source": "", "target": [ "17459765723452353453534535353530530534563507309676764423\t???\t???\t???\t???\t???" ], "id_hash": 7408129395233631258, "content_hash": 7408129395233631258, "location": "book.translate.xml:13293", "context": "", "note": "(itstool) path: sect3/screen", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2088, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/107618/?format=api", "priority": 100, "id": 190041, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=e6cef66f5d07ac1a", "url": "https://translate-dev.freebsd.org/api/units/190041/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.760317Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "To achieve that, we will simply ignore any leading zeros. Once we find a non–zero digit, we will initialize a counter to <constant>0</constant> and start taking three steps:" ], "previous_source": "", "target": [ "برای این کار، ما بهسادگی صفرهای ابتدایی را نادیده میگیریم. همین که یک رقم غیر صفر پیدا کردیم، یک شمارنده را به <constant>0</constant> مقداردهی میکنیم و شروع به انجام سه مرحلهٔ زیر میکنیم:" ], "id_hash": -2376615399070113374, "content_hash": -2376615399070113374, "location": "book.translate.xml:13295", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2089, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/107619/?format=api", "priority": 100, "id": 190042, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=5f0490e2eab3e1a2", "url": "https://translate-dev.freebsd.org/api/units/190042/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.769670Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Send the digit to the output." ], "previous_source": "", "target": [ "ارسال رقم به خروجی." ], "id_hash": 2249090361945426338, "content_hash": 2249090361945426338, "location": "book.translate.xml:13302", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2090, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/107620/?format=api", "priority": 100, "id": 190043, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=9f365fc49b8309a2", "url": "https://translate-dev.freebsd.org/api/units/190043/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.778429Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Append the digit to a buffer we will use later to produce the packed decimal we can send to the <acronym>FPU</acronym>." ], "previous_source": "", "target": [ "اضافه کردن رقم به یک میانگیر که دیرتر برای تولید مقدار دهدهیِ بستهبندی شدهای که میتوانیم به <acronym>FPU</acronym> ارسال کنیم استفاده خواهیم کرد." ], "id_hash": -6077115647238048330, "content_hash": -6077115647238048330, "location": "book.translate.xml:13306", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2091, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/107621/?format=api", "priority": 100, "id": 190044, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=2ba9bf844b6875b6", "url": "https://translate-dev.freebsd.org/api/units/190044/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.787083Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Increase the counter." ], "previous_source": "", "target": [ "افزایش شمارنده." ], "id_hash": 4447229489360471099, "content_hash": 4447229489360471099, "location": "book.translate.xml:13312", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2092, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/107622/?format=api", "priority": 100, "id": 190045, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=bdb7bba87bf9043b", "url": "https://translate-dev.freebsd.org/api/units/190045/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.795803Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Now, while we are taking these three steps, we also need to watch out for one of two conditions:" ], "previous_source": "", "target": [ "" ], "id_hash": 2415993679392225540, "content_hash": 2415993679392225540, "location": "book.translate.xml:13316", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2093, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/107623/?format=api", "priority": 100, "id": 190046, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=a18755736fc33904", "url": "https://translate-dev.freebsd.org/api/units/190046/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.803970Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "If the counter grows above 18, we stop appending to the buffer. We continue reading the digits and sending them to the output." ], "previous_source": "", "target": [ "" ], "id_hash": 1108407557416537812, "content_hash": 1108407557416537812, "location": "book.translate.xml:13321", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2094, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/107624/?format=api", "priority": 100, "id": 190047, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=8f61dacd062bced4", "url": "https://translate-dev.freebsd.org/api/units/190047/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.812115Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "If, or rather <emphasis>when</emphasis>, the next input character is not a digit, we are done inputting for now." ], "previous_source": "", "target": [ "" ], "id_hash": -7189906916437491059, "content_hash": -7189906916437491059, "location": "book.translate.xml:13327", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2095, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/107625/?format=api", "priority": 100, "id": 190048, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=1c3851c0d59e828d", "url": "https://translate-dev.freebsd.org/api/units/190048/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.820127Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Incidentally, we can simply discard the non–digit, unless it is a <constant>#</constant>, which we must return to the input stream. It starts a comment, so we must see it after we are done producing output and start looking for more input." ], "previous_source": "", "target": [ "" ], "id_hash": 8248421075396045897, "content_hash": 8248421075396045897, "location": "book.translate.xml:13331", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2096, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/107626/?format=api", "priority": 100, "id": 190049, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=f27847441cd3ac49", "url": "https://translate-dev.freebsd.org/api/units/190049/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.828716Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "That still leaves one possibility uncovered: If all the user enters is a zero (or several zeros), we will never find a non–zero to display." ], "previous_source": "", "target": [ "" ], "id_hash": 3595604735970095835, "content_hash": 3595604735970095835, "location": "book.translate.xml:13340", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2097, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/107627/?format=api", "priority": 100, "id": 190050, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=b1e627750035b2db", "url": "https://translate-dev.freebsd.org/api/units/190050/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.840827Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "We can determine this has happened whenever our counter stays at <constant>0</constant>. In that case we need to send <constant>0</constant> to the output, and perform another \"slap in the face\":" ], "previous_source": "", "target": [ "" ], "id_hash": -4261015626109668106, "content_hash": -4261015626109668106, "location": "book.translate.xml:13344", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2098, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/107628/?format=api", "priority": 100, "id": 190051, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=44ddd4dd275834f6", "url": "https://translate-dev.freebsd.org/api/units/190051/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.850635Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "0\t???\t???\t???\t???\t???" ], "previous_source": "", "target": [ "0\t???\t???\t???\t???\t???" ], "id_hash": -7965947497840319442, "content_hash": -7965947497840319442, "location": "book.translate.xml:13349", "context": "", "note": "(itstool) path: sect3/screen", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2099, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/107629/?format=api", "priority": 100, "id": 190052, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=117344f4c3d0e42e", "url": "https://translate-dev.freebsd.org/api/units/190052/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.860455Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Once we have displayed the focal length and determined it is valid (greater than <constant>0</constant> but not exceeding 18 digits), we can calculate the pinhole diameter." ], "previous_source": "", "target": [ "" ], "id_hash": 1525777897616025951, "content_hash": 1525777897616025951, "location": "book.translate.xml:13351", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2100, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/107630/?format=api", "priority": 100, "id": 190053, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=952ca6e9f98ba95f", "url": "https://translate-dev.freebsd.org/api/units/190053/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.869243Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "It is not by coincidence that <emphasis>pinhole</emphasis> contains the word <emphasis>pin</emphasis>. Indeed, many a pinhole literally is a <emphasis>pin hole</emphasis>, a hole carefully punched with the tip of a pin." ], "previous_source": "", "target": [ "" ], "id_hash": 9066871796985206567, "content_hash": 9066871796985206567, "location": "book.translate.xml:13356", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2101, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/107631/?format=api", "priority": 100, "id": 190054, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=fdd3ffdc6b4f9727", "url": "https://translate-dev.freebsd.org/api/units/190054/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.878348Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "That is because a typical pinhole is very small. Our formula gets the result in millimeters. We will multiply it by <constant>1000</constant>, so we can output the result in <emphasis>microns</emphasis>." ], "previous_source": "", "target": [ "" ], "id_hash": 2119905352410865423, "content_hash": 2119905352410865423, "location": "book.translate.xml:13362", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2102, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/107632/?format=api", "priority": 100, "id": 190055, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=9d6b6aafafe61f0f", "url": "https://translate-dev.freebsd.org/api/units/190055/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.887795Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "At this point we have yet another trap to face: <emphasis>Too much precision.</emphasis>" ], "previous_source": "", "target": [ "" ], "id_hash": 7723242881544951003, "content_hash": 7723242881544951003, "location": "book.translate.xml:13367", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2103, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/107633/?format=api", "priority": 100, "id": 190056, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=eb2e787b348d14db", "url": "https://translate-dev.freebsd.org/api/units/190056/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.897201Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Yes, the <acronym>FPU</acronym> was designed for high precision mathematics. But we are not dealing with high precision mathematics. We are dealing with physics (optics, specifically)." ], "previous_source": "", "target": [ "" ], "id_hash": -7886326255640076622, "content_hash": -7886326255640076622, "location": "book.translate.xml:13370", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2104, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/107634/?format=api", "priority": 100, "id": 190057, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=128e240dd5bc9eb2", "url": "https://translate-dev.freebsd.org/api/units/190057/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.907686Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Suppose we want to convert a truck into a pinhole camera (we would not be the first ones to do that!). Suppose its box is <constant>12</constant> meters long, so we have the focal length of <constant>12000</constant>. Well, using Bender's constant, it gives us square root of <constant>12000</constant> multiplied by <constant>0.04</constant>, which is <constant>4.381780460</constant> millimeters, or <constant>4381.780460</constant> microns." ], "previous_source": "", "target": [ "" ], "id_hash": 6013235748865077057, "content_hash": 6013235748865077057, "location": "book.translate.xml:13375", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2105, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 57, "source_unit": "https://translate-dev.freebsd.org/api/units/107635/?format=api", "priority": 100, "id": 190058, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=d3734e0dd9c86f41", "url": "https://translate-dev.freebsd.org/api/units/190058/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.916501Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Put either way, the result is absurdly precise. Our truck is not <emphasis>exactly</emphasis> <constant>12000</constant> millimeters long. We did not measure its length with such a precision, so stating we need a pinhole with the diameter of <constant>4.381780460</constant> millimeters is, well, deceiving. <constant>4.4</constant> millimeters would do just fine." ], "previous_source": "", "target": [ "" ], "id_hash": 3171061266041666947, "content_hash": 3171061266041666947, "location": "book.translate.xml:13385", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2106, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 47, "source_unit": "https://translate-dev.freebsd.org/api/units/107636/?format=api", "priority": 100, "id": 190059, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=ac01df6ba369fd83", "url": "https://translate-dev.freebsd.org/api/units/190059/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.925646Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "I \"only\" used ten digits in the above example. Imagine the absurdity of going for all 18!" ], "previous_source": "", "target": [ "" ], "id_hash": 6314431889625647974, "content_hash": 6314431889625647974, "location": "book.translate.xml:13395", "context": "", "note": "(itstool) path: note/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2107, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/107637/?format=api", "priority": 100, "id": 190060, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=d7a15e592b890b66", "url": "https://translate-dev.freebsd.org/api/units/190060/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.934654Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "We need to limit the number of significant digits of our result. One way of doing it is by using an integer representing microns. So, our truck would need a pinhole with the diameter of <constant>4382</constant> microns. Looking at that number, we still decide that <constant>4400</constant> microns, or <constant>4.4</constant> millimeters is close enough." ], "previous_source": "", "target": [ "" ], "id_hash": 760863447239864702, "content_hash": 760863447239864702, "location": "book.translate.xml:13399", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2108, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 53, "source_unit": "https://translate-dev.freebsd.org/api/units/107638/?format=api", "priority": 100, "id": 190061, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=8a8f2146274fb17e", "url": "https://translate-dev.freebsd.org/api/units/190061/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.943544Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Additionally, we can decide that no matter how big a result we get, we only want to display four significant digits (or any other number of them, of course). Alas, the <acronym>FPU</acronym> does not offer rounding to a specific number of digits (after all, it does not view the numbers as decimal but as binary)." ], "previous_source": "", "target": [ "" ], "id_hash": -932321418489590705, "content_hash": -932321418489590705, "location": "book.translate.xml:13408", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2109, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 55, "source_unit": "https://translate-dev.freebsd.org/api/units/107639/?format=api", "priority": 100, "id": 190062, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=730fba9c0a708c4f", "url": "https://translate-dev.freebsd.org/api/units/190062/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.952232Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "We, therefore, must devise an algorithm to reduce the number of significant digits." ], "previous_source": "", "target": [ "" ], "id_hash": 1455357792093520686, "content_hash": 1455357792093520686, "location": "book.translate.xml:13415", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2110, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/107640/?format=api", "priority": 100, "id": 190063, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=943278337ad4c32e", "url": "https://translate-dev.freebsd.org/api/units/190063/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.960499Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Here is mine (I think it is awkward—if you know a better one, <emphasis>please</emphasis>, let me know):" ], "previous_source": "", "target": [ "" ], "id_hash": -6517229290866516527, "content_hash": -6517229290866516527, "location": "book.translate.xml:13418", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2111, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/107641/?format=api", "priority": 100, "id": 190064, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=258e267d5e215dd1", "url": "https://translate-dev.freebsd.org/api/units/190064/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.969812Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Initialize a counter to <constant>0</constant>." ], "previous_source": "", "target": [ "مقداردهی شمارنده با <constant>0</constant>." ], "id_hash": 6980301244482927137, "content_hash": 6980301244482927137, "location": "book.translate.xml:13424", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2112, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/107642/?format=api", "priority": 100, "id": 190065, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=e0df02ffa69f3a21", "url": "https://translate-dev.freebsd.org/api/units/190065/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.977650Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "While the number is greater than or equal to <constant>10000</constant>, divide it by <constant>10</constant> and increase the counter." ], "previous_source": "", "target": [ "در حالی که عدد بزرگتر یا مساوی با <constant>10000</constant> باشد، تقسیم آن بر <constant>10</constant> و افزایش شمارنده." ], "id_hash": 180576630094584987, "content_hash": 180576630094584987, "location": "book.translate.xml:13429", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2113, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/107643/?format=api", "priority": 100, "id": 190066, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=8281897d03865c9b", "url": "https://translate-dev.freebsd.org/api/units/190066/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.986041Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Output the result." ], "previous_source": "", "target": [ "نمایش نتیجه." ], "id_hash": 2911411928135348534, "content_hash": 2911411928135348534, "location": "book.translate.xml:13436", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2114, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/107644/?format=api", "priority": 100, "id": 190067, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=a86769b92b57b136", "url": "https://translate-dev.freebsd.org/api/units/190067/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:44.994285Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "While the counter is greater than <constant>0</constant>, output <constant>0</constant> and decrease the counter." ], "previous_source": "", "target": [ "در حالی که شمارنده بزرگتر از <constant>0</constant> است، نمایش <constant>0</constant> و کاهش شمارنده." ], "id_hash": -1964522261755196524, "content_hash": -1964522261755196524, "location": "book.translate.xml:13440", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2115, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/107645/?format=api", "priority": 100, "id": 190068, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=64bc9d6952bc0b94", "url": "https://translate-dev.freebsd.org/api/units/190068/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.002645Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "The <constant>10000</constant> is only good if you want <emphasis>four</emphasis> significant digits. For any other number of significant digits, replace <constant>10000</constant> with <constant>10</constant> raised to the number of significant digits." ], "previous_source": "", "target": [ "" ], "id_hash": -1467414731209531320, "content_hash": -1467414731209531320, "location": "book.translate.xml:13447", "context": "", "note": "(itstool) path: note/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2116, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 29, "source_unit": "https://translate-dev.freebsd.org/api/units/107646/?format=api", "priority": 100, "id": 190069, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=6ba2b213a014a048", "url": "https://translate-dev.freebsd.org/api/units/190069/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.011293Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "We will, then, output the pinhole diameter in microns, rounded off to four significant digits." ], "previous_source": "", "target": [ "" ], "id_hash": -8523318472882666563, "content_hash": -8523318472882666563, "location": "book.translate.xml:13454", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2117, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/107647/?format=api", "priority": 100, "id": 190070, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=09b71701e44dc3bd", "url": "https://translate-dev.freebsd.org/api/units/190070/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.022016Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "At this point, we know the <emphasis>focal length</emphasis> and the <emphasis>pinhole diameter</emphasis>. That means we have enough information to also calculate the <emphasis>f–number</emphasis>." ], "previous_source": "", "target": [ "" ], "id_hash": 3080320332321754560, "content_hash": 3080320332321754560, "location": "book.translate.xml:13457", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2118, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/107648/?format=api", "priority": 100, "id": 190071, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=aabf7f05a2738dc0", "url": "https://translate-dev.freebsd.org/api/units/190071/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.030218Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "We will display the f–number, rounded to four significant digits. Chances are the f–number will tell us very little. To make it more meaningful, we can find the nearest <emphasis>normalized f–number</emphasis>, i.e., the nearest power of the square root of 2." ], "previous_source": "", "target": [ "" ], "id_hash": 442045041985900619, "content_hash": 442045041985900619, "location": "book.translate.xml:13463", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2119, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/107649/?format=api", "priority": 100, "id": 190072, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=8622759fa64ad04b", "url": "https://translate-dev.freebsd.org/api/units/190072/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.038528Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "We do that by multiplying the actual f–number by itself, which, of course, will give us its <function>square</function>. We will then calculate its base–2 logarithm, which is much easier to do than calculating the base–square–root–of–2 logarithm! We will round the result to the nearest integer. Next, we will raise 2 to the result. Actually, the <acronym>FPU</acronym> gives us a good shortcut to do that: We can use the <function role=\"opcode\">fscale</function> op code to \"scale\" 1, which is analogous to <function role=\"opcode\">shift</function>ing an integer left. Finally, we calculate the square root of it all, and we have the nearest normalized f–number." ], "previous_source": "", "target": [ "" ], "id_hash": 2363798204289642068, "content_hash": 2363798204289642068, "location": "book.translate.xml:13470", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2120, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 100, "source_unit": "https://translate-dev.freebsd.org/api/units/107650/?format=api", "priority": 100, "id": 190073, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=a0cde5f15f63ee54", "url": "https://translate-dev.freebsd.org/api/units/190073/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.047152Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "If all that sounds overwhelming—or too much work, perhaps—it may become much clearer if you see the code. It takes 9 op codes altogether:" ], "previous_source": "", "target": [ "" ], "id_hash": 4626004507837070018, "content_hash": 4626004507837070018, "location": "book.translate.xml:13484", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2121, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/107651/?format=api", "priority": 100, "id": 190074, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=c032de971afbfac2", "url": "https://translate-dev.freebsd.org/api/units/190074/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.056002Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "fmul\tst0, st0\n\tfld1\n\tfld\tst1\n\tfyl2x\n\tfrndint\n\tfld1\n\tfscale\n\tfsqrt\n\tfstp\tst1" ], "previous_source": "", "target": [ "fmul\tst0, st0\n\tfld1\n\tfld\tst1\n\tfyl2x\n\tfrndint\n\tfld1\n\tfscale\n\tfsqrt\n\tfstp\tst1" ], "id_hash": -4091184502679007504, "content_hash": -4091184502679007504, "location": "book.translate.xml:13488", "context": "", "note": "(itstool) path: sect3/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2122, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/92252/?format=api", "priority": 100, "id": 190075, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=4739315eef3c0ef0", "url": "https://translate-dev.freebsd.org/api/units/190075/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.066183Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "The first line, <function role=\"opcode\">fmul st0, st0</function>, squares the contents of the <acronym>TOS</acronym> (top of the stack, same as <varname role=\"register\">st</varname>, called <varname role=\"register\">st0</varname> by <application>nasm</application>). The <function role=\"opcode\">fld1</function> pushes <constant>1</constant> on the <acronym>TOS</acronym>." ], "previous_source": "", "target": [ "" ], "id_hash": -8611354412088659163, "content_hash": -8611354412088659163, "location": "book.translate.xml:13498", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2123, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 34, "source_unit": "https://translate-dev.freebsd.org/api/units/107652/?format=api", "priority": 100, "id": 190076, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=087e52c980767325", "url": "https://translate-dev.freebsd.org/api/units/190076/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.074798Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "The next line, <function role=\"opcode\">fld st1</function>, pushes the square back to the <acronym>TOS</acronym>. At this point the square is both in <varname role=\"register\">st</varname> and <varname role=\"register\">st(2)</varname> (it will become clear why we leave a second copy on the stack in a moment). <varname role=\"register\">st(1)</varname> contains <constant>1</constant>." ], "previous_source": "", "target": [ "" ], "id_hash": 987897372673082550, "content_hash": 987897372673082550, "location": "book.translate.xml:13506", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2124, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 46, "source_unit": "https://translate-dev.freebsd.org/api/units/107653/?format=api", "priority": 100, "id": 190077, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=8db5b76d24b884b6", "url": "https://translate-dev.freebsd.org/api/units/190077/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.084369Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "Next, <function role=\"opcode\">fyl2x</function> calculates base–2 logarithm of <varname role=\"register\">st</varname> multiplied by <varname role=\"register\">st(1)</varname>. That is why we placed <constant>1</constant> on <varname role=\"register\">st(1)</varname> before." ], "previous_source": "", "target": [ "" ], "id_hash": -55057253748561140, "content_hash": -55057253748561140, "location": "book.translate.xml:13514", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2125, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/107654/?format=api", "priority": 100, "id": 190078, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=7f3c65b82c022b0c", "url": "https://translate-dev.freebsd.org/api/units/190078/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.093491Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_developers-handbook/fa/?format=api", "source": [ "At this point, <varname role=\"register\">st</varname> contains the logarithm we have just calculated, <varname role=\"register\">st(1)</varname> contains the square of the actual f–number we saved for later." ], "previous_source": "", "target": [ "" ], "id_hash": 3755469155783227714, "content_hash": 3755469155783227714, "location": "book.translate.xml:13519", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2126, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/107655/?format=api", "priority": 100, "id": 190079, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/fa/?checksum=b41e1b4cc3653942", "url": "https://translate-dev.freebsd.org/api/units/190079/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-06T12:25:45.102251Z" } ] }{ "count": 2274, "next": "