共用方式為


TextReverseConversionGenerator 類別

定義

反轉會將混合音調和表意字元的日文字串轉換為注音字元字串。

public ref class TextReverseConversionGenerator sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ITextReverseConversionGeneratorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TextReverseConversionGenerator final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ITextReverseConversionGeneratorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class TextReverseConversionGenerator final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ITextReverseConversionGeneratorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TextReverseConversionGenerator
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ITextReverseConversionGeneratorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class TextReverseConversionGenerator
function TextReverseConversionGenerator(languageTag)
Public NotInheritable Class TextReverseConversionGenerator
繼承
Object Platform::Object IInspectable TextReverseConversionGenerator
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1607 14393 GetPhonemesAsync

建構函式

TextReverseConversionGenerator(String)

根據特定的BCP-47語言標記,建構TextReverseConversionGenerator物件。

屬性

LanguageAvailableButNotInstalled

判斷指定的語言標籤是否可用於反向轉換,但未安裝在使用者的裝置上。

ResolvedLanguage

取得成功建立 的 TextReverseConversionGenerator 物件的語言標記。

方法

ConvertBackAsync(String)

以非同步方式反向轉換字串,其中包含語意字元到注音運算式。

GetPhonemesAsync(String)

傳回一組代表指定輸入字串的 phonemes。 這個方法主要是用於日文中排序資料。 注音讀取對於日文資料處理很重要,特別是以適當的注音順序排序名稱,而不是以字元碼點順序排序。

日文中的適當名稱,在漢字中以不同方式拼字時聽起來相同。 依 phonemes 排序的點是排序指定適當名稱的所有不同漢字拼字拼字,以在排序清單中彼此旁邊,而不是依字元代碼點排序它們,並讓各種拼字不會彼此排序。

適用於

另請參閱