File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
samples/Berrysoft.Data.MapSample Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 16
16
dictionary.Add( "潮"c , "chao" )
17
17
dictionary.Add( "常"c , "chang" )
18
18
19
+ 'This is a famous Chinese couplet of Temple of Lady Meng Jiangnu in Shanhaiguan.
20
+ 'The correct pronunciation of it is:
21
+ 'Hǎi shuǐ cháo zhāo zhāo cháo zhāo cháo zhāo luò
22
+ '海 水 朝 / 朝 朝 朝 / 朝 朝 朝 落
23
+ 'Fú yún zhǎng cháng cháng zhǎng cháng zhǎng cháng xiāo
24
+ '浮 云 长 / 长 长 长 / 长 长 长 消
25
+
26
+ '朝 means "day" when pronounces zhāo and means "tide" when pronounces cháo. Now the latter meaning is usually written as 潮.
27
+ '长 means "grow" when pronounces zhǎng and means "always" when pronounces cháng. Now the latter meaning is usually written as 常.
28
+
29
+ 'This program means to replace the old multi-tone characters to their commonly used forms for easier understanding.
30
+
19
31
Dim str = "海水朝朝朝朝朝朝朝落浮云长长长长长长长消" .ToArray()
20
32
Console.WriteLine(str)
21
33
22
34
For i As Integer = 0 To str.Length - 1
23
35
Dim pronounce = dictionary.GetValuesFromKey1(str(i))
24
36
If pronounce.Count > 1 Then
37
+ Console.Write( "{0}" + vbTab, str(i))
25
38
For j As Integer = 0 To pronounce.Count - 1
26
39
Console.Write( "{0} {1}" + vbTab, j, pronounce(j))
27
40
Next
34
47
End If
35
48
Next
36
49
50
+ 'If you enter the correct number: 0 1 1 0 1 0 1 0 1 1 0 1 0 1
51
+ 'You will get: 海水潮朝朝潮朝潮朝落浮云长常常长常长常消
52
+ 'Now it is easier to understand.
37
53
Console.WriteLine(str)
38
54
End Sub
39
55
End Module
You can’t perform that action at this time.
0 commit comments