-
Notifications
You must be signed in to change notification settings - Fork 3
/
UyghurcheKodAlmashturush.h
4586 lines (4459 loc) · 144 KB
/
UyghurcheKodAlmashturush.h
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
#ifndef CUYGHURCHEKODALMASHTURUSH_H
#define CUYGHURCHEKODALMASHTURUSH_H 1
#include "ortaq.h"
extern struct QelipUnicode g_Unicode[34];
extern wchar_t* gUGetVal(wchar_t *Key);
extern int gUGetUnicodeIndex(wchar_t Herp);
extern BOOL gUIsUyghur(wchar_t Herip);
extern BOOL gUIsSozuqTawushUNICODE(wchar_t Herip);
extern BOOL gUIsSozuqTawushUKY(wchar_t Herip);
extern int gUGetUKYIndex(wchar_t ukyHerip);
extern wchar_t gUGetBoghFangWei(wchar_t Herp);
extern wchar_t * gUUlash(wchar_t *Soz);
extern void gDoEvents(void);
extern wchar_t *gUGetUnicodeBuf(UINT codePage,char *Buf);
extern void gUInitUnicodeCode(void);
extern wchar_t gUGetHerpFromNotepad(wchar_t Herp);
extern wchar_t gUGetHerpFromIlikyurt(wchar_t Herp);
extern wchar_t gUGetUyghurSoftChar(wchar_t Herp);
extern wchar_t gUGetElpidaChar(wchar_t Herp);
extern wchar_t gUGetCharFromGlobalWriter(wchar_t Herp);
extern wchar_t gUGetDuldulChar(wchar_t Herp);
extern wchar_t *gGetFromClipboard(void);
extern BOOL gIsClipBoradEmpty(void);
extern void gSetToClipboard(wchar_t* selText);
extern void gUSort(wchar_t *Buffer,wchar_t del);
extern int gUSetWindowCenter(HWND hWnd,int width,int height);
extern int gUSetWindowCenter(HWND hWnd);
extern wchar_t gUGetSlawiyan(wchar_t);
extern wchar_t gUGetTurk(wchar_t);
extern wchar_t gUToUpperULY(wchar_t Herp);
extern wchar_t gUToUpperSlawiyan(wchar_t Herp);
extern BOOL gUIsULY(wchar_t Herp);
extern BOOL gIsConstanToken(wchar_t *stAdd,int len);
extern BOOL gIsStartedWithURL(wchar_t *buf);
#define NO_CHANGE_START '<'
#define NO_CHANGE_END '>'
class CUyghurcheKodAlmashturush
{
public:
CUyghurcheKodAlmashturush(void)
{
UInitUky();
}
~CUyghurcheKodAlmashturush(void)
{
}
struct QelipUKY m_Uky[34];
void UInitUky(void)
{
m_Uky[UYGIN_A ].Kichik = UYG_UKY_A_KICHIK;
m_Uky[UYGIN_A ].Chong = UYG_UKY_A_CHONG;
m_Uky[UYGIN_E ].Kichik = UYG_UKY_E_KICHIK;
m_Uky[UYGIN_E ].Chong = UYG_UKY_E_CHONG;
m_Uky[UYGIN_B ].Kichik = UYG_UKY_B_KICHIK;
m_Uky[UYGIN_B ].Chong = UYG_UKY_B_CHONG;
m_Uky[UYGIN_P ].Kichik = UYG_UKY_P_KICHIK;
m_Uky[UYGIN_P ].Chong = UYG_UKY_P_CHONG;
m_Uky[UYGIN_T ].Kichik = UYG_UKY_T_KICHIK;
m_Uky[UYGIN_T ].Chong = UYG_UKY_T_CHONG;
m_Uky[UYGIN_J ].Kichik = UYG_UKY_J_KICHIK;
m_Uky[UYGIN_J ].Chong = UYG_UKY_J_CHONG;
// m_Uky[UYGIN_CH].Kichik = UYG_UKY_CH_KICHIK;
// m_Uky[UYGIN_CH].Chong = UYG_UKY_CH_CHONG;
m_Uky[UYGIN_X ].Kichik = UYG_UKY_X_KICHIK;
m_Uky[UYGIN_X ].Chong = UYG_UKY_X_CHONG;
m_Uky[UYGIN_D ].Kichik = UYG_UKY_D_KICHIK;
m_Uky[UYGIN_D ].Chong = UYG_UKY_D_CHONG;
m_Uky[UYGIN_R ].Kichik = UYG_UKY_R_KICHIK;
m_Uky[UYGIN_R ].Chong = UYG_UKY_R_CHONG;
m_Uky[UYGIN_Z ].Kichik = UYG_UKY_Z_KICHIK;
m_Uky[UYGIN_Z ].Chong = UYG_UKY_Z_CHONG;
m_Uky[UYGIN_ZZ].Kichik = UYG_UKY_ZZ_KICHIK;
m_Uky[UYGIN_ZZ].Chong = UYG_UKY_ZZ_CHONG;
m_Uky[UYGIN_S ].Kichik = UYG_UKY_S_KICHIK;
m_Uky[UYGIN_S ].Chong = UYG_UKY_S_CHONG;
// m_Uky[UYGIN_SH].Kichik = UYG_UKY_SH_KICHIK;
// m_Uky[UYGIN_SH].Chong = UYG_UKY_SH_CHONG;
// m_Uky[UYGIN_GH].Kichik = UYG_UKY_GH_KICHIK;
// m_Uky[UYGIN_GH].Chong = UYG_UKY_GH_CHONG;
m_Uky[UYGIN_F ].Kichik = UYG_UKY_F_KICHIK;
m_Uky[UYGIN_F ].Chong = UYG_UKY_F_CHONG;
m_Uky[UYGIN_Q ].Kichik = UYG_UKY_Q_KICHIK;
m_Uky[UYGIN_Q ].Chong = UYG_UKY_Q_CHONG;
m_Uky[UYGIN_K ].Kichik = UYG_UKY_K_KICHIK;
m_Uky[UYGIN_K ].Chong = UYG_UKY_K_CHONG;
m_Uky[UYGIN_G ].Kichik = UYG_UKY_G_KICHIK;
m_Uky[UYGIN_G ].Chong = UYG_UKY_G_CHONG;
// m_Uky[UYGIN_NG].Kichik = UYG_UKY_NG_KICHIK;
// m_Uky[UYGIN_NG].Chong = UYG_UKY_NG_CHONG;
m_Uky[UYGIN_L ].Kichik = UYG_UKY_L_KICHIK;
m_Uky[UYGIN_L ].Chong = UYG_UKY_L_CHONG;
m_Uky[UYGIN_M ].Kichik = UYG_UKY_M_KICHIK;
m_Uky[UYGIN_M ].Chong = UYG_UKY_M_CHONG;
m_Uky[UYGIN_N ].Kichik = UYG_UKY_N_KICHIK;
m_Uky[UYGIN_N ].Chong = UYG_UKY_N_CHONG;
m_Uky[UYGIN_H ].Kichik = UYG_UKY_H_KICHIK;
m_Uky[UYGIN_H ].Chong = UYG_UKY_H_CHONG;
m_Uky[UYGIN_O ].Kichik = UYG_UKY_O_KICHIK;
m_Uky[UYGIN_O ].Chong = UYG_UKY_O_CHONG;
m_Uky[UYGIN_U ].Kichik = UYG_UKY_U_KICHIK;
m_Uky[UYGIN_U ].Chong = UYG_UKY_U_CHONG;
m_Uky[UYGIN_OO].Kichik = UYG_UKY_OO_KICHIK;
m_Uky[UYGIN_OO].Chong = UYG_UKY_OO_CHONG;
m_Uky[UYGIN_UU].Kichik = UYG_UKY_UU_KICHIK;
m_Uky[UYGIN_UU].Chong = UYG_UKY_UU_CHONG;
m_Uky[UYGIN_W ].Kichik = UYG_UKY_W_KICHIK;
m_Uky[UYGIN_W ].Chong = UYG_UKY_W_CHONG;
m_Uky[UYGIN_EE].Kichik = UYG_UKY_EE_KICHIK;
m_Uky[UYGIN_EE].Chong = UYG_UKY_EE_CHONG;
m_Uky[UYGIN_I ].Kichik = UYG_UKY_I_KICHIK;
m_Uky[UYGIN_I ].Chong = UYG_UKY_I_CHONG;
m_Uky[UYGIN_Y].Kichik = UYG_UKY_Y_KICHIK;
m_Uky[UYGIN_Y].Chong = UYG_UKY_Y_CHONG;
m_Uky[UYGIN_HM].Kichik = UYG_UKY_HM;
m_Uky[UYGIN_HM].Chong = UYG_UKY_HM;
}
void UyghurSoftToUnicode(wchar_t *uSoft)
{
if(uSoft==NULL) return;
UINT yPos=0,rPos=0;
wchar_t Herp;
while(uSoft[rPos]!=0x0)
{
Herp=uSoft[rPos++];
if(Herp==QURBELGISI_R)
{
if(uSoft[rPos]==QURBELGISI_L)
{
rPos++;
}
Herp=QURBELGISI_R;
}
else
{
Herp=gUGetUyghurSoftChar(Herp);
}
uSoft[yPos++]=Herp;
}
uSoft[yPos]=0x0;
}
void ElpidaToUnicode(wchar_t *uSoft)
{
if(uSoft==NULL) return;
UINT yPos=0,rPos=0;
wchar_t Herp;
while(uSoft[rPos]!=0x0)
{
Herp=uSoft[rPos++];
if(Herp==QURBELGISI_R)
{
if(uSoft[rPos]==QURBELGISI_L)
{
rPos++;
}
Herp=QURBELGISI_R;
}
else
{
Herp=gUGetElpidaChar(Herp);
}
uSoft[yPos++]=Herp;
}
uSoft[yPos]=0x0;
}
void DuldulToUnicode(wchar_t *duldul)
{
if(duldul==0x0) return;
UINT yPos=0,rPos=0;
wchar_t Herp;
while(duldul[rPos]!=0x0)
{
Herp=duldul[rPos++];
if(Herp==QURBELGISI_R)
{
if(duldul[rPos]==QURBELGISI_L)
{
rPos++;
}
Herp=QURBELGISI_R;
}
else
{
Herp=gUGetDuldulChar(Herp);
}
duldul[yPos++]=Herp;
}
duldul[yPos]=0x0;
}
void GlobalWriterToUnicode(wchar_t *gwr)
{
if(gwr==NULL) return;
UINT yPos=0,rPos=0;
wchar_t Herp;
while(gwr[rPos]!=0x0)
{
Herp=gwr[rPos++];
if(Herp==QURBELGISI_R)
{
if(gwr[rPos]==QURBELGISI_L)
{
rPos++;
}
Herp=QURBELGISI_R;
}
else
{
Herp=gUGetCharFromGlobalWriter(Herp);
}
gwr[yPos++]=Herp;
}
gwr[yPos]=0x0;
}
wchar_t *BashqaToUnicode(wchar_t *clipData)
{
if(clipData==NULL) return clipData;
long rPos=0,wPos=0;
wchar_t Herp;
wchar_t AldinqiHerp=0x0;
int Index;
wchar_t *tmp=new wchar_t[wcslen(clipData)*2+1];
while(clipData[rPos]!=0x0)
{
Herp=clipData[rPos++];
Index=gUGetUnicodeIndex(Herp);
if(Index!=-1)
{
if (Index==UYGIN_LA)
{
tmp[wPos++]=g_Unicode[UYGIN_L].Code[U_6];
Herp=g_Unicode[UYGIN_A].Code[U_6];
AldinqiHerp=g_Unicode[UYGIN_L].Code[U_6];
}
else
{
Herp=g_Unicode[Index].Code[U_6];
}
}
else
{
switch(Herp)
{
// 0x0647 bolsa Global Writerda Ishlitilgen H ning kodi
//www.uyghurweb.net tiki PDF hojjetlerni chaplisa neme seweptinki, "e" ning hemmisi "h" gha
// ozgirip qalidiken, tekshursem, e ning kodi, 0x0647 iken
case 0x0647:
Herp=g_Unicode[UYGIN_E].Code[U_6];
break;
case 0x06CC: // towendiki ikkisi Izdinishta ishlitilgen Ikki herpning kodi
Herp=g_Unicode[UYGIN_I].Code[U_6];
break;
case 0x0629: // towendiki ikkisi Izdinishta ishlitilgen Ikki herpning kodi
Herp=g_Unicode[UYGIN_E].Code[U_6];
break;
case 0x0635: //Bu www.uyghurmuqam.com ning bash betide uchiridi
Herp=g_Unicode[UYGIN_I].Code[U_6];
break;
case UYGE_UN_HA_Y:
case UYGE_UN_HA_A:
tmp[wPos++]=g_Unicode[UYGIN_HM].Code[U_6];
Herp=g_Unicode[UYGIN_A].Code[U_6];
break;
case UYGE_UN_HE_Y:
case UYGE_UN_HE_A:
tmp[wPos++]=g_Unicode[UYGIN_HM].Code[U_6];
Herp=g_Unicode[UYGIN_E].Code[U_6];
break;
case UYGE_UN_HO_Y:
case UYGE_UN_HO_A:
tmp[wPos++]=g_Unicode[UYGIN_HM].Code[U_6];
Herp=g_Unicode[UYGIN_O].Code[U_6];
break;
case UYGE_UN_HU_Y:
case UYGE_UN_HU_A:
tmp[wPos++]=g_Unicode[UYGIN_HM].Code[U_6];
Herp=g_Unicode[UYGIN_U].Code[U_6];
break;
case UYGE_UN_HOO_Y:
case UYGE_UN_HOO_A:
tmp[wPos++]=g_Unicode[UYGIN_HM].Code[U_6];
Herp=g_Unicode[UYGIN_OO].Code[U_6];
break;
case UYGE_UN_HUU_Y:
case UYGE_UN_HUU_A:
tmp[wPos++]=g_Unicode[UYGIN_HM].Code[U_6];
Herp=g_Unicode[UYGIN_UU].Code[U_6];
break;
case UYGE_UN_HEE_Y:
case UYGE_UN_HEE_A:
case UYGE_UN_HEE_B:
tmp[wPos++]=g_Unicode[UYGIN_HM].Code[U_6];
Herp=g_Unicode[UYGIN_EE].Code[U_6];
break;
case UYGE_UN_HI_Y:
case UYGE_UN_HI_A:
case UYGE_UN_HI_B:
tmp[wPos++]=g_Unicode[UYGIN_HM].Code[U_6];
Herp=g_Unicode[UYGIN_I].Code[U_6];
break;
default:
break;
}
}
if(Herp!=0x0640)
{
tmp[wPos++]=Herp;
AldinqiHerp=Herp;
}
}
tmp[wPos]=0x0;
return tmp;
}
void IlikyurtToUnicode(wchar_t *ilikBuf)
{
if(ilikBuf==NULL) return;
ULONG len=(ULONG)wcslen(ilikBuf);
ULONG yPos=0,rPos=0;
wchar_t Herp,tHerp;
UINT itmp=0;
int qurBeshei=0;
while(ilikBuf[itmp]!=0x0)
{
if(ilikBuf[itmp]==QURBELGISI_L)
{
ilikBuf[itmp++]=0x0;
wcsrev(&ilikBuf[qurBeshei]);
qurBeshei=itmp;
}
else
{
itmp++;
}
}
wcsrev(&ilikBuf[qurBeshei]);
itmp=0;
while(itmp<len)
{
if(ilikBuf[itmp]==0x0)
{
ilikBuf[itmp]=QURBELGISI_L;
}
itmp++;
}
ilikBuf[len]=0x0;
while(ilikBuf[rPos]!=0x0)
{
Herp=ilikBuf[rPos++];
if(Herp==0x002E)
{
tHerp=ilikBuf[rPos];
if(tHerp==0x02E||(tHerp>=0x0021&&tHerp<=0x002B)||tHerp==0x002D||(tHerp>=0x002F&&tHerp<=0x003A)||(tHerp>=0x003C&&tHerp<=0x003E)||(tHerp>=0x0040))
{
continue;
}
}
if(Herp==QURBELGISI_R)
{
if(ilikBuf[rPos]==QURBELGISI_L)
{
rPos++;
}
Herp=QURBELGISI_R;
}
else
{
Herp=gUGetHerpFromIlikyurt(Herp);
}
ilikBuf[yPos++]=Herp;
}
ilikBuf[yPos]=0x0;
}
void UighurNotePadToUnicode(wchar_t *noteBuf)
{
if(noteBuf==NULL) return;
ULONG len=(ULONG)wcslen(noteBuf);
ULONG yPos=0,rPos=0;
wchar_t Herp;
UINT itmp=0;
int qurBeshei=0;
while(noteBuf[itmp]!=0x0)
{
if(noteBuf[itmp]==QURBELGISI_L)
{
noteBuf[itmp++]=0x0;
wcsrev(¬eBuf[qurBeshei]);
qurBeshei=itmp;
}
else
{
itmp++;
}
}
wcsrev(¬eBuf[qurBeshei]);
itmp=0;
while(itmp<len)
{
if(noteBuf[itmp]==0x0)
{
noteBuf[itmp]=QURBELGISI_L;
}
itmp++;
}
noteBuf[len]=0x0;
while(noteBuf[rPos]!=0x0)
{
Herp=noteBuf[rPos++];
if(Herp==QURBELGISI_R)
{
if(noteBuf[rPos]==QURBELGISI_L)
{
rPos++;
}
Herp=QURBELGISI_R;
}
else
{
Herp=gUGetHerpFromNotepad(Herp);
}
noteBuf[yPos++]=Herp;
}
noteBuf[yPos]=0x0;
}
void UGetUyghurSoft_HTML(wchar_t *uSoft)
{
if(uSoft==NULL) return;
UINT yPos=0,rPos=0;
wchar_t Herp;
wchar_t buf[10];
int bufIndex=0;
int tmp;
ULONG tmpL;
while(uSoft[rPos]!=0x0)
{
Herp=uSoft[rPos++];
if(Herp=='&' && uSoft[rPos]!=0x0 && uSoft[rPos]=='#')
{
tmp=rPos+1;
bufIndex=0;
while(uSoft[tmp]!=0x0 && uSoft[tmp]!=';')
{
buf[bufIndex++]=uSoft[tmp++];
}
buf[bufIndex]=0x0;
tmpL=wcstoul(buf,NULL,10);
if(tmpL!=0 || tmpL!=ULONG_MAX)
{
Herp=(wchar_t)tmpL;
rPos=tmp+1;
}
}
Herp=gUGetUyghurSoftChar(Herp);
uSoft[yPos++]=Herp;
}
uSoft[yPos]=0x0;
return;
}
// Bu Tirnaqlarni oz ara almashturidu(echilgahn yepilghan....)
wchar_t Mirror(wchar_t c)
{
wchar_t ret;
switch(c)
{
case 0x0028:
ret= 0x0029; // LEFT PARENTHESIS
break;
case 0x0029:
ret= 0x0028; // RIGHT PARENTHESIS
break;
case 0x003C:
ret= 0x003E; // LESS-THAN SIGN
break;
case 0x003E:
ret= 0x003C; // GREATER-THAN SIGN
break;
case 0x005B:
ret= 0x005D; // LEFT SQUARE BRACKET
break;
case 0x005D:
ret= 0x005B; // RIGHT SQUARE BRACKET
break;
case 0x007B:
ret= 0x007D; // LEFT CURLY BRACKET
break;
case 0x007D:
ret= 0x007B; // RIGHT CURLY BRACKET
break;
case 0x00AB:
ret= 0x00BB; // LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
break;
case 0x00BB:
ret= 0x00AB; // RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
break;
case 0x2039:
ret= 0x203A; // SINGLE LEFT-POINTING ANGLE QUOTATION MARK
break;
case 0x203A:
ret= 0x2039; // SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
break;
case 0x2045:
ret= 0x2046; // LEFT SQUARE BRACKET WITH QUILL
break;
case 0x2046:
ret= 0x2045; // RIGHT SQUARE BRACKET WITH QUILL
break;
case 0x207D:
ret= 0x207E; // SUPERSCRIPT LEFT PARENTHESIS
break;
case 0x207E:
ret= 0x207D; // SUPERSCRIPT RIGHT PARENTHESIS
break;
case 0x208D:
ret= 0x208E; // SUBSCRIPT LEFT PARENTHESIS
break;
case 0x208E:
ret= 0x208D; // SUBSCRIPT RIGHT PARENTHESIS
break;
case 0x2208:
ret= 0x220B; // ELEMENT OF
break;
case 0x2209:
ret= 0x220C; // NOT AN ELEMENT OF
break;
case 0x220A:
ret= 0x220D; // SMALL ELEMENT OF
break;
case 0x220B:
ret= 0x2208; // CONTAINS AS MEMBER
break;
case 0x220C:
ret= 0x2209; // DOES NOT CONTAIN AS MEMBER
break;
case 0x220D:
ret= 0x220A; // SMALL CONTAINS AS MEMBER
break;
case 0x2215:
ret= 0x29F5; // DIVISION SLASH
break;
case 0x223C:
ret= 0x223D; // TILDE OPERATOR
break;
case 0x223D:
ret= 0x223C; // REVERSED TILDE
break;
case 0x2243:
ret= 0x22CD; // ASYMPTOTICALLY EQUAL TO
break;
case 0x2252:
ret= 0x2253; // APPROXIMATELY EQUAL TO OR THE IMAGE OF
break;
case 0x2253:
ret= 0x2252; // IMAGE OF OR APPROXIMATELY EQUAL TO
break;
case 0x2254:
ret= 0x2255; // COLON EQUALS
break;
case 0x2255:
ret= 0x2254; // EQUALS COLON
break;
case 0x2264:
ret= 0x2265; // LESS-THAN OR EQUAL TO
break;
case 0x2265:
ret= 0x2264; // GREATER-THAN OR EQUAL TO
break;
case 0x2266:
ret= 0x2267; // LESS-THAN OVER EQUAL TO
break;
case 0x2267:
ret= 0x2266; // GREATER-THAN OVER EQUAL TO
break;
case 0x2268:
ret= 0x2269; // [BEST FIT] LESS-THAN BUT NOT EQUAL TO
break;
case 0x2269:
ret= 0x2268; // [BEST FIT] GREATER-THAN BUT NOT EQUAL TO
break;
case 0x226A:
ret= 0x226B; // MUCH LESS-THAN
break;
case 0x226B:
ret= 0x226A; // MUCH GREATER-THAN
break;
case 0x226E:
ret= 0x226F; // [BEST FIT] NOT LESS-THAN
break;
case 0x226F:
ret= 0x226E; // [BEST FIT] NOT GREATER-THAN
break;
case 0x2270:
ret= 0x2271; // [BEST FIT] NEITHER LESS-THAN NOR EQUAL TO
break;
case 0x2271:
ret= 0x2270; // [BEST FIT] NEITHER GREATER-THAN NOR EQUAL TO
break;
case 0x2272:
ret= 0x2273; // [BEST FIT] LESS-THAN OR EQUIVALENT TO
break;
case 0x2273:
ret= 0x2272; // [BEST FIT] GREATER-THAN OR EQUIVALENT TO
break;
case 0x2274:
ret= 0x2275; // [BEST FIT] NEITHER LESS-THAN NOR EQUIVALENT TO
break;
case 0x2275:
ret= 0x2274; // [BEST FIT] NEITHER GREATER-THAN NOR EQUIVALENT TO
break;
case 0x2276:
ret= 0x2277; // LESS-THAN OR GREATER-THAN
break;
case 0x2277:
ret= 0x2276; // GREATER-THAN OR LESS-THAN
break;
case 0x2278:
ret= 0x2279; // NEITHER LESS-THAN NOR GREATER-THAN
break;
case 0x2279:
ret= 0x2278; // NEITHER GREATER-THAN NOR LESS-THAN
break;
case 0x227A:
ret= 0x227B; // PRECEDES
break;
case 0x227B:
ret= 0x227A; // SUCCEEDS
break;
case 0x227C:
ret= 0x227D; // PRECEDES OR EQUAL TO
break;
case 0x227D:
ret= 0x227C; // SUCCEEDS OR EQUAL TO
break;
case 0x227E:
ret= 0x227F; // [BEST FIT] PRECEDES OR EQUIVALENT TO
break;
case 0x227F:
ret= 0x227E; // [BEST FIT] SUCCEEDS OR EQUIVALENT TO
break;
case 0x2280:
ret= 0x2281; // [BEST FIT] DOES NOT PRECEDE
break;
case 0x2281:
ret= 0x2280; // [BEST FIT] DOES NOT SUCCEED
break;
case 0x2282:
ret= 0x2283; // SUBSET OF
break;
case 0x2283:
ret= 0x2282; // SUPERSET OF
break;
case 0x2284:
ret= 0x2285; // [BEST FIT] NOT A SUBSET OF
break;
case 0x2285:
ret= 0x2284; // [BEST FIT] NOT A SUPERSET OF
break;
case 0x2286:
ret= 0x2287; // SUBSET OF OR EQUAL TO
break;
case 0x2287:
ret= 0x2286; // SUPERSET OF OR EQUAL TO
break;
case 0x2288:
ret= 0x2289; // [BEST FIT] NEITHER A SUBSET OF NOR EQUAL TO
break;
case 0x2289:
ret= 0x2288; // [BEST FIT] NEITHER A SUPERSET OF NOR EQUAL TO
break;
case 0x228A:
ret= 0x228B; // [BEST FIT] SUBSET OF WITH NOT EQUAL TO
break;
case 0x228B:
ret= 0x228A; // [BEST FIT] SUPERSET OF WITH NOT EQUAL TO
break;
case 0x228F:
ret= 0x2290; // SQUARE IMAGE OF
break;
case 0x2290:
ret= 0x228F; // SQUARE ORIGINAL OF
break;
case 0x2291:
ret= 0x2292; // SQUARE IMAGE OF OR EQUAL TO
break;
case 0x2292:
ret= 0x2291; // SQUARE ORIGINAL OF OR EQUAL TO
break;
case 0x2298:
ret= 0x29B8; // CIRCLED DIVISION SLASH
break;
case 0x22A2:
ret= 0x22A3; // RIGHT TACK
break;
case 0x22A3:
ret= 0x22A2; // LEFT TACK
break;
case 0x22A6:
ret= 0x2ADE; // ASSERTION
break;
case 0x22A8:
ret= 0x2AE4; // TRUE
break;
case 0x22A9:
ret= 0x2AE3; // FORCES
break;
case 0x22AB:
ret= 0x2AE5; // DOUBLE VERTICAL BAR DOUBLE RIGHT TURNSTILE
break;
case 0x22B0:
ret= 0x22B1; // PRECEDES UNDER RELATION
break;
case 0x22B1:
ret= 0x22B0; // SUCCEEDS UNDER RELATION
break;
case 0x22B2:
ret= 0x22B3; // NORMAL SUBGROUP OF
break;
case 0x22B3:
ret= 0x22B2; // CONTAINS AS NORMAL SUBGROUP
break;
case 0x22B4:
ret= 0x22B5; // NORMAL SUBGROUP OF OR EQUAL TO
break;
case 0x22B5:
ret= 0x22B4; // CONTAINS AS NORMAL SUBGROUP OR EQUAL TO
break;
case 0x22B6:
ret= 0x22B7; // ORIGINAL OF
break;
case 0x22B7:
ret= 0x22B6; // IMAGE OF
break;
case 0x22C9:
ret= 0x22CA; // LEFT NORMAL FACTOR SEMIDIRECT PRODUCT
break;
case 0x22CA:
ret= 0x22C9; // RIGHT NORMAL FACTOR SEMIDIRECT PRODUCT
break;
case 0x22CB:
ret= 0x22CC; // LEFT SEMIDIRECT PRODUCT
break;
case 0x22CC:
ret= 0x22CB; // RIGHT SEMIDIRECT PRODUCT
break;
case 0x22CD:
ret= 0x2243; // REVERSED TILDE EQUALS
break;
case 0x22D0:
ret= 0x22D1; // DOUBLE SUBSET
break;
case 0x22D1:
ret= 0x22D0; // DOUBLE SUPERSET
break;
case 0x22D6:
ret= 0x22D7; // LESS-THAN WITH DOT
break;
case 0x22D7:
ret= 0x22D6; // GREATER-THAN WITH DOT
break;
case 0x22D8:
ret= 0x22D9; // VERY MUCH LESS-THAN
break;
case 0x22D9:
ret= 0x22D8; // VERY MUCH GREATER-THAN
break;
case 0x22DA:
ret= 0x22DB; // LESS-THAN EQUAL TO OR GREATER-THAN
break;
case 0x22DB:
ret= 0x22DA; // GREATER-THAN EQUAL TO OR LESS-THAN
break;
case 0x22DC:
ret= 0x22DD; // EQUAL TO OR LESS-THAN
break;
case 0x22DD:
ret= 0x22DC; // EQUAL TO OR GREATER-THAN
break;
case 0x22DE:
ret= 0x22DF; // EQUAL TO OR PRECEDES
break;
case 0x22DF:
ret= 0x22DE; // EQUAL TO OR SUCCEEDS
break;
case 0x22E0:
ret= 0x22E1; // [BEST FIT] DOES NOT PRECEDE OR EQUAL
break;
case 0x22E1:
ret= 0x22E0; // [BEST FIT] DOES NOT SUCCEED OR EQUAL
break;
case 0x22E2:
ret= 0x22E3; // [BEST FIT] NOT SQUARE IMAGE OF OR EQUAL TO
break;
case 0x22E3:
ret= 0x22E2; // [BEST FIT] NOT SQUARE ORIGINAL OF OR EQUAL TO
break;
case 0x22E4:
ret= 0x22E5; // [BEST FIT] SQUARE IMAGE OF OR NOT EQUAL TO
break;
case 0x22E5:
ret= 0x22E4; // [BEST FIT] SQUARE ORIGINAL OF OR NOT EQUAL TO
break;
case 0x22E6:
ret= 0x22E7; // [BEST FIT] LESS-THAN BUT NOT EQUIVALENT TO
break;
case 0x22E7:
ret= 0x22E6; // [BEST FIT] GREATER-THAN BUT NOT EQUIVALENT TO
break;
case 0x22E8:
ret= 0x22E9; // [BEST FIT] PRECEDES BUT NOT EQUIVALENT TO
break;
case 0x22E9:
ret= 0x22E8; // [BEST FIT] SUCCEEDS BUT NOT EQUIVALENT TO
break;
case 0x22EA:
ret= 0x22EB; // [BEST FIT] NOT NORMAL SUBGROUP OF
break;
case 0x22EB:
ret= 0x22EA; // [BEST FIT] DOES NOT CONTAIN AS NORMAL SUBGROUP
break;
case 0x22EC:
ret= 0x22ED; // [BEST FIT] NOT NORMAL SUBGROUP OF OR EQUAL TO
break;
case 0x22ED:
ret= 0x22EC; // [BEST FIT] DOES NOT CONTAIN AS NORMAL SUBGROUP OR EQUAL
break;
case 0x22F0:
ret= 0x22F1; // UP RIGHT DIAGONAL ELLIPSIS
break;
case 0x22F1:
ret= 0x22F0; // DOWN RIGHT DIAGONAL ELLIPSIS
break;
case 0x22F2:
ret= 0x22FA; // ELEMENT OF WITH LONG HORIZONTAL STROKE
break;
case 0x22F3:
ret= 0x22FB; // ELEMENT OF WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
break;
case 0x22F4:
ret= 0x22FC; // SMALL ELEMENT OF WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
break;
case 0x22F6:
ret= 0x22FD; // ELEMENT OF WITH OVERBAR
break;
case 0x22F7:
ret= 0x22FE; // SMALL ELEMENT OF WITH OVERBAR
break;
case 0x22FA:
ret= 0x22F2; // CONTAINS WITH LONG HORIZONTAL STROKE
break;
case 0x22FB:
ret= 0x22F3; // CONTAINS WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
break;
case 0x22FC:
ret= 0x22F4; // SMALL CONTAINS WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
break;
case 0x22FD:
ret= 0x22F6; // CONTAINS WITH OVERBAR
break;
case 0x22FE:
ret= 0x22F7; // SMALL CONTAINS WITH OVERBAR
break;
case 0x2308:
ret= 0x2309; // LEFT CEILING
break;
case 0x2309:
ret= 0x2308; // RIGHT CEILING
break;
case 0x230A:
ret= 0x230B; // LEFT FLOOR
break;
case 0x230B:
ret= 0x230A; // RIGHT FLOOR
break;
case 0x2329:
ret= 0x232A; // LEFT-POINTING ANGLE BRACKET
break;
case 0x232A:
ret= 0x2329; // RIGHT-POINTING ANGLE BRACKET
break;
case 0x2768:
ret= 0x2769; // MEDIUM LEFT PARENTHESIS ORNAMENT
break;
case 0x2769:
ret= 0x2768; // MEDIUM RIGHT PARENTHESIS ORNAMENT
break;
case 0x276A:
ret= 0x276B; // MEDIUM FLATTENED LEFT PARENTHESIS ORNAMENT
break;
case 0x276B:
ret= 0x276A; // MEDIUM FLATTENED RIGHT PARENTHESIS ORNAMENT
break;
case 0x276C:
ret= 0x276D; // MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT
break;
case 0x276D:
ret= 0x276C; // MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT
break;
case 0x276E:
ret= 0x276F; // HEAVY LEFT-POINTING ANGLE QUOTATION MARK ORNAMENT
break;
case 0x276F:
ret= 0x276E; // HEAVY RIGHT-POINTING ANGLE QUOTATION MARK ORNAMENT
break;
case 0x2770:
ret= 0x2771; // HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT
break;
case 0x2771:
ret= 0x2770; // HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT
break;
case 0x2772:
ret= 0x2773; // LIGHT LEFT TORTOISE SHELL BRACKET
break;
case 0x2773:
ret= 0x2772; // LIGHT RIGHT TORTOISE SHELL BRACKET
break;
case 0x2774:
ret= 0x2775; // MEDIUM LEFT CURLY BRACKET ORNAMENT
break;
case 0x2775:
ret= 0x2774; // MEDIUM RIGHT CURLY BRACKET ORNAMENT
break;
case 0x27D5:
ret= 0x27D6; // LEFT OUTER JOIN
break;
case 0x27D6:
ret= 0x27D5; // RIGHT OUTER JOIN
break;
case 0x27DD:
ret= 0x27DE; // LONG RIGHT TACK
break;
case 0x27DE:
ret= 0x27DD; // LONG LEFT TACK
break;
case 0x27E2:
ret= 0x27E3; // WHITE CONCAVE-SIDED DIAMOND WITH LEFTWARDS TICK
break;
case 0x27E3:
ret= 0x27E2; // WHITE CONCAVE-SIDED DIAMOND WITH RIGHTWARDS TICK
break;
case 0x27E4:
ret= 0x27E5; // WHITE SQUARE WITH LEFTWARDS TICK
break;
case 0x27E5:
ret= 0x27E4; // WHITE SQUARE WITH RIGHTWARDS TICK
break;