Skip to content

Commit

Permalink
kanji info small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hopto-dot committed Sep 19, 2020
1 parent 6065a6c commit 3a80e19
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Japanese Conjugation Helper/Module1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -4402,7 +4402,7 @@ Module Module1
Console.Clear()
Const QUOTE = """"
Console.WriteLine("Enter a string of kanji.")
Dim KanjisString As String = Console.ReadLine
Dim KanjisString As String = Console.ReadLine.Trim.Replace(" ", "")

Console.Clear()
Console.WriteLine("Kanji Information for 「" & WanaKana.StripOkurigana(KanjisString) & "」")
Expand Down Expand Up @@ -4433,20 +4433,21 @@ Module Module1
Catch

End Try
Console.Clear()
Console.WriteLine("No info for " & ActualSearchWord)
Console.WriteLine
Continue For
End Try

Dim KanjiInfo As String = ""
Try
KanjiInfo = RetrieveClassRange(WordHTML, "<span class=" & QUOTE & "character literal japanese_gothic", "</aside>", "KanjiInfo")
Catch
Console.Clear()
'Console.Clear()
Continue For
End Try

If KanjiInfo = "" Then
Console.Clear()
'Console.Clear()
Continue For
End If

Expand Down Expand Up @@ -4479,7 +4480,7 @@ Module Module1
Loop
Array.Resize(KanjiGroup, KanjiGroup.Length - 1)
Catch
Console.Clear()
'Console.Clear()
End Try

Dim ActualInfo(KanjiGroup.Length - 1, 3) 'X = Kanji (group), Y = Info type.
Expand Down Expand Up @@ -4627,6 +4628,7 @@ Module Module1
Next
Console.WriteLine("Done!")
Console.ReadLine()
Main()
End Sub


Expand Down

0 comments on commit 3a80e19

Please sign in to comment.