diff options
Diffstat (limited to 'compiler/ucd_table.go.tmpl')
-rw-r--r-- | compiler/ucd_table.go.tmpl | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/compiler/ucd_table.go.tmpl b/compiler/ucd_table.go.tmpl deleted file mode 100644 index 8d6fbc8..0000000 --- a/compiler/ucd_table.go.tmpl +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by {{ .GeneratorName }}; DO NOT EDIT. - -package compiler - -import "github.com/nihei9/maleeni/ucd" - -// https://www.unicode.org/reports/tr44/#GC_Values_Table -var compositGeneralCategories = map[string][]string{ - // Cased_Letter - "lc": {"lu", "ll", "lt"}, - // Letter - "l": {"lu", "ll", "lt", "lm", "lo"}, - // Mark - "m": {"mm", "mc", "me"}, - // Number - "n": {"nd", "nl", "no"}, - // Punctuation - "p": {"pc", "pd", "ps", "pi", "pe", "pf", "po"}, - // Symbol - "s": {"sm", "sc", "sk", "so"}, - // Separator - "z": {"zs", "zl", "zp"}, - // Other - "c": {"cc", "cf", "cs", "co", "cn"}, -} - -// https://www.unicode.org/Public/13.0.0/ucd/DerivedCoreProperties.txt -var derivedCoreProperties = map[string][]string{ - "alpha": {`\p{Lowercase=yes}`, `\p{Uppercase=yes}`, `\p{Lt}`, `\p{Lm}`, `\p{Lo}`, `\p{Nl}`, `\p{Other_Alphabetic=yes}`}, - "lower": {`\p{Ll}`, `\p{Other_Lowercase=yes}`}, - "upper": {`\p{Lu}`, `\p{Other_Uppercase=yes}`}, -} - -// https://www.unicode.org/Public/13.0.0/ucd/PropertyAliases.txt -var propertyNameAbbs = map[string]string{ - "generalcategory": "gc", - "gc": "gc", - "alphabetic": "alpha", - "alpha": "alpha", - "otheralphabetic": "oalpha", - "oalpha": "oalpha", - "lowercase": "lower", - "lower": "lower", - "uppercase": "upper", - "upper": "upper", - "otherlowercase": "olower", - "olower": "olower", - "otheruppercase": "oupper", - "oupper": "oupper", - "whitespace": "wspace", - "wspace": "wspace", - "space": "wspace", -} - -// https://www.unicode.org/reports/tr44/#Type_Key_Table -// https://www.unicode.org/reports/tr44/#Binary_Values_Table -var binaryValues = map[string]bool{ - "yes": true, - "y": true, - "true": true, - "t": true, - "no": false, - "n": false, - "false": false, - "f": false, -} - -// https://www.unicode.org/Public/13.0.0/ucd/PropertyValueAliases.txt -var generalCategoryValueAbbs = map[string]string{ {{ range $long, $abb := .PropertyValueAliases.GeneralCategory }} - "{{ $long }}": "{{ $abb }}",{{ end }} -} - -// https://www.unicode.org/Public/13.0.0/ucd/UnicodeData.txt -var generalCategoryCodePoints = map[string][]*ucd.CodePointRange{ {{ range $propName, $codePoints := .UnicodeData.GeneralCategory }} - "{{ $propName }}": { {{ range $codePoints }} - &ucd.CodePointRange{From: rune({{ .From }}), To: rune({{ .To }})},{{ end }} - },{{ end }} -} - -// https://www.unicode.org/Public/13.0.0/ucd/PropList.txt -var otherAlphabeticCodePoints = []*ucd.CodePointRange{ {{ range .PropList.OtherAlphabetic }} - &ucd.CodePointRange{From: rune({{ .From }}), To: rune({{ .To }})},{{ end }} -} - -// https://www.unicode.org/Public/13.0.0/ucd/PropList.txt -var otherLowercaseCodePoints = []*ucd.CodePointRange{ {{ range .PropList.OtherLowercase }} - &ucd.CodePointRange{From: rune({{ .From }}), To: rune({{ .To }})},{{ end }} -} - -// https://www.unicode.org/Public/13.0.0/ucd/PropList.txt -var otherUppercaseCodePoints = []*ucd.CodePointRange{ {{ range .PropList.OtherUppercase }} - &ucd.CodePointRange{From: rune({{ .From }}), To: rune({{ .To }})},{{ end }} -} - -// https://www.unicode.org/Public/13.0.0/ucd/PropList.txt -var whiteSpaceCodePoints = []*ucd.CodePointRange{ {{ range .PropList.WhiteSpace }} - &ucd.CodePointRange{From: rune({{ .From }}), To: rune({{ .To }})},{{ end }} -} |