there is entirely too much unicode
This commit is contained in:
parent
6be21e9f0b
commit
41604becdc
|
@ -25,6 +25,8 @@ var bigboldshitz = "𝐀𝐁𝐂𝐃𝐄𝐅𝐆𝐇𝐈𝐉𝐊𝐋𝐌𝐍𝐎
|
||||||
var lilboldshitz = "𝐚𝐛𝐜𝐝𝐞𝐟𝐠𝐡𝐢𝐣𝐤𝐥𝐦𝐧𝐨𝐩𝐪𝐫𝐬𝐭𝐮𝐯𝐰𝐱𝐲𝐳"
|
var lilboldshitz = "𝐚𝐛𝐜𝐝𝐞𝐟𝐠𝐡𝐢𝐣𝐤𝐥𝐦𝐧𝐨𝐩𝐪𝐫𝐬𝐭𝐮𝐯𝐰𝐱𝐲𝐳"
|
||||||
var biggothshitz = "𝕬𝕭𝕮𝕯𝕰𝕱𝕲𝕳𝕴𝕵𝕶𝕷𝕸𝕹𝕺𝕻𝕼𝕽𝕾𝕿𝖀𝖁𝖂𝖃𝖄𝖅"
|
var biggothshitz = "𝕬𝕭𝕮𝕯𝕰𝕱𝕲𝕳𝕴𝕵𝕶𝕷𝕸𝕹𝕺𝕻𝕼𝕽𝕾𝕿𝖀𝖁𝖂𝖃𝖄𝖅"
|
||||||
var lilgothshitz = "𝖆𝖇𝖈𝖉𝖊𝖋𝖌𝖍𝖎𝖏𝖐𝖑𝖒𝖓𝖔𝖕𝖖𝖗𝖘𝖙𝖚𝖛𝖜𝖝𝖞𝖟"
|
var lilgothshitz = "𝖆𝖇𝖈𝖉𝖊𝖋𝖌𝖍𝖎𝖏𝖐𝖑𝖒𝖓𝖔𝖕𝖖𝖗𝖘𝖙𝖚𝖛𝖜𝖝𝖞𝖟"
|
||||||
|
var moegothshitz = "𝔄𝔅𝕮𝔇𝔈𝔉𝔊𝕳ℑ𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔ℜ𝔖𝔗𝔘𝔙𝔚𝔛𝔜𝖅"
|
||||||
|
var morgothshitz = "𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷"
|
||||||
var bigitalshitz = "𝑨𝑩𝑪𝑫𝑬𝑭𝑮𝑯𝑰𝑱𝑲𝑳𝑴𝑵𝑶𝑷𝑸𝑹𝑺𝑻𝑼𝑽𝑾𝑿𝒀𝒁"
|
var bigitalshitz = "𝑨𝑩𝑪𝑫𝑬𝑭𝑮𝑯𝑰𝑱𝑲𝑳𝑴𝑵𝑶𝑷𝑸𝑹𝑺𝑻𝑼𝑽𝑾𝑿𝒀𝒁"
|
||||||
var lilitalshitz = "𝒂𝒃𝒄𝒅𝒆𝒇𝒈𝒉𝒊𝒋𝒌𝒍𝒎𝒏𝒐𝒑𝒒𝒓𝒔𝒕𝒖𝒗𝒘𝒙𝒚𝒛"
|
var lilitalshitz = "𝒂𝒃𝒄𝒅𝒆𝒇𝒈𝒉𝒊𝒋𝒌𝒍𝒎𝒏𝒐𝒑𝒒𝒓𝒔𝒕𝒖𝒗𝒘𝒙𝒚𝒛"
|
||||||
var bigbangshitz = "𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ"
|
var bigbangshitz = "𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ"
|
||||||
|
@ -34,10 +36,11 @@ var bigblokshitz = "🅰🅱🅲🅳🅴🅵🅶🅷🅸🅹🅺🅻🅼🅽🅾
|
||||||
var re_alltheshitz = regexp.MustCompile(`([` +
|
var re_alltheshitz = regexp.MustCompile(`([` +
|
||||||
bigboldshitz + lilboldshitz +
|
bigboldshitz + lilboldshitz +
|
||||||
biggothshitz + lilgothshitz +
|
biggothshitz + lilgothshitz +
|
||||||
|
moegothshitz + morgothshitz +
|
||||||
bigitalshitz + lilitalshitz +
|
bigitalshitz + lilitalshitz +
|
||||||
bigbangshitz + lilbangshitz +
|
bigbangshitz + lilbangshitz +
|
||||||
bigblokshitz +
|
bigblokshitz +
|
||||||
"][ \ufe0f]?){3,}")
|
"][ '\ufe0f]?){3,}")
|
||||||
|
|
||||||
// this may not be especially fast
|
// this may not be especially fast
|
||||||
func unpucker(s string) string {
|
func unpucker(s string) string {
|
||||||
|
@ -47,11 +50,11 @@ func unpucker(s string) string {
|
||||||
loop1:
|
loop1:
|
||||||
for _, c := range r {
|
for _, c := range r {
|
||||||
xi++
|
xi++
|
||||||
if c == ' ' {
|
if c == ' ' || c == '\'' {
|
||||||
x[xi] = ' '
|
x[xi] = byte(c)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for _, set := range []string{bigboldshitz, biggothshitz, bigitalshitz, bigbangshitz, bigblokshitz} {
|
for _, set := range []string{bigboldshitz, biggothshitz, moegothshitz, bigitalshitz, bigbangshitz, bigblokshitz} {
|
||||||
i := 0
|
i := 0
|
||||||
for _, rr := range set {
|
for _, rr := range set {
|
||||||
if rr == c {
|
if rr == c {
|
||||||
|
@ -61,7 +64,7 @@ func unpucker(s string) string {
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, set := range []string{lilboldshitz, lilgothshitz, lilitalshitz, lilbangshitz} {
|
for _, set := range []string{lilboldshitz, lilgothshitz, morgothshitz, lilitalshitz, lilbangshitz} {
|
||||||
i := 0
|
i := 0
|
||||||
for _, rr := range set {
|
for _, rr := range set {
|
||||||
if rr == c {
|
if rr == c {
|
||||||
|
|
Loading…
Reference in New Issue