Skip to content

Commit 7bcdaa6

Browse files
authored
Add files via upload
1 parent 050835b commit 7bcdaa6

5 files changed

Lines changed: 313 additions & 82 deletions

File tree

src/app/pages/index/data.ts

Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
export const LIST: any[] = [
2+
[
3+
['ᠠ', 'A'],
4+
['ᠡ', 'E'],
5+
['ᠢ', 'I'],
6+
['ᠤ', 'O'],
7+
['ᠣ', 'Q'],
8+
['ᠥ', 'U'],
9+
['ᠦ', 'W'],
10+
],
11+
[
12+
['ᠨᠠ', 'N'],
13+
['ᠨᠡ', ''],
14+
['ᠨᠢ', ''],
15+
['ᠨᠣ', ''],
16+
['ᠨᠣ', ''],
17+
['ᠨᠥ', ''],
18+
['ᠨᠦ', ''],
19+
],
20+
[
21+
['ᠪᠡ', 'B'],
22+
['ᠪᠡ', ''],
23+
['ᠪᠢ', ''],
24+
['ᠪᠣ', ''],
25+
['ᠪᠣ', ''],
26+
['ᠪᠥ', ''],
27+
['ᠪᠦ', ''],
28+
],
29+
[
30+
['ᠫᠠ', 'P'],
31+
['ᠫᠡ', ''],
32+
['ᠫᠢ', ''],
33+
['ᠫᠣ', ''],
34+
['ᠫᠣ', ''],
35+
['ᠫᠥ', ''],
36+
['ᠫᠦ', ''],
37+
],
38+
[
39+
['ᠬᠠ', 'H'],
40+
['ᠫᠡ', ''],
41+
['ᠫᠢ', ''],
42+
['ᠫᠣ', ''],
43+
['ᠫᠣ', ''],
44+
['ᠫᠥ', ''],
45+
['ᠫᠦ', ''],
46+
],
47+
[
48+
['ᠭᠠ', 'G'],
49+
['ᠭᠡ', ''],
50+
['ᠭᠢ', ''],
51+
['ᠭᠣ', ''],
52+
['ᠭᠣ', ''],
53+
['ᠭᠥ', ''],
54+
['ᠭᠦ', ''],
55+
],
56+
[
57+
['ᠮᠠ', 'M'],
58+
['ᠮᠡ', ''],
59+
['ᠮᠢ', ''],
60+
['ᠮᠣ', ''],
61+
['ᠮᠣ', ''],
62+
['ᠮᠥ', ''],
63+
['ᠮᠦ', ''],
64+
],
65+
[
66+
['ᠯᠠ', 'L'],
67+
['ᠯᠡ', ''],
68+
['ᠯᠢ', ''],
69+
['ᠯᠣ', ''],
70+
['ᠯᠣ', ''],
71+
['ᠯᠥ', ''],
72+
['ᠯᠦ', ''],
73+
],
74+
[
75+
['ᠰᠠ', 'S'],
76+
['ᠰᠡ', ''],
77+
['ᠰᠢ', ''],
78+
['ᠰᠣ', ''],
79+
['ᠰᠣ', ''],
80+
['ᠰᠥ', ''],
81+
['ᠰᠦ', ''],
82+
],
83+
[
84+
['ᠱᠠ', 'X'],
85+
['ᠱᠡ', ''],
86+
['ᠱᠢ', ''],
87+
['ᠱᠣ', ''],
88+
['ᠱᠣ', ''],
89+
['ᠱᠥ', ''],
90+
['ᠱᠦ', ''],
91+
],
92+
[
93+
['ᠲᠠ', 'T'],
94+
['ᠲᠡ', ''],
95+
['ᠲᠢ', ''],
96+
['ᠲᠣ', ''],
97+
['ᠲᠣ', ''],
98+
['ᠲᠥ', ''],
99+
['ᠲᠦ', ''],
100+
],
101+
[
102+
['ᠳᠠ', 'D'],
103+
['ᠳᠡ', ''],
104+
['ᠳᠢ', ''],
105+
['ᠳᠣ', ''],
106+
['ᠳᠣ', ''],
107+
['ᠳᠥ', ''],
108+
['ᠳᠦ', ''],
109+
],
110+
[
111+
['ᠴᠠ', 'C'],
112+
['ᠴᠡ', ''],
113+
['ᠴᠢ', ''],
114+
['ᠴᠣ', ''],
115+
['ᠴᠣ', ''],
116+
['ᠴᠥ', ''],
117+
['ᠴᠦ', ''],
118+
],
119+
[
120+
['ᠵᠠ', 'J'],
121+
['ᠵᠡ', ''],
122+
['ᠵᠢ', ''],
123+
['ᠵᠣ', ''],
124+
['ᠵᠣ', ''],
125+
['ᠵᠥ', ''],
126+
['ᠵᠦ', ''],
127+
],
128+
[
129+
['ᠶᠠ', 'Y'],
130+
['ᠶᠡ', ''],
131+
['ᠶᠢ', ''],
132+
['ᠶᠣ', ''],
133+
['ᠶᠣ', ''],
134+
['ᠶᠥ', ''],
135+
['ᠶᠦ', ''],
136+
],
137+
[
138+
['ᠷᠠ', 'R'],
139+
['ᠷᠡ', ''],
140+
['ᠷᠢ', ''],
141+
['ᠷᠣ', ''],
142+
['ᠷᠣ', ''],
143+
['ᠷᠥ', ''],
144+
['ᠷᠦ', ''],
145+
],
146+
[
147+
['ᠼᠠ', 'CH'],
148+
['ᠼᠡ', ''],
149+
['ᠼᠢ', ''],
150+
['ᠼᠣ', ''],
151+
['ᠼᠣ', ''],
152+
['ᠼᠥ', ''],
153+
['ᠼᠦ', ''],
154+
],
155+
[
156+
['ᠽᠠ', 'ZH'],
157+
['ᠽᠡ', ''],
158+
['ᠽᠢ', ''],
159+
['ᠽᠣ', ''],
160+
['ᠽᠣ', ''],
161+
['ᠽᠥ', ''],
162+
['ᠽᠦ', ''],
163+
],
164+
[
165+
['ᠿᠠ', 'RH'],
166+
['ᠿᠡ', ''],
167+
['ᠿᠢ', ''],
168+
['ᠿᠣ', ''],
169+
['ᠿᠣ', ''],
170+
['ᠿᠥ', ''],
171+
['ᠿᠦ', ''],
172+
],
173+
[
174+
['ᠸᠠ', 'WH'],
175+
['ᠸᠡ', ''],
176+
['ᠸᠢ', ''],
177+
['ᠸᠣ', ''],
178+
['ᠸᠣ', ''],
179+
['ᠸᠥ', ''],
180+
['ᠸᠦ', ''],
181+
],
182+
[
183+
['ᠹᠠ', 'F'],
184+
['ᠹᠡ', ''],
185+
['ᠹᠢ', ''],
186+
['ᠹᠣ', ''],
187+
['ᠹᠣ', ''],
188+
['ᠹᠥ', ''],
189+
['ᠹᠦ', ''],
190+
],
191+
[
192+
['ᠾᠠ', 'HH'],
193+
['ᠾᠡ', ''],
194+
['ᠾᠢ', ''],
195+
['ᠾᠣ', ''],
196+
['ᠾᠣ', ''],
197+
['ᠾᠥ', ''],
198+
['ᠾᠦ', ''],
199+
],
200+
[
201+
['ᠺᠠ', 'K'],
202+
['ᠺᠡ', ''],
203+
['ᠺᠢ', ''],
204+
['ᠺᠣ', ''],
205+
['ᠺᠣ', ''],
206+
['ᠺᠥ', ''],
207+
['ᠺᠦ', ''],
208+
],
209+
[
210+
['ᡀᠠ', 'LH'],
211+
['ᡀᠡ', ''],
212+
['ᡀᠢ', ''],
213+
['ᡀᠣ', ''],
214+
['ᡀᠣ', ''],
215+
['ᡀᠥ', ''],
216+
['ᡀᠦ', ''],
217+
],
218+
// 借词
219+
[
220+
['', ''],
221+
['ᡁᠢ', 'zhi'],
222+
['ᡂᠢ', 'chi'],
223+
['ᠱᠢ', 'shi'],
224+
['ᠡᠯ', 'er'],
225+
['ᠰᠧ', 'si'],
226+
['', ''],
227+
]
228+
]
229+
export const LIST2: any[] = [
230+
[' ᠶᠢᠨ', 'in'],
231+
[' ᠤᠨ', 'on'],
232+
[' ᠤ', 'nu'],
233+
['', ''],
234+
[' ᠶᠢ', 'ye'],
235+
[' ᠢ', 'i'],
236+
['', ''],
237+
[' ᠳᠦ', 'dw'],
238+
[' ᠲᠤ', 'tu'],
239+
['', ''],
240+
[' ᠪᠠᠷ', 'ber'],
241+
[' ᠢᠶᠠᠷ', 'eyer'],
242+
['', ''],
243+
[' ᠢᠶᠠᠨ', 'iyen'],
244+
[' ᠪᠠᠨ', 'ban'],
245+
['', ''],
246+
[' ᠳᠡᠬᠡᠨ', 'degen'],
247+
[' ᠲᠡᠬᠡᠨ', 'tegen'],
248+
[' ᠳᠠᠭᠠᠨ', 'dagan'],
249+
[' ᠲᠠᠭᠠᠨ', 'tagan'],
250+
['', ''],
251+
[' ᠨᠦᠭᠥᠳ', 'nwgud'],
252+
[' ᠨᠤᠭᠤᠳ', 'nqgqd'],
253+
[' ᠤᠳ', 'qd'],
254+
['', ''],
255+
[' ᠳᠠᠬᠢ', 'dahi'],
256+
[' ᠲᠠᠬᠢ', 'tahi'],
257+
['', ''],
258+
[' ᠡᠴᠡ', 'ece'],
259+
]

