TextReverseConversionGenerator.GetPhonemesAsync(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回一組代表指定輸入字串的 phonemes。 這個方法主要是用於日文中排序資料。 注音讀取對於日文資料處理很重要,特別是以適當的注音順序排序名稱,而不是以字元碼點順序排序。
日文中的適當名稱,在漢字中以不同方式拼字時聽起來相同。 依 phonemes 排序的點是排序指定適當名稱的所有不同漢字拼字拼字,以在排序清單中彼此旁邊,而不是依字元代碼點排序它們,並讓各種拼字不會彼此排序。
public:
virtual IAsyncOperation<IVectorView<TextPhoneme ^> ^> ^ GetPhonemesAsync(Platform::String ^ input) = GetPhonemesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<TextPhoneme>> GetPhonemesAsync(winrt::hstring const& input);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<TextPhoneme>> GetPhonemesAsync(string input);
function getPhonemesAsync(input)
Public Function GetPhonemesAsync (input As String) As IAsyncOperation(Of IReadOnlyList(Of TextPhoneme))
參數
- input
-
String
Platform::String
winrt::hstring
字串,包含日文中的單字。
傳回
成功完成非同步作業時, TextPhoneme 物件清單,代表 phoneme 格式的輸入字串。
- 屬性
Windows 需求
裝置系列 |
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
|
備註
結果清單中的每個 TextPhoneme 都有下列屬性。
- DisplayText一律符合輸入字串的區段。
- 針對日文輸入, ReadingText 是以 Hiragana 為基礎的顯示文字讀取。
- 如果系統無法產生讀取,則會報告 ReadingText 與 DisplayText相同。