jcklie / anki-maobi

máobĭ (毛笔) is an Anki add-on to create cards with writing quizzes for Hanzi (Chinese characters)
MIT License
47 stars 7 forks source link

Ignore other language? #46

Open khonkhortisan opened 2 years ago

khonkhortisan commented 2 years ago

{{^Reading}}<style>p{display:none}</style>{{/Reading}} is a workaround to hide the warning "Maobi encountered an error: Field 'Hanzi' was empty!" for spanish subs2srs cards. What's the right way to do this?

jcklie commented 2 years ago

You should normally only have Maobi activated for cards types that actually have the field and have the field filled. How exactly do you get the error?

khonkhortisan commented 2 years ago

I have chinese subs2srs cards from Totoro/The Incredibles/Ponyo at https://www.chinese-forums.com/forums/topic/52517-subs2srs-anki-deck-index/ and spanish subs2srs cards from El Internado at https://ankiweb.net/shared/info/433234316

The fields are SequenceMarker Audio Snapshot Video Hanzi Meaning Reading Notes 2LeadingAudio 2LeadingSnapshot 2LeadingVideo 2LeadingExpression 2LeadingMeaning 1LeadingAudio 1LeadingSnapshot 1LeadingVideo 1LeadingExpression 1LeadingMeaning 1TrailingAudio 1TrailingSnapshot 1TrailingVideo 1TrailingExpression 1TrailingMeaning 2TrailingAudio 2TrailingSnapshot 2TrailingVideo 2TrailingExpression 2TrailingMeaning MorphMan_FocusMorph Ruby "CEDICT dictionary entries"

tags are: El_Internado_S01E01_1 l::es source::https://ankiweb.net/shared/info/433234316 mm_fresh mm_tooShort l::zh l::zh-en Movie Ponyo sentence Simplified source::https://www.chinese-forums.com/forums/topic/52517-subs2srs-anki-deck-index/ mm_comprehension l::zh l::zh-en Movie sentence Simplified source::https://www.chinese-forums.com/forums/topic/52517-subs2srs-anki-deck-index/ The_Incredibles Traditional mm_fresh l::zh l::zh-en Movie sentence Simplified source::https://www.chinese-forums.com/forums/topic/52517-subs2srs-anki-deck-index/ Totoro mm_fresh

MorphMan uses both note type and tags to sort by language (and I keep them in separate decks so I don't have to finish one language to get to the other) imagen Maobi goes by deck, field, card imagen oh duh I can just make the deck more specific to ignore the spanish subs2srs cards