คู่มือ Google Transliterate API สําหรับนักพัฒนาซอฟต์แวร์
สงวนลิขสิทธิ์ Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-03-30 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2023-03-30 UTC"],[[["The Google Transliterate API allows you to detect languages and transliterate text blocks into various scripts within your web applications."],["It offers a `TransliterationControl` for managing transliteration settings and applying it to HTML elements, along with methods for controlling and customizing the process."],["To use the API, include the necessary JavaScript file, load the 'transliteration' package, and ensure your HTML uses UTF-8 encoding."],["You can use methods like `makeTransliteratable` to enable transliteration on specific elements and `google.language.transliterate` to transliterate text asynchronously."],["The API supports a range of languages, provides browser compatibility checks, and offers options for styling and customization to seamlessly integrate into your web application."]]],["The Google Transliterate API facilitates text conversion between scripts using JavaScript. Key actions include loading the API via `google.load`, enabling transliteration on HTML elements with `.makeTransliteratable`, and displaying a control using `.showControl`. Transliteration is managed with methods like `.enableTransliteration`, `.disableTransliteration`, `.toggleTransliteration`. Language pairs are set and retrieved with `.setLanguagePair` and `.getLanguagePair`, while current status is shown by `isTransliterationEnabled`. Asynchronous calls require callback functions. Event listeners are registered via `.addEventListener` to control different events.\n"]]