-
Notifications
You must be signed in to change notification settings - Fork 0
How to add words create flashcards
If you have a text in Bulgarian and you want to copy and past new vocabulary, you can use this mode. The flashcard creator will ask you continuously for new words. It proposes translations and guess the type.
python start.py -a
To finish, just press the cancel button.
During the lesson you write the new words with the following format:
# Lines starting with # are comments and won't be imported.
# Use them to log clozes or other sentences which are not for the flashcard programm Anki
# да имам социални контакти
# Lines containing one word in Cyrillic with or without the particle се are imported
# after the user chooses the type of word and enters a translation
събувам се
събуя се
получавам
полу̀ча
# Lines containing two or more words in Cyrillic without counting the particle се are imported
# after the user enters a translation as an **expression**
нещо за ядене?
# In lines containing one equal sign containing a word or many words in cyrillic in the first
# column contains the word(s) to import while the second column contains the translation from
# user.
# Format:
# word to import in Cyrillic = translation
# If there is only one word, it is imported with the type from the gramatical dictionary.
# If there are many words in Cyrillic, they are imported as an expression
жестовете = the gestures
изразяват емоцият = express emotion
прибирам се = getting back home.
прибирам = put/collect the objects in their places
# In lines containing two equal sings, the last column indicates the type of the word
# Format:
# word to import in Cyrillic = translation = word type
# Word type can be one of the following:
# expression
# abbreviation
# adverb
# conjunction
# geographical
# idiom
# interjection
# math
# name_bg-place
# name_bg-various
# name_capital
# name_city
# name_country
# name_popular
# name_various
# noun_plurale-tantum
# numeral
# particle
# phrase
# plural
# prefix
# preposition
# suffix
Къде мога да го заредя? = Where can I charge it? = expression
боя за коза = color the hair = expression
# Errors:
# If a line has a wrong format, for example, it only has one word with Latin letters, a comment is written to the output file and the line is output unchanged.
# Imported lines are not included in the output file
Montenegro
Croacia
Later you can import them using:
python start.py --input-file /home/arobirosa/no_backup/bulgarian-learn/20240226newWords1.txt --output-file /home/arobirosa/no_backup/bulgarian-learn/20240226newWords2.txt
The flash card creator will ask you for any missing translation and write any warnings or errors into the output file. Later you can correct 20240226newWords2.txt and import that file until there aren't any errors:
python start.py --input-file /home/arobirosa/no_backup/bulgarian-learn/20240226newWords2.txt --output-file /home/arobirosa/no_backup/bulgarian-learn/20240226newWords3.txt
This mode is not very useful. You can add one word by calling the flash creator with:
python start.py --word тоя
Where тоя is the word to import. Optionally you can add the parameter "--other-word-type expression" if you want to overwrite the standard type stored in the grammatical dictionary.