Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

[feature request] Mark target word in sentence #28

Closed
HelenFoster opened this issue Dec 31, 2016 · 7 comments
Closed

[feature request] Mark target word in sentence #28

HelenFoster opened this issue Dec 31, 2016 · 7 comments

Comments

@HelenFoster
Copy link

HelenFoster commented Dec 31, 2016

Hi, in this thread, people are talking about automatically finding and marking the target word in the sentence, for cards that are already made.
http://forum.koohii.com/thread-14276.html

But when Yomichan is making new cards, it already knows exactly where the target word is in the sentence, so would be able to mark it without any guessing.

I'd like to suggest using <span class="targetword"> or similar, so the appearance is defined in the card CSS, and people can change their mind later about how and whether to display this marking.

@HelenFoster
Copy link
Author

I may be wrong about using spans, as it's invisible in the Anki edit boxes.

@FooSoft
Copy link
Owner

FooSoft commented Dec 31, 2016

Maybe another way to go would be to splice the sentence into {sentence-before}, {sentence-target}, and {sentence-after} tags. Users could then do whatever they wanted to decorate the different parts of the sentence.

@HelenFoster
Copy link
Author

Using 3 fields is kind of messy, but probably the easiest to understand.

As xtreme1 just pointed out on the forum, using <b> tags still allows for the possibility of overriding the appearance with CSS. Bad but effective.

@FooSoft
Copy link
Owner

FooSoft commented Mar 29, 2017

Fixed in 1.1.9

@FooSoft FooSoft closed this as completed Mar 29, 2017
@morning-paradigm
Copy link

morning-paradigm commented Jul 3, 2021

Sorry for reviving an old issue, but I don't see how this is fixed.
I've just checked the {sentence} field in HTML editor, it's just plaintext, no <b> tags, nothing. Is there some option I'm missing?

@toasted-nutbread
Copy link
Collaborator

{cloze-prefix}<b>{cloze-body}</b>{cloze-suffix}

@morning-paradigm
Copy link

Oh, I see. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants