Skip to content

Commit

Permalink
Capitalize CJK
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Hilbert <[email protected]>
  • Loading branch information
RyanHilbert authored Oct 31, 2024
1 parent 7607ab0 commit a7ddffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnicodeBlockGroup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ val Enum<*>?.strength: String get() = when(this){
PARAGRAPH_SEPARATOR,SEGMENT_SEPARATOR,WHITESPACE,OTHER_NEUTRALS -> "Neutral"
else -> "Other"
}
val Enum<*>?.title: String get()=if(this==null)UNKNOWN.title else name.split('_').joinToString(" "){it.lowercase().capitalize()}.replaceFirst(" To ","-to-")
val Enum<*>?.title: String get()=if(this==null)UNKNOWN.title else name.split('_').joinToString(" "){it.lowercase().capitalize()}.replace(" To ","-to-").replace("Cjk","CJK")
val CharCategory.label: String get() = "'${title.replaceFirst(Regex("""\s+\w*$"""),"").replace(' ','')} ${code.superscript}'"
val CharDirectionality?.label: String get() = when(this){
UNDEFINED -> "'${UNKNOWN.title} ${code.superscript}'"
Expand Down

0 comments on commit a7ddffc

Please sign in to comment.