Skip to content

amorphobia/AGS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

AGS Grapheme Splitter

AGS Grapheme Splitter (or Autohotkey Grapheme Splitter)

It split text strings by Unicode® Standard Annex (UAX) #29 and collect them into an array of strings

Usage

#Include "ags.ahk"
text := "Hello! 👨‍👩‍👧‍👦  café 🎉 தமிழ் 你好,𰻝𰻝面!"
graphemes := AGS.Split(text)
msg := Format("Total {} graphemes`r`n`r`n", graphemes.Length)

for grapheme in graphemes
    msg .= Format("  Grapheme {:02}:`t`"{}`"`r`n", A_Index, grapheme)

MsgBox(RTrim(msg))

Thanks to

License

MIT

About

AGS Grapheme Splitter (or AutoHotkey Grapheme Splitter)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published