File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,7 @@ def _init_kelas(self, makna_label):
241241
242242 kelas = makna_label .find (color = 'red' )
243243 lain = makna_label .find (color = 'darkgreen' )
244+ info = makna_label .find (color = 'green' )
244245 if kelas :
245246 kelas = kelas .find_all ('span' )
246247 if lain :
@@ -251,6 +252,7 @@ def _init_kelas(self, makna_label):
251252 self .kelas = {
252253 k .text .strip (): k ['title' ].strip () for k in kelas
253254 } if kelas else {}
255+ self .info = info .text .strip () if info else ''
254256
255257 def _init_contoh (self , makna_label ):
256258 """Memproses contoh yang ada dalam makna.
@@ -276,6 +278,7 @@ def serialisasi(self):
276278 return {
277279 "kelas" : self .kelas ,
278280 "submakna" : self .submakna ,
281+ "info" : self .info ,
279282 "contoh" : self .contoh
280283 }
281284
@@ -306,6 +309,7 @@ def _contoh(self):
306309 def __str__ (self ):
307310 hasil = self ._kelas () + ' ' if self .kelas else ''
308311 hasil += self ._submakna ()
312+ hasil += ' ' + self .info if self .info else ''
309313 hasil += ': ' + self ._contoh () if self .contoh else ''
310314 return hasil
311315
You can’t perform that action at this time.
0 commit comments