mortii / anki-morphs

A MorphMan fork rebuilt from the ground up with a focus on simplicity, performance, and a codebase with minimal technical debt.
https://mortii.github.io/anki-morphs/
Mozilla Public License 2.0
55 stars 8 forks source link

Multiple Field Analysis Support #82

Closed HQYang1979 closed 9 months ago

HQYang1979 commented 9 months ago

I know we've discussed this, but still I am writing to ask to support multiple field analysis.

I've got Vocabulary card and Sentence card (Subs2srs), a vocab and a sentence will not be on the same field, but they need to be sorted.

mortii commented 9 months ago

Do the Vocabulary cards and Sentence cards have the same note type?

HQYang1979 commented 9 months ago

Do the Vocabulary cards and Sentence cards have the same note type?

Yes, same note type.

This is my vocab card: image This is my sentence card: image And then I will merge both of them using AJT Merge Note: image To be: image

Vilhelm-Ian commented 9 months ago

@HQYang1979 how would you want the cards to be sorted. If you have vocab cards and the same vocab in the sentence card. Then the addon would only show you vocab cards since they are shorter.

HQYang1979 commented 9 months ago

@HQYang1979 how would you want the cards to be sorted. If you have vocab cards and the same vocab in the sentence card. Then the addon would only show you vocab cards since they are shorter.

That is fine, it is how morphman did it. I can always press L if I need to find another card of the same morph.

But I wonder how you would do the highlight....

Vilhelm-Ian commented 9 months ago

@HQYang1979 I personally don't use highlighting the useful part of the highlighting is telling which one is the unknown morph. What I do is I add on the back side I add {{Unknown_Morphs}}. Maybe that will help you.

Also what about the part where yoou won't ever see cards with sentences unless you press L. You can do the same thing with having different note types.

HQYang1979 commented 9 months ago

@HQYang1979 I personally don't use highlighting the useful part of the highlighting is telling which one is the unknown morph. What I do is I add on the back side I add {{Unknown_Morphs}}. Maybe that will help you.>

This is great idea, I never thought about it! One thing bugging me is Ankimorph generate lots of html code in the field makes my 1M card collection hugely bulky. And I don't know how to get rid of them, maybe have to use find and replace. image

Also what about the part where yoou won't ever see cards with sentences unless you press L. You can do the same thing with having different note types. >

And I don't know L can also list other card types with the same morph. I make only one card type for one language. I'll try this one though.

Thank you, great advices!

Vilhelm-Ian commented 9 months ago

@HQYang1979 to get rid of the HTML use this in your find and replace <[^>]*> Be sure to select the correct note type

HQYang1979 commented 9 months ago

@HQYang1979 to get rid of the HTML use this in your find and replace <[^>]*> Be sure to select the correct note type

Thank you so much. I am lousy at regex

Vilhelm-Ian commented 9 months ago

@HQYang1979 did it work?

HQYang1979 commented 9 months ago

@HQYang1979 did it work?

Yes, it works excelent!

mortii commented 9 months ago

This is great idea, I never thought about it! One thing bugging me is Ankimorph generate lots of html code in the field makes my 1M card collection hugely bulky. And I don't know how to get rid of them, maybe have to use find and replace. image

I have a bad feeling that you are might be using it wrong....

Are you using a separate field on your card, specifically made to hold the highlighted text? Like this:

Screenshot from 2023-12-01 17-25-45

The highlighted-version field simply keeps the duplicate version of my Japanese field, so there should never be any reason to search through the highlighted-version field, just search through the Japanese field instead.

HQYang1979 commented 9 months ago

The highlighted-version field simply keeps the duplicate version of my Japanese field, so there should never be any reason to search through the highlighted-version field, just search through the Japanese field instead.

I do have separate Japanese and Highlighted version fields. I have no idea why the Japanese field got the html code and I cannot reproduce it, neither do I want to though.

mortii commented 9 months ago

@HQYang1979 supporting multiple fields is just not practical at all, so it won't be implemented, sorry. Hopefully you can find a workaround.

github-actions[bot] commented 6 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.