Skip to content

Commit

Permalink
wrap long text on flashcards
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Jan 27, 2024
1 parent 78c62cd commit da763c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions memoria/dictionaries/en_it/nie_a0_a1pt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@
},

'ch4':{
'Adverbs of frequency: (almost) always, usually, often, sometimes, never':'(quasi) sempre, di solito, spesso, qualche volta, mai',
'(almost) always, usually, often, sometimes, never':'(quasi) sempre, di solito, spesso, qualche volta, mai',
'at all, not much, quite, much, very much':'per niente, non molto, abbastanza, molto, moltissimo',
'Interrogatives: How?, Where?, When?, Why?, Who/whom?, What? (2 forms), Which?/What? (m., f., plural), How much? (How many?)': 'Come?, Dove?, Quando?, Perchè?, Chi?, Che?/Che cosa?, Quale? (Quale?, Quali?), Quanto? (Quanti?)',
'University departments: Humanities, Law, Economics, Political Sciences, Engineering, Architecture, Medicine':'Lettere e Filosofia, Giurisprudenza, Economia, Scienze Politiche, Ingegneria, Architettura, Medicina',
'How?, Where?, When?, Why?, Who/whom?, What? (2 forms), Which?/What? (m., f., plural), How much? (How many?)': 'Come?, Dove?, Quando?, Perchè?, Chi?, Che?/Che cosa?, Quale? (Quale?, Quali?), Quanto? (Quanti?)',
'Humanities, Law, Economics, Political Sciences, Engineering, Architecture, Medicine':'Lettere e Filosofia, Giurisprudenza, Economia, Scienze Politiche, Ingegneria, Architettura, Medicina',
'to feel like':'avere voglia (di)',
'to need (to)':'avere bisogno (di)',
'to be afraid (of)':'avere paura (di)',
Expand Down Expand Up @@ -333,7 +333,7 @@
'gas station':'distributore (m.)',
'parking area':'parcheggio',
'bus stop':"fermata dell'autobus",
'Prepositions: in front of (2 forms), next to (2 forms), between (2 forms), behind':'davanti a / di fronte a, accanto / vicina, tra / fra, dietro',
'in front of (2 forms), next to (2 forms), between (2 forms), behind':'davanti a / di fronte a, accanto / vicina, tra / fra, dietro',
'cheap, expensive':'economico, caro',
'interesting':'interessante',
'tourist (adjective)':'turistico',
Expand Down
3 changes: 2 additions & 1 deletion memoria/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def flashcard_gui(book, chapter, card_type, card_language, nxy=5):
for nn in range(int(ceil(nentry / nxy ** 2))):
win = tk.Toplevel()
windows.append(win)
base_font = font.Font(family='Lato', size=16, weight='bold')
base_font = font.Font(family='Lato', size=13, weight='bold')
win.geometry("2400x2400")

# correctly display the index of the final entry
Expand Down Expand Up @@ -137,6 +137,7 @@ def flashcard_gui(book, chapter, card_type, card_language, nxy=5):
card_language
),
anchor='n', # align text to top of grid cell
wraplength=240,
)
flashcard.config(font=base_font, fg=colors[1])
flashcard.grid(row=ii, column=jj, sticky='nsew', padx=4, pady=4)
Expand Down

0 comments on commit da763c8

Please sign in to comment.