-
Notifications
You must be signed in to change notification settings - Fork 0
/
macro.script
1170 lines (963 loc) · 25.8 KB
/
macro.script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
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
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
ºµre5»
º·:macro è=µ[·m0··:note #µn··0·FwLLLµn·l·Fmlµn·l·FWllµn·l·fm·0·'0·µ]¦·»
##===[[ INTRO ]]==============================================================##
º:!cp -f /root/z_gehye/big_greek.txt /root/z_gehye/vi_clip.txt¦»
º:note zz)keyboard macro tourusing gyges-hecatoncheires¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 52=as a c programmer and roboticist, automation is essential Õ55¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 73=standard macros and scripts are available in all my programs ×55¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 84=this quick demo focuses on standard keyboard macros ×55¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 86=i will use a recent, real example of text manipulation ×55¦»
º0_··"+f···:a10¦··zt··:a28¦»
º:note 77=my opengl font is sourced from a file of ascii-art glyphs ×55¦»
Ï···º:note g5;µA alpha¦·····:note 77¦»
Ï·l·º:note g5;µB beta¦······:note 77¦»
Ï·l·º:note g5;µG gamma¦·····:note 77¦»
Ï·l·º:note g5;µD delta¦·····:note 77¦»
º:note 58=we'll replicate my keyboard macros to flip a glyph Ô55¦»
Ïlº:note g5;µE epsilon¦···:note 58¦»
Ïlº:note g5;µZ zeta¦······:note 58¦»
Ïlº:note g5;µE eta¦·······:note 58¦»
Ïlº:note g5;µY theta¦·····:note 58¦»
º:note 37=underneath us are the actual greek letter glyphs Ö55¦»
Ïlº:note g5;µI iota¦······:note 37¦»
Ïlº:note g5;µK kappa¦·····:note 37¦»
Ïlº:note g5;µL lambda¦····:note 37¦»
Ïlº:note g5;µM mu¦········:note 37¦»
º:note W3=TOPIC 1, quick keyboard macro intro (95% like vi/vim)¦»
Ïlº:note g5;µN nu¦········:note W3¦»
Ïlº:note g5;µX xi¦········:note W3¦»
Ïlº:note g5;µO omicron¦···:note W3¦»
Ïlº:note g5;µP pi¦········:note W3¦»
º:note Wh=TOPIC 2, qlyph flipping and grid clean-up (new stuff)¦»
Ïlº:note g5;µR rho¦·······:note Wh¦»
Ïlº:note g5;µS sigma¦·····:note Wh¦»
Ïlº:note g5;µT tau¦·······:note Wh¦»
Ïlº:note g5;µU upsilon¦···:note Wh¦»
º:note Wb=TOPIC 3, extra on maintaining macros and building scripts¦»
Ïlº:note g5;µF phi¦·······:note Wb¦»
Ïlº:note g5;µX chi¦·······:note Wb¦»
Ïlº:note g5;µQ psi¦·······:note Wb¦»
Ïlº:note g5;µW omega¦·····:note Wb¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
##===[[ BASIC KEYBOARD MACROS ]]==============================================##
º:note #¦»
º·_0··v·$~·x·»
º·0·26(fn·l)·0»
## :unskip¦
º:a4¦»
º:note 11)basic keyboard macros standard in my programs¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:a4¦····skeyboard macros have one of 60¦···f<·ls<¦·y·lp·lp»
ºj·3h····sstandard, one-letter names¦·······f<·ls<¦·y·lp·lp»
ºj·3h····sa-z, 0-9, and è-ÿ¦················f<·ls<¦·y·lp·lp»
ºj·3h··»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:i3¦····sstart and stop recording with q¦······f<·ls<¦·y·lp·lp»
ºj·3h····sex. type "qa·2l·4j·2h·2k·q"¦··········f<·ls<¦·y·lp·lp»
ºj·3h»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:i6¦····s¶qa¶ means capture keys into¦·········f<·ls<¦·y·lp·lp»
ºj·3h····sthe keyboard macro named 'a'¦·········f<·ls<¦·y·lp·lp»
ºj·3h»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:i9¦····sremember, they are also being¦········f<·ls<¦·y·lp·lp»
ºj·3h····sexecuted at the same time¦············f<·ls<¦·y·lp·lp»
ºj·3h»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:i12¦···styped keys are shown in lower¦········f<·ls<¦·y·lp·lp»
ºj·3h····sright (keys) as entered¦··············f<·ls<¦·y·lp·lp»
ºj·3h»
º:note 79;watch keys ‡xZ¦»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:i15¦···sthe second ¶q¶ means save, or¦········f<·ls<¦·y·lp·lp»
ºj·3h····suse ¶Q¶ so throw away¦················f<·ls<¦·y·lp·lp»
ºj·3h»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:i18¦···snow, set up the expected path¦········f<·ls<¦·y·lp·lp»
ºj·3h····sfor our simple macro¦·················f<·ls<¦·y·lp·lp»
ºj·3h»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:e10¦···sbeg¦·f>·lsµ_Eµ_H¥vy·ppppppppppaµ_3¦·ls<¦·»
º:g11¦···s µ_V¦·»
º:e12¦···send¦·f|·2l·s µ_V¦·»
º:e13¦···s µ_U¦·2l·s µ_V¦·»
º:e14¦···s µ_7µ_H¥vy·pppppppppppppppaµ_9¦·ls<¦·ls<¦·»
º:e10¦··ma·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·ma·'l·»
º:i21¦···shear is what the example says¦········f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·ma·'l·»
º········s µ' ¶qa¶ to start¦···················f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·ma·'l·»
º········s µ' ¶2l¶ to move two right¦··········f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
·2l
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·ma·'l·»
º········s µ' ¶4j¶ means down four¦············f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
·4j
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·ma·'l·»
º········s µ' ¶2h¶ is left two¦················f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
·2h
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·ma·'l·»
º········s µ' ¶2k¶ means up two¦···············f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
·2k
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·ma·'l·»
º········s µ' and ¶q¶ means save¦··············f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·ma·'l·»
º·j······snow we will enter the actual¦·········f<·ls<¦·y·lp·lp»
ºj·3h····smacro by using those keys¦············f<·ls<¦·y·lp·lp»
º·3h·j·ml»
º:e10¦··ma·»
ºµre5»
qa·2l·4j·2h·2k·q
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j······smacros can be seen using vars¦········f<·ls<¦·y·lp·lp»
ºj·3h····s@a refers to saved macro 'a'¦·········f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a»
ºµre5»
º:e7¦··sAS SAVED¦·f|··ls<¦·ls<¦·»
ºj·2h··#"@a="©@a¦·f|··ls<¦·ls<¦·»
º·'l···#" µ' formula "©f(e8)¦····················f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·:a10¦··sexecute macros with an @ sign¦········f<·ls<¦·y·lp·lp·»
º·j·3h···sso, move to beg and type "@a"¦········f<·ls<¦·y·lp·lp·»
º·3h·j·ml·'a»
ºµre5»
º·'a··»·Ï·@a
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·sthe speed you saw is my 5/demo¦·······f<·ls<¦·y·lp·lp»
º·j·3h···sspeed, i.e, 10 keys per second¦·······f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
Ï·@a
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·sexecution speed is throttled¦·········f<·ls<¦·y·lp·lp»
º·j·3h···sby "µµreµ'" (scRipt Execution)¦·······f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·2j·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·swe will select ¶blitz¶ speed¦·········f<·ls<¦·y·lp·lp»
º·j·3h···swith ¶µµre0¶ and execute again¦·······f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
µ´´r´´e´´5·Ï·
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»·@a·ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·s¶blitz¶ speed is asap, but, on¦·······f<·ls<¦·y·lp·lp»
º·j·3h···smy gear, 1-10 usec/key¦···············f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·2j·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·shave 10 speeds from 0/blitz¦··········f<·ls<¦·y·lp·lp»
º·j·3h···sto 9/three seconds per key¦···········f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·2j·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·srepeating is easy, just preface¦······f<·ls<¦·y·lp·lp»
º·j·3h···swith a number, ex ¶6@a¶¦··············f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·2j·»
º:e10¦· ·sbeg¦·f>·lsµ_Eµ_H¥vy·ppppppppppaµ_3¦·f<·ls<¦·»
º:g11¦· ·s µ_V¦·f<·························f<·»
º:e12¦· ·s 1st µ_H¥vy·pppppppppppppaµ_6¦·····f<·ls<¦·ls<¦·»
º:e13¦· ·s µ_U¦·f<·lX··l·s µ_V¦··········f<·»
º:e14¦· ·s 2nd µ_H¥vy·pppppppppppppaµ_6¦·····f<·ls<¦·ls<¦·»
º:e15¦· ·s µ_U¦·f<·lX··l·s µ_V¦··········f<·»
º:e16¦· ·s 3rd µ_H¥vy·pppppppppppppaµ_6¦·····f<·ls<¦·ls<¦·»
º:e17¦· ·s µ_U¦·f<·lX··l·s µ_V¦··········f<·»
º:e18¦· ·s 4th µ_H¥vy·pppppppppppppaµ_6¦·····f<·ls<¦·ls<¦·lX»
º:e19¦· ·s µ_U¦·f<·lX··l·s µ_V¦··········f<·»
º:e20¦· ·s 5th µ_H¥vy·pppppppppppppaµ_6¦·····f<·ls<¦·ls<¦·»
º:e21¦· ·s µ_U¦·f<·lX··l·s µ_V¦··········f<·»
º:e22¦· ·s 6th µ_H¥vy·pppppppppppppaµ_6¦·····f<·ls<¦·ls<¦·»
º:e23¦· ·s µ_U¦·f<·lX··l·s µ_V¦··········f<·»
º:e24¦· ·s µ_7µ_H¥vy·pppppppppppppppaµ_9¦···f<·ls<¦·ls<¦·»
º·'a»
ºµre5»
µ´´r´´e´´5·Ï·6@a
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·snow, show blitz speed on the¦·········f<·ls<¦·y·lp·lp»
º·j·3h···ssame size repeats ;) wow¦············f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
µ´´r´´e´´5·Ï·
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»·6@a·ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·sgo a couple more times¦···············f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
ºµre0»·6@a·ºµre5» Ï·'a·Ï
ºµre0»·6@a·ºµre5» Ï·'a·Ï
ºµre0»·6@a·ºµre5» Ï·'a·Ï
ºµre0»·6@a·ºµre5» ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º·'l·»
º·j···· ·sautomation is worth it ;)¦············f<·ls<¦·y·lp·lp»
º·3h·j·ml·'a·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:e31¦····sEVERYTHING is keyboard¦··················f|·ls<¦·y·lp·lp»
º·j·3h····scentric, so keyboard macros¦·············f|·ls<¦·y·lp·lp»
º·j·3h····scan do ANYTHING¦·························f|·ls<¦·y·lp·lp»
º·j·3h»
º:e30¦·v·3l·4j·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
¥
##===[[ GREEK ASCII ART ]]====================================================##
º·_0··v·ge·gb·x·»
º·@è·»
º·:note pz)opengl font ascii-art overview¦·»
º·:a2¦·»
º·:!cp -f /root/z_gehye/gamma.txt /root/z_gehye/vi_clip.txt¦·»
º·"+F·»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 82=i always use custom texture-mapped fonts in opengl ×6o¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:a1¦··s center line¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º······¦A normal side margin¦··ls<¦··ls<¦··h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 83=they're fast and don't require outside runtime libraries ×6o¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º···2j·sinformational header¦·····ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º···3j·snomal upper margin¦·······ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 84=also, i don't like specialty editors like font programs ×6c¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º···3j·sascent space¦·············ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º···3j·scap height¦···············ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 85=so, i source the font from ascii-art, like to the left ;) ×6c¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º··10j·smedian line¦··············ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º···8j·smiddle guide¦·············ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 8G=my macro examples will use the greek letter delta (ë) ×6J¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º··17j·sbaseline¦·················ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º···8j·sdescent space¦············ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 87=its simple and easy to tell when flipped ×6J¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º···5j·snomal lower margin¦·······ls<¦·h»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º:note 8U=we'll use the center part (cap height to baseline)¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º·_·:a2¦···dy·dy·dy·dy·dy·dy·dy·dy·dy·dy·»
º···:a39¦··dy·dy·dy·dy·dy·dy·dy·dy·dy·dy·dy·dy·dy·dy·»
º···:a1¦···v·l·x····»
º···:b1¦···v·l·40j·x·»
º·0_»
º·®a2..a38±··"-F·»
º:!cp -f /root/z_gehye/vi_clip.txt /root/z_gehye/gamma2.txt¦»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
##===[[ PLAN OF ATTACK ]]=====================================================##
º·:note #¦·»
º:note pz)plan of attack¦»
ºµre0»
º:c4¦···sin this example, we'll horizontally¦···f<··»
ºj······sflip an ascii source glyph (delta)¦····f<··»
ºj······sfrom my opengl shrike font¦············f<··»
ºj······»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c8¦···sthis is a good way to show macros¦·····f<··»
ºj······smanipulating strings in complex¦·······f<··»
ºj······sand useful ways¦·······················f<··»
ºj······»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c12¦··swe will develop this in three blocks¦··f<··»
ºj······sand require only about 10 lines of¦····f<··»
ºj······smacros...¦·····························f<··»
ºj······»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c16¦··sa) remove the visual grid lines¦·······f<··»
ºj······»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c18¦··sb) flip the glyph space only¦··········f<··»
ºj······»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c20¦··sc) put an improved grid back on¦·······f<··»
ºj······»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c22¦··sfirst will be the flipping (b) as¦·····f<··»
ºj······sits more traditional and easier to¦····f<··»
ºj······sfollow...¦·····························f<··»
ºj······»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c26¦··sthis part is 99% the same as when¦·····f<··»
ºj······si did it using vi/vim¦·················f<··»
ºj······»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
##===[[ HORIZONTAL FLIPPING ]]================================================##
º·®b1..d38±·x·»
º·:note #¦·»
º:note pz)start with horizontal flipping¦»
ºµre0»
º:c12¦·ml»
º'lj·ml·squick design decision -- break the¦··········f<··»
º'lj·ml·seffort into three pieces¦····················f<··»
º'lj·ml·»
ºµre5»
º·:b5¦···sµdµsµsµs¦··l·sµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµs¦··l·sµsµsµb¦··»
··:b6¦···sÖc¦·f|·º·ls(preparation)¦·························mc··l·#ifs (c ©= @c, "y", "-")¦··f|··»
··:b8¦···sÖd¦·f|·º·ls(flip two characters)¦·················md··l·#ifs (d ©= @d, "y", "-")¦··f|··»
··:b10¦··sÖe¦·f|·º·ls(looping for all chars/lines)¦·········me··l·#ifs (e ©= @e, "y", "-")¦··f|··»
º·:b11¦··sµdµsµsµs¦··l·sµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµs¦··l·sµsµsµb¦··»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c33¦···ssome helpful special symbols¦·»
º··j·····sµn········enter key¦··········»
º··j·····sµe········escape key¦·········»
º··j·····sµs········visual space¦·······»
º··j·····s(µsµsµs)··grouping/repeat¦····»
º··j·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c12¦·ml»
º'lj·ml·smark the top of the glyph ¶mt"¦··············f<··»
º'lj·ml·»
ºµre5»
:a2¦·mt
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º·®b12..d32±·x·»
ºµre0»
º:c12¦·ml»
º'lj·ml·spreparation key is to set the¦··············f<··»
º'lj·ml·sbeg 'b' and end 'e' markers properly¦·······f<··»
ºµre5»
:a2¦·mt
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·smacro 'c', ¶(prepartion)¶¦···················f<··»
º'lj·ml·s ´ enter source edit mode ¶µn¶¦···········f<··»
ºµre5»
'c··sµn¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ set begin (b) mark ¶mb¶¦···········f<··»
º_0·#"µ*µj beg"¦·»
ºµre5»
'c··¦Aµsµs0µslµsmb¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ set end (e) mark ¶me¶¦···········f<··»
º_0·#"µ*µj beg end µjµ*µ*µ*µ*µ*µ*"¦·»
ºµre5»
'c··¦Aµsµs$µsHµshµsme¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ get out of source mode ¶µe¶¦···········f<··»
ºµre5»
'c··¦Aµsµsµe¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·»
º'lj·ml·suse ¶:macro cyµn¶ to save/yank the¦··········f<··»
º'lj·ml·scurrent cell to macro 'c'¦···················f<··»
ºµre5»
'c··:macro cy¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·»
º'lj·ml·sthis needs to be repeated once for¦··········f<··»
º'lj·ml·seach gylph line processed¦···················f<··»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º·®b12..d32±·x·»
ºµre0»
º:c12¦·ml»
º'lj·ml·sflipping key is to move the markers¦·········f<··»
º'lj·ml·sinward after each flip¦······················f<··»
º'lj·ml·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·smacro 'd', ¶(flip two characters)¶¦··········f<··»
º'lj·ml·s ´ enter source edit mode ¶µn¶¦···········f<··»
ºµre5»
'd··sµn¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ delete at end mark ¶'edl¶¦·········f<··»
ºµre5»
'd··¦Aµsµs'edl¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ paste before beg mark ¶'bP¶¦··········f<··»
ºµre5»
'd··¦Aµs'bP¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ move beg mark inward ¶mb¶¦···········f<··»
ºµre5»
'd··¦Aµsmb¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ delete at beg mark ¶dl¶¦···········f<··»
ºµre5»
'd··¦Aµsµsdl¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ paste before end mark ¶'eP¶¦··········f<··»
ºµre5»
'd··¦Aµs'eP¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ move end mark inward ¶hhme¶¦·········f<··»
ºµre5»
'd··¦Aµshhµsme¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ save changes ¶µn¶¦···········f<··»
ºµre5»
'd··¦Aµsµsµn¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·»
º'lj·ml·suse ¶:macro dyµn¶ to save/yank the¦··········f<··»
º'lj·ml·scurrent cell to macro 'd'¦···················f<··»
ºµre5»
'd··:macro dy¦
ÏÏ·ÏÏ·ÏÏ·ÏÏ
º·®b12..d38±·x·»
ºµre0»
º:c12¦·ml»
º'lj·ml·slets flip some characters by running¦········f<··»
º'lj·ml·s@c once, and @d over-and-over again¦·········f<··»
º'lj·ml·»
º'lj·ml·sµ_4abcdefghijklmnopqrstuvwxyz0µsµsµsµsµ_6¦···f<··hsex.¦·f>·l»
ºµre5»
ºµre3»
º'l·»@c
º'lj·ml··h+1¦······l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
º'lj·ml··h=`k¦+1¦··l·ky·jp·»@d
ºµre5»
ºµre0»
º:c30¦·ml»
º'lj·ml·sworks !!! need to repeat @d 13 times¦········f<··»
º'lj·ml·sso, quickly create the looping macro¦········f<··»
º'lj·ml·sthen watch the ¶after" line closely ;)¦······f<··»
º'lj·ml·»
ºµre5»
'e··s@cµs13@d¦
'e··:macro ey¦
ºµre0»
º:c16¦·y·:c35¦·p·hsbefore¦·f>·l»
º:c36¦·p·hsafter¦··f>·l»
ºµre5»
ºµre3»
@e
ºµre5»
ºµre0»
º:c37¦·s DO IT AGAIN !!!¦·»
ºµre5»
ºµre3»
º:c16¦·y·:c36¦·p·»
@e
ºµre5»
º·®b12..d38±·x·»
ºµre0»
º:c12¦·ml»
º'lj·ml·supdate the looping, save it, and use it at¦··f<··»
º'lj·ml·s¶blitz¶ full-speed on the glyph itself¦······f<··»
º'lj·ml·s100,000 to 1,000,000 keys per second¦········f<··»
º'lj·ml·»
ºµre5»
'e··¦·I'tµs37(¥·Aµsj)·_'t¦
:macro ey¦
ºµre0» 't·@e ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c16¦·ml»
º'lj·ml·sslow it down a little to flip the glyph¦·····f<··»
º'lj·ml·sback (µµre1) which is called ¶fast¶¦·········f<··»
º'lj·ml·s10,000 keys per second¦······················f<··»
º'lj·ml·»
ºµre5»
ºµre1» 't·@e ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c20¦·ml»
º'lj·ml·sonce again even even a little slower¦········f<··»
º'lj·ml·s(µµe2) which is called ¶thousand¶¦···········f<··»
º'lj·ml·s1,000 keys per second¦·······················f<··»
ºµre5»
ºµre2» 't·@e ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c24¦·ml»
º'lj·ml·sput to original at blitz¦····················f<··»
º't·@e»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ºµre0»
º:c28¦·ml»
º'lj·ml·sit works, but the guidelines are trouble¦····f<··»
º'lj·ml·sand misplaced. i will show you how to¦······f<··»
º'lj·ml·sfix them, but moving faster¦·················f<··»
º'lj·ml·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ·ÏÏ
##===[[ REMOVE GRIDS ]]=======================================================##
## :unskip¦
º·®b12..d38±·x·»
º·@è·»
##---(messy glyph)-------------*/
º·:note 35+here is the same glyph after text editing, which always disrupts the ornamental guidelines¦»
º·:a2¦··»
º·:!cp -f /root/z_gehye/gamma_ugly.txt /root/z_gehye/vi_clip.txt¦·»
º·:a2¦·"+F·:a2¦·mt·»
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
º·:note 35#¦·»
##---(placeholders)------------*/
ºµre0»
º:c12¦·ml»
º'lj·ml·slet's break the effort into two macros¦··f<··»
º'lj·ml·sto make then simplier and clearer.¦······f<··»
º'lj·ml·swe'll just name them 'a' and 'b'¦········f<··»
º'lj·ml·»
ºµre5»
º·:b1¦··sµdµsµsµs¦··l·sµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµs¦··l·sµsµsµb¦··»
··:b2¦··sÖa¦·f|·º·ls(one time preparation)¦··ma···l·#ifs (a ©= @a, "y", "-")¦··f|··»
··:b4¦··sÖb¦·f|·º·ls(clear all grid lines)¦··mb···l·#ifs (b ©= @b, "y", "-")¦··f|··»
ÏÏ·ÏÏ·ÏÏ
##---(placeholders)------------*/
ºµre0»
º'lj·ml·s'a' prepartion work...¦······················f<··»
º'lj·ml·s ´ mark the top of the glyph ¶mt¶¦···········f<··»
ºµre5»
'a··smt¦
ÏÏ·ÏÏ·ÏÏ
##---(prep macro)--------------*/
ºµre0»
º'lj·ml·s ´ enter source edit mode ¶µn¶¦··············f<··»
ºµre5»
'a··¦Aµsµsµn¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ set left change boundary ¶m<¶¦···········f<··»
º_0·#"µ*µj from here µsµsµs"¦·»
ºµre5»
'a··¦Aµsµs0µslµsm<¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ set right change boundary ¶m>¶¦···········f<··»
º_0·#"µ*µj from here µsµsµsµsµsµsµsµsµsµs to here µjµ*"¦·»
ºµre5»
'a··¦Aµsµs$µshµsm>¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ define subset to act on ¶µ_hµ_Hµ_VµJµ_0µ_5µs_s¶¦··f<··»
ºµre5»
'a··¦Aµsµsµ_hµ_Hµ_VµµJµ_0µ_5µµsµ_s¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ get out of source mode ¶µe¶¦·········f<··»
ºµre5»
'a··¦Aµsµsµe¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ use ¶:macro ayµn¶ to save to macro 'a'¦·f<··»
ºµre5»
'a··:macro ay¦
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
##---(clear macro)-------------*/
ºµre0»
º'lj·ml·»
º'lj·ml·s'b' clear the grid lines...¦····················f<··»
º'lj·ml·s ´ enter source edit mode ¶µn¶¦··············f<··»
ºµre5»
'b··sµn¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ clear all matching chars ¶µ_ax¶¦············f<··»
ºµre5»
'b··¦Aµsµ_ax¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ save the changes ¶µn¶¦·········f<··»
ºµre5»
'b··¦Aµsµn¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ go down one line ¶j¶¦·········f<··»
ºµre5»
'b··¦Aµsj¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ do that all 37 times ¶37(...)¶¦······f<··»
ºµre5»
'b··¦I@aµs37(¥·A)¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ return to the top ¶_'t¶¦··········f<··»
ºµre5»
'b··¦Aµs_'t¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s ´ use ¶:macro byµn¶ to save to macro 'b'¦·f<··»
ºµre5»
'b··:macro by¦
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
##---(run)---------------------*/
ºµre0»
º'l·2j·ml·sin demo/slow speed, execute @a¦·················f<··»
ºµre5»
º:a2¦»
ºµre4»@a
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·sthen execute @b, also in slow mode¦·············f<··»
ºµre5»
º:a2¦»
ºµre4»@b
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·sreimport the messy version¦·····················f<··»
º·:!cp -f /root/z_gehye/gamma_ugly.txt /root/z_gehye/vi_clip.txt¦·»
º·:a2¦·"+F·:a2¦·mt·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·s... and do again a full speed (jesus)¦··········f<··»
º·:a2¦·@a·@b·»
ºµre5»
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
##===[[ ADD BETTER GRID ]]====================================================##
º·®b12..d38±·x·»
ºµre0»
º:c22¦··ml·»
º'lj·ml·snow, we put in improved grid lines¦···f<··»
º'lj·ml·»
ºµre5»
··:b12¦·sÖf¦·f|·º·ls(preparation)¦·························mf···l·#ifs (f ©= @f, "y", "-")¦··f|·»
··:b14¦·sÖg¦·f|·º·ls(normal horizontal)¦···················mg···l·#ifs (g ©= @g, "y", "-")¦··f|·»
··:b16¦·sÖh¦·f|·º·ls(full horizontal)¦·····················mh···l·#ifs (h ©= @h, "y", "-")¦··f|·»
··:b18¦·sÖi¦·f|·º·ls(vertical grids)¦······················mi···l·#ifs (i ©= @i, "y", "-")¦··f|·»
··:b20¦·sÖj¦·f|·º·ls(prissy little center point)¦··········mj···l·#ifs (j ©= @j, "y", "-")¦··f|·»
º·:b21¦·sµdµsµsµs¦··l·sµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµs¦··l·sµsµsµb¦··»
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·sprep is same as 'a' but need a¦··············f<··»
º'lj·ml·sdifferenct character subset¦·················f<··»
º'lj·ml·»
ºµre5»
'f··s@aµsµnµsµ_hµµwµµsµµJµ_sµsµe¦
:macro fy¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·screate a full line replacement¦··············f<··»
º'lj·ml·swith a light grid¦···························f<··»
º'lj·ml·»
ºµre5»
'g··sµnµsµ_arµµsµsµn¦
:macro gy¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·sreplace each horizontal gridline¦············f<··»
º'lj·ml·swith a special one for midline last¦·········f<··»
º'lj·ml·»
ºµre5»
'h··s'tµs@fµs@gµs2µs%@gµs12%µs@gµs37%µs@gµsµs20%µsµnµsµ_arµ_Hµsµnµs_'t¦
:macro hy¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·sreplace the vertical grids with¦·············f<··»
º'lj·ml·stwo different types of lines¦················f<··»
º'lj·ml·»
ºµre5»
'i··s'tµs@fµs37(µnµs15|µsµ_mrµ_Vµs28|µsµ_mrµµsµsµnµsj)µs_'t¦
:macro iy¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·shandle a prissy little center-point¦·········f<··»
º'lj·ml·sformat when not covered by glyph¦············f<··»
ºµre5»
'j··s'tµs20%µsµnµsµs15|µsµ_mRµ_Hµ_5µsµnµs't¦
:macro jy¦
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
ÏÏ·ÏÏ·ÏÏ
##===[[ MASTER MACRO ]]=======================================================##
º·®b22..d38±·x·»
ºµre0»
º:c24¦··ml·»
º'lj·ml·sfinally, one macro to rule them all :)¦·····f<··»
º'lj·ml·»
ºµre5»
··:b22¦·sÖz¦·f|·º·ls(main macro)¦··························mz···l·#ifs (z ©= @z, "y", "-")¦··f|·»
º·:b23¦·sµdµsµsµs¦··l·sµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµsµs¦··l·sµsµsµb¦··»
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·scall line removal (@b)¦·········f<··»
º'lj·ml·»
ºµre5»
'z··s:a2µn·@b¦
ÏÏ·ÏÏ·ÏÏ
ºµre0»
º'lj·ml·scall glyph horizontal flipping (@e)¦·········f<··»
º'lj·ml·»
ºµre5»