src/app/pages/index/index.component.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
<main style="padding: 20px;">
2+
<ul class="list2">
3+
@for (item of list; track item) {
4+
<li>
5+
@for (citem of item; track citem) {
6+
<div class="list2_item">
7+
<div class="mg2">{{ citem[0] }}</div>
8+
<div>{{ citem[1] }}</div>
9+
</div>
10+
}
11+
</li>
12+
}
13+
</ul>
14+
<div style="height: 20px;"></div>
15+
<ul class="list2">
16+
@for (item of list2; track item) {
17+
<li>
18+
<div class="list2_item">
19+
<div class="mg2">{{ item[0] }}</div>
20+
<div>{{ item[1] }}</div>
21+
</div>
22+
</li>
23+
}
24+
</ul>
25+
</main>
26+
27+
<!--
128
<ul class="list">
229
<li *ngFor="let item of egesig">
330
<div class="mg" style="font-size: 40px;">{{ item[0] }}</div>
@@ -25,3 +52,4 @@
2552
</div>
2653
</div>
2754
</main>
55+
-->
Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
1-
.list { display: flex; /*flex-wrap: wrap;*/
2-
li { float: left; border: 1px solid #999;
3-
div { text-align: center; height: 50px; border-bottom: 1px solid #999;}
4-
}
1+
@font-face {
2+
font-family: 'monggol';
3+
src: url('../../../assets/font/mfont.ttf') format('truetype');
4+
font-weight: normal;
5+
font-style: normal;
56
}
6-
#fontMain { display: flex;
7-
> div { width: 50%; box-sizing: border-box; padding: 20px;
8-
textarea { display: block; width: 100%; height: 600px;}
7+
* { padding: 0; margin: 0; font-style: normal;}
8+
ul { list-style-type: none;}
9+
10+
.list2 { display: flex;
11+
li { text-align: center; flex: 1;
12+
.list2_item { padding: 5px 0; border: 1px solid #999;
13+
> div { height: 20px; line-height: 20px;}
14+
}
15+
.mg2 { margin: 0 auto; font-size: 30px; height: 60px !important; line-height: 60px !important;
16+
font-family: 'monggol';
17+
-webkit-writing-mode: vertical-lr;
18+
-webkit-text-orientation: sideways-right;
19+
writing-mode: tb-lr;
20+
-ms-writing-mode: vertical-lr;
21+
text-orientation: sideways-right;
22+
font-family: 'monggol';
23+
}
924
}
1025
}

src/app/pages/index/index.component.ts

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {Component, OnInit} from '@angular/core';
22
import {CommonModule} from '@angular/common';
33
import {egesig} from "../../enums/letter";
44
import {FormsModule} from "@angular/forms";
5+
import {LIST, LIST2} from "./data";
56

67
@Component({
78
selector: 'app-index',
@@ -14,37 +15,10 @@ export class IndexComponent implements OnInit {
1415
constructor() {
1516
}
1617

17-
public egesig: Array<[string, string]> = egesig;
18-
public latinToMonggol: any = {};
19-
public valueLatin = 'minw saihan monggol oron';
20-
public valueMonggol = '';
21-
2218
ngOnInit(): void {
23-
this.egesig.forEach((res: [string, string]): void => {
24-
this.latinToMonggol[res[1]] = res[0];
25-
})
26-
console.log(this.latinToMonggol)
27-
}
2819

29-
valueLatinChange(): void {
30-
// const newMGStr: any = this.valueLatin.replace(/(zqi|cqi|sqi|eqr|eqr) /gi, '$1, ');
31-
const letterArry: any = this.valueLatin.split('');
32-
let mgWord: string = '';
33-
letterArry.forEach((v: string): void => {
34-
console.log(v.toUpperCase())
35-
if (this.latinToMonggol[v.toUpperCase()]) {
36-
mgWord += this.latinToMonggol[v.toUpperCase()];
37-
} else {
38-
mgWord += v;
39-
}
40-
})
41-
this.valueMonggol = mgWord;
42-
console.log(letterArry);
43-
console.log(mgWord)
4420
}
45-
}
4621

47-
/*
48-
请使用js实现如下要求,
49-
有一段文字,kjaah shfd gjlqkd hadt hfzqijhg kdfjh skjshdfh,所有'sqi '的后面都插入一个逗号,
50-
* */
22+
public list: any[] = LIST;
23+
public list2: any[] = LIST2;
24+
}

0 commit comments

Comments
 (0)