From cb9d92f0b4e0097579f6e5da1dc6e2f063b532a9 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sun, 28 Nov 2021 00:37:03 +0900 Subject: Make contributory properties unavailable except internal use This change follows [UAX #44 5.13 Property APIs]. > The following subtypes of Unicode character properties should generally not be exposed in APIs, > except in limited circumstances. They may not be useful, particularly in public API collections, > and may instead prove misleading to the users of such API collections. > > * Contributory properties are not recommended for public APIs. > ... https://unicode.org/reports/tr44/#Property_APIs --- ucd/property.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ucd/property.go') diff --git a/ucd/property.go b/ucd/property.go index 71bbcad..0b2ac62 100644 --- a/ucd/property.go +++ b/ucd/property.go @@ -1,5 +1,19 @@ package ucd +// contributoryProperties is a set of contributory properties maleeni uses internally. Property statuses are +// defined in the following table. +// +// https://unicode.org/reports/tr44/#Property_List_Table +var contributoryProperties = []string{ + "oalpha", + "olower", + "oupper", +} + +func ContributoryProperties() []string { + return contributoryProperties +} + // https://www.unicode.org/reports/tr44/#GC_Values_Table var compositGeneralCategories = map[string][]string{ // Cased_Letter -- cgit v1.2.3