Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/ttcomtester/tests/unicodebuf-combining-spacing_mark.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10521 - (show annotations) (download) (as text)
Fri Jan 20 16:03:38 2023 UTC (13 months, 2 weeks ago) by zmatsuo
File MIME type: text/x-perl
File size: 2576 byte(s)
add communication test tool
1 # 結合文字 Spacing mark test
2
3 use utf8;
4
5 binmode STDOUT, ":utf8";
6 local $| = 1;
7
8 #
9 print "Malayalam\n";
10 print "\N{U+0d2e}\N{U+0d32}\N{U+0d2f}\N{U+0d3e}\N{U+0d33}\N{U+0d02}\n";
11
12 print "\N{U+0d2e}| U+0d2e 1cell\n";
13 print "\N{U+0d32}| U+0d32 1cell\n";
14 print "\N{U+0d2f}\N{U+0d3e}| U+0d2f U+0d3e(Spacing Mark) 2cell\n";
15 print "\N{U+0d33}\N{U+0d02}| U+0d33 U+0d02(Spacing Mark) 2cell\n";
16 print "\n";
17
18 print "Hello (in Malayalam)\n";
19 print "\N{U+0d28}\N{U+0d2e}\N{U+0d38}\N{U+0d4d}\N{U+0d15}\N{U+0d3e}\N{U+0d30}\N{U+0d02}\n";
20
21 print "\N{U+0d28}| U+0d28 1cell\n";
22 print "\N{U+0d2e}| U+0d2e 1cell\n";
23 print "\N{U+0d38}\N{U+0d4d}\N{U+0d15}\N{U+0d3e}| U+0d38 U+0d4d(Nonspacing Mark) U+0d15 U+0d3e(Spacing Mark) 3cell\n";
24 print "\N{U+0d30}\N{U+0d02}| U+0d30 U+0d02(Spacing Mark) 2cell\n";
25 print "\n";
26
27 print "\N{U+307B}\N{U+309A}| U+307B U+309A (ほ + ゜ = ぽ)\n";
28 print "\n";
29
30 # repeat spacing mark
31 print "repeat spacing mark\n";
32 for ($i = 0 ; $i < 10 + 2; $i++) {
33 printf("%d", ($i+1)%10);
34 }
35 print "\n";
36 print "\N{U+0d33}";
37 for ($i = 0 ; $i < 10; $i++) {
38 print "\N{U+0d02}";
39 }
40 print "| U+0d33 + U+0d02 * 10 11cell\n";
41 print "\n";
42
43 # virama
44 print "Virama test\n";
45
46 # Devanagari
47 # wget https://raw.githubusercontent.com/emacs-mirror/emacs/master/etc/HELLO -O - --quiet | grep Devanagari
48 # name prop width
49 print "\N{U+0938}"; # DEVANAGARI LETTER SA +1
50 print "\N{U+094d}"; # DEVANAGARI SIGN VIRAMA Virama +0
51 print "\N{U+0924}"; # DEVANAGARI LETTER TA +1
52 print "\N{U+0947}"; # DEVANAGARI VOWEL SIGN E Nonspacing mark +0
53 print "| 2cell\n";
54
55 # Gujarati
56 # wget https://raw.githubusercontent.com/emacs-mirror/emacs/master/etc/HELLO -O - --quiet | grep Gujarati
57 # name prop width
58 print "\N{U+0ab8}"; # GUJARATI LETTER SA +1
59 print "\N{U+0acd}"; # GUJARATI SIGN VIRAMA Virama +0
60 print "\N{U+0aa4}"; # GUJARATI LETTER TA +1
61 print "\N{U+0ac7}"; # GUJARATI VOWEL SIGN E Nonspacing mark +0
62 print "| 2cell\n";
63
64 # Tamil
65 # wget https://raw.githubusercontent.com/emacs-mirror/emacs/master/etc/HELLO -O - --quiet | grep Tamil
66 # name prop width
67 print "\N{U+0bb4}"; # TAMIL LETTER LLLA +1
68 print "\N{U+0bcd}"; # TAMIL SIGN VIRAMA Virama +0
69 print "\N{U+0029}"; # RIGHT PARENTHESIS +1
70 print "| 2cell\n";

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26