supersub 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/supersub.rb +195 -95
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48f315f8ea90769599d3553a5b26fabed9bc2f25e7eebc659bb54e5be40c5e5f
|
|
4
|
+
data.tar.gz: 69e0bb42266ed40fd07cef87103ee78c207a639740152f2b3b9f201e86303dcc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9483b79bae6159fea591e133f7e181cfcc069b8b873696b2a78a839266a159efb54a9030bda6488d091f9358beca5f74e9ef77c1c7d0e81fe0e6065d892718e
|
|
7
|
+
data.tar.gz: a8809fd2b95a1599d654c962bac5a477e1041563b625b04c6b0e20d11431641ed915d0905e4d312ab9eef4eeba0ec6a1b743bd4b94deabf2f0d30ad3650d8304
|
data/lib/supersub.rb
CHANGED
|
@@ -456,97 +456,97 @@ module SuperSub
|
|
|
456
456
|
}.freeze
|
|
457
457
|
|
|
458
458
|
SANS = {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
459
|
+
'a' => '𝖺',
|
|
460
|
+
'b' => '𝖻',
|
|
461
|
+
'c' => '𝖼',
|
|
462
|
+
'd' => '𝖽',
|
|
463
|
+
'e' => '𝖾',
|
|
464
|
+
'f' => '𝖿',
|
|
465
|
+
'g' => '𝗀',
|
|
466
|
+
'h' => '𝗁',
|
|
467
|
+
'i' => '𝗂',
|
|
468
|
+
'j' => '𝗃',
|
|
469
|
+
'k' => '𝗄',
|
|
470
|
+
'l' => '𝗅',
|
|
471
|
+
'm' => '𝗆',
|
|
472
|
+
'n' => '𝗇',
|
|
473
|
+
'o' => '𝗈',
|
|
474
|
+
'p' => '𝗉',
|
|
475
|
+
'q' => '𝗊',
|
|
476
|
+
'r' => '𝗋',
|
|
477
|
+
's' => '𝗌',
|
|
478
|
+
't' => '𝗍',
|
|
479
|
+
'u' => '𝗎',
|
|
480
|
+
'v' => '𝗏',
|
|
481
|
+
'w' => '𝗐',
|
|
482
|
+
'x' => '𝗑',
|
|
483
|
+
'y' => '𝗒',
|
|
484
|
+
'z' => '𝗓',
|
|
485
|
+
'A' => '𝖠',
|
|
486
|
+
'B' => '𝖡',
|
|
487
|
+
'C' => '𝖢',
|
|
488
|
+
'D' => '𝖣',
|
|
489
|
+
'E' => '𝖤',
|
|
490
|
+
'F' => '𝖥',
|
|
491
|
+
'G' => '𝖦',
|
|
492
|
+
'H' => '𝖧',
|
|
493
|
+
'I' => '𝖨',
|
|
494
|
+
'J' => '𝖩',
|
|
495
|
+
'K' => '𝖪',
|
|
496
|
+
'L' => '𝖫',
|
|
497
|
+
'M' => '𝖬',
|
|
498
|
+
'N' => '𝖭',
|
|
499
|
+
'O' => '𝖮',
|
|
500
|
+
'P' => '𝖯',
|
|
501
|
+
'Q' => '𝖰',
|
|
502
|
+
'R' => '𝖱',
|
|
503
|
+
'S' => '𝖲',
|
|
504
|
+
'T' => '𝖳',
|
|
505
|
+
'U' => '𝖴',
|
|
506
|
+
'V' => '𝖵',
|
|
507
|
+
'W' => '𝖶',
|
|
508
|
+
'X' => '𝖷',
|
|
509
|
+
'Y' => '𝖸',
|
|
510
|
+
'Z' => '𝖹',
|
|
511
|
+
'0' => '𝟢',
|
|
512
|
+
'1' => '𝟣',
|
|
513
|
+
'2' => '𝟤',
|
|
514
|
+
'3' => '𝟥',
|
|
515
|
+
'4' => '𝟦',
|
|
516
|
+
'5' => '𝟧',
|
|
517
|
+
'6' => '𝟨',
|
|
518
|
+
'7' => '𝟩',
|
|
519
|
+
'8' => '𝟪',
|
|
520
|
+
'9' => '𝟫',
|
|
521
|
+
'.' => '.',
|
|
522
|
+
',' => ',',
|
|
523
|
+
'?' => '?',
|
|
524
|
+
'!' => '!',
|
|
525
|
+
'@' => '@',
|
|
526
|
+
'#' => '#',
|
|
527
|
+
'$' => '$',
|
|
528
|
+
'%' => '%',
|
|
529
|
+
'^' => '^',
|
|
530
|
+
'&' => '&',
|
|
531
|
+
'*' => '*',
|
|
532
|
+
'(' => '(',
|
|
533
|
+
')' => ')',
|
|
534
|
+
'[' => '[',
|
|
535
|
+
']' => ']',
|
|
536
|
+
'{' => '{',
|
|
537
|
+
'}' => '}',
|
|
538
|
+
'<' => '<',
|
|
539
|
+
'>' => '>',
|
|
540
|
+
'/' => '/',
|
|
541
541
|
"'" => "'",
|
|
542
|
-
"
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
542
|
+
'"' => '"',
|
|
543
|
+
'-' => '-',
|
|
544
|
+
'_' => '_',
|
|
545
|
+
'=' => '=',
|
|
546
|
+
'+' => '+',
|
|
547
|
+
'`' => '`',
|
|
548
|
+
'~' => '~'
|
|
549
|
+
}.freeze
|
|
550
550
|
|
|
551
551
|
SANS_ITALIC = {
|
|
552
552
|
'a' => '𝘢',
|
|
@@ -870,7 +870,7 @@ module SuperSub
|
|
|
870
870
|
'n' => 'ɴ',
|
|
871
871
|
'o' => 'ᴏ',
|
|
872
872
|
'p' => 'ᴘ',
|
|
873
|
-
'q' => '
|
|
873
|
+
'q' => 'ǫ',
|
|
874
874
|
'r' => 'ʀ',
|
|
875
875
|
's' => 'ꜱ',
|
|
876
876
|
't' => 'ᴛ',
|
|
@@ -896,7 +896,7 @@ module SuperSub
|
|
|
896
896
|
'N' => 'ɴ',
|
|
897
897
|
'O' => 'ᴏ',
|
|
898
898
|
'P' => 'ᴘ',
|
|
899
|
-
'Q' => '
|
|
899
|
+
'Q' => 'ǫ',
|
|
900
900
|
'R' => 'ʀ',
|
|
901
901
|
'S' => 'ꜱ',
|
|
902
902
|
'T' => 'ᴛ',
|
|
@@ -1289,6 +1289,100 @@ module SuperSub
|
|
|
1289
1289
|
'~' => '∽'
|
|
1290
1290
|
}.freeze
|
|
1291
1291
|
|
|
1292
|
+
REVERSED = {
|
|
1293
|
+
'a' => 'A',
|
|
1294
|
+
'b' => 'd',
|
|
1295
|
+
'c' => 'ↄ',
|
|
1296
|
+
'd' => 'b',
|
|
1297
|
+
'e' => 'ɘ',
|
|
1298
|
+
'f' => 'ꟻ',
|
|
1299
|
+
'g' => 'g',
|
|
1300
|
+
'h' => 'H',
|
|
1301
|
+
'i' => 'i',
|
|
1302
|
+
'j' => 'j',
|
|
1303
|
+
'k' => 'k',
|
|
1304
|
+
'l' => 'l',
|
|
1305
|
+
'm' => 'm',
|
|
1306
|
+
'n' => 'ᴎ',
|
|
1307
|
+
'o' => 'o',
|
|
1308
|
+
'p' => 'q',
|
|
1309
|
+
'q' => 'p',
|
|
1310
|
+
'r' => 'ᴙ',
|
|
1311
|
+
's' => 'ꙅ',
|
|
1312
|
+
't' => 'T',
|
|
1313
|
+
'u' => 'U',
|
|
1314
|
+
'v' => 'v',
|
|
1315
|
+
'w' => 'w',
|
|
1316
|
+
'x' => 'x',
|
|
1317
|
+
'y' => 'Y',
|
|
1318
|
+
'z' => 'z',
|
|
1319
|
+
'A' => 'A',
|
|
1320
|
+
'B' => 'd',
|
|
1321
|
+
'C' => 'Ↄ',
|
|
1322
|
+
'D' => 'b',
|
|
1323
|
+
'E' => 'Ǝ',
|
|
1324
|
+
'F' => 'ꟻ',
|
|
1325
|
+
'G' => 'G',
|
|
1326
|
+
'H' => 'H',
|
|
1327
|
+
'I' => 'I',
|
|
1328
|
+
'J' => 'J',
|
|
1329
|
+
'K' => 'K',
|
|
1330
|
+
'L' => '⅃',
|
|
1331
|
+
'M' => 'M',
|
|
1332
|
+
'N' => 'ᴎ',
|
|
1333
|
+
'O' => 'O',
|
|
1334
|
+
'P' => 'ꟼ',
|
|
1335
|
+
'Q' => 'p',
|
|
1336
|
+
'R' => 'ᴙ',
|
|
1337
|
+
'S' => 'Ꙅ',
|
|
1338
|
+
'T' => 'T',
|
|
1339
|
+
'U' => 'U',
|
|
1340
|
+
'V' => 'V',
|
|
1341
|
+
'W' => 'W',
|
|
1342
|
+
'X' => 'X',
|
|
1343
|
+
'Y' => 'Y',
|
|
1344
|
+
'Z' => 'Z',
|
|
1345
|
+
'0' => '0',
|
|
1346
|
+
'1' => '߁',
|
|
1347
|
+
'2' => '2',
|
|
1348
|
+
'3' => '3',
|
|
1349
|
+
'4' => '4',
|
|
1350
|
+
'5' => '5',
|
|
1351
|
+
'6' => '6',
|
|
1352
|
+
'7' => '7',
|
|
1353
|
+
'8' => '8',
|
|
1354
|
+
'9' => '9',
|
|
1355
|
+
'.' => '.',
|
|
1356
|
+
',' => ',',
|
|
1357
|
+
'?' => '⸮',
|
|
1358
|
+
'!' => '!',
|
|
1359
|
+
'@' => '@',
|
|
1360
|
+
'#' => '#',
|
|
1361
|
+
'$' => '$',
|
|
1362
|
+
'%' => '%',
|
|
1363
|
+
'^' => '^',
|
|
1364
|
+
'&' => '&',
|
|
1365
|
+
'*' => '*',
|
|
1366
|
+
'(' => ')',
|
|
1367
|
+
')' => '(',
|
|
1368
|
+
'[' => ']',
|
|
1369
|
+
']' => '[',
|
|
1370
|
+
'{' => '}',
|
|
1371
|
+
'}' => '{',
|
|
1372
|
+
'<' => '>',
|
|
1373
|
+
'>' => '<',
|
|
1374
|
+
'/' => '\\',
|
|
1375
|
+
'\\' => '/',
|
|
1376
|
+
"'" => "'",
|
|
1377
|
+
'"' => '"',
|
|
1378
|
+
'-' => '-',
|
|
1379
|
+
'_' => '_',
|
|
1380
|
+
'=' => '=',
|
|
1381
|
+
'+' => '+',
|
|
1382
|
+
'`' => '`',
|
|
1383
|
+
'~' => '∽'
|
|
1384
|
+
}.freeze
|
|
1385
|
+
|
|
1292
1386
|
FAUX_CYRILLIC = {
|
|
1293
1387
|
'a' => 'а',
|
|
1294
1388
|
'b' => 'ъ',
|
|
@@ -1356,6 +1450,8 @@ module SuperSub
|
|
|
1356
1450
|
convert_text(str, SCRIPT_BOLD)
|
|
1357
1451
|
when :fullwidth, :full_width
|
|
1358
1452
|
convert_text(str, FULLWIDTH)
|
|
1453
|
+
when :monospace, :typewriter
|
|
1454
|
+
convert_text(str, MONOSPACE)
|
|
1359
1455
|
when :gothic, :fraktur
|
|
1360
1456
|
convert_text(str, GOTHIC)
|
|
1361
1457
|
when :gothic_bold, :bold_gothic, :fraktur_bold
|
|
@@ -1385,14 +1481,18 @@ module SuperSub
|
|
|
1385
1481
|
when :inverted, :invert, :upside_down
|
|
1386
1482
|
# This one reverses the return to make it really "backwards"
|
|
1387
1483
|
convert_text(str, INVERTED).reverse
|
|
1484
|
+
when :reverse, :reversed, :backwards
|
|
1485
|
+
convert_text(str, REVERSED).reverse
|
|
1388
1486
|
when :cyrillic, :russian
|
|
1389
1487
|
convert_text(str, FAUX_CYRILLIC)
|
|
1390
1488
|
end
|
|
1391
1489
|
end
|
|
1392
1490
|
|
|
1393
|
-
private
|
|
1394
|
-
|
|
1395
1491
|
def self.convert_text(str, dictionary)
|
|
1396
|
-
str.gsub(/[\w\W]/) { |character| dictionary[character]
|
|
1492
|
+
str.gsub(/[\w\W]/) { |character| dictionary[character] || character }
|
|
1493
|
+
end
|
|
1494
|
+
|
|
1495
|
+
def self.test_string
|
|
1496
|
+
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,?!@#$%^&*()[]{}<>/\\\'"-_=+`~'
|
|
1397
1497
|
end
|
|
1398
1498
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: supersub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nate Rudnick-Aldridge
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: nate.rudnickaldridge@gmail.com
|
|
@@ -17,8 +17,9 @@ extensions: []
|
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
19
|
- lib/supersub.rb
|
|
20
|
-
homepage:
|
|
21
|
-
licenses:
|
|
20
|
+
homepage: https://rubygems.org/gems/supersub
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
22
23
|
metadata: {}
|
|
23
24
|
post_install_message:
|
|
24
25
|
rdoc_options: []
|