KanaQuiz
KanaQuiz copied to clipboard
Background color obscures romaji / English script (Mac OS)


This is true both in Alacritty where I have a custom configuration and also in the default Terminal app where no color modifications have been made. The only difference is it looks pitch black in the Terminal app.
The second image shows that the letters appear only when I drag over them with the mouse and select them.
The same thing happens with the English instructions in the interactive test.
Any ideas why this might be happening / how to fix it? 🤔 Thank you! 🙏
If I read the code correctly, the text is supposed to be bold black, which renders it invisible. You can change the color of the romaji by changing this line:
diff --git a/kanaquiz.py b/kanaquiz.py
index ab5de9e..528a07b 100755
--- a/kanaquiz.py
+++ b/kanaquiz.py
@@ -626,7 +626,7 @@ class CoreQuiz (object):
pos = item[4]
eng = item[2]
row[pos] = (7, item[0] + ' ' + item[1], 'c')
- rom[pos] = (8, eng, 'c')
+ rom[pos] = (3, eng, 'c')
rows.append(row)
if romaji:
rows.append(rom)
The number 3 means yellow, and it follows ANSI Colors, but this implementation only supports until color 7.
If I read the code correctly, the text is supposed to be bold black, which renders it invisible. You can change the color of the romaji by changing this line:
diff --git a/kanaquiz.py b/kanaquiz.py index ab5de9e..528a07b 100755 --- a/kanaquiz.py +++ b/kanaquiz.py @@ -626,7 +626,7 @@ class CoreQuiz (object): pos = item[4] eng = item[2] row[pos] = (7, item[0] + ' ' + item[1], 'c') - rom[pos] = (8, eng, 'c') + rom[pos] = (3, eng, 'c') rows.append(row) if romaji: rows.append(rom)
The number 3 means yellow, and it follows ANSI Colors, but this implementation only supports until color 7.
Thank you for this, I did a search in the code with vim and replaced it with 3 where it looked like it was referring to a color. I hope I didn't mess it up by replacing something that breaks in the code elsewhere but we'll see 😆
EDIT: If you also know of a way to remove the background color that'd be a great help 🙏