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)

返回表示给定输入字符串的一组音素。 此方法主要用于对日语数据进行排序。 拼音读取对于日语数据处理非常重要,特别是要按正确的拼音顺序而不是字符码位顺序对名称进行排序。

日语中发音相同的正确名称可以在汉字中以不同的方式拼写。 按音素排序的要点是对给定正确名称的所有不同汉字拼写进行排序,使其在排序的列表中彼此相邻,而不是按字符码位对它们进行排序,并让各种拼写不彼此相邻排序。

适用于

另请参阅