Option to Convert Without Frame
Closed this issue · 10 comments
Converting from Anki to SM with frame makes it possible to render in SM exactly as shown in Anki; the downside is that you can longer apply template font styling to cards. Being able to convert without frame would be useful for cards that don't need to look exactly as they do in Anki.
Done! Added it on a per deck basis as of commit
I'm getting an error when I try to convert this with no IE frame.
This is the deck I tried to convert (cut down):
voracious cards.zip
Hopefully it should work now, also beware that not lifting IE restrictions is not going to make the images render within the html
if you mean the square border then that is a section element created by the script to contain the question/answer's contents and labels the section as .card
class in cases there is some styling involved. Both the question and the answer field share the same code
if ALLOW_IE_COMPAT:
a = insertHtmlAt(a, liftIERestriction, 'head', 0)
if you would rather have the section element removed then i could do that
I am not 100% sure I understand you but my expectation was that when I did the "no IE frame" option there'd be no IE frame for both question + answer while it looks like it's remaining for the question but no the answer when disabled
I just found that that's a problem, I tried to change style on answer but it looks like the script part makes it not work unless I click and go to editing mode. Yeah, for IE frame free mode, it would be better to get rid of that so that supermemo styling applies fine.
<HTML><HEAD>
<SCRIPT>document.createElement("section");</SCRIPT>
<section class=card style="FONT-SIZE: 30px; HEIGHT: 100%; FONT-FAMILY: Noto Sans CJK JP Regular; WIDTH: 100%; COLOR: black; TEXT-ALIGN: center; MARGIN: 0px"></HEAD>
<BODY><FONT size=6>
<HR id=answer>
青空の中に浮かんでるみたいだ<BR><BR><BR><BR><RUBY><RB>青空</RB><RT>あおぞら</RT></RUBY>の<RUBY><RB>中</RB><RT>なか</RT></RUBY>に<RUBY><RB>浮</RB><RT>う</RT></RUBY>かんでるみたいだ22:19/ 24:32青空の中に浮かんでるみたいだ↩Subtitle Mode: Toggle HelpYahoo! goo 英辞郎 Jisho浮かぶJMdict (English)to float; to be suspended to rise to surface to come to mind; to have inspirati</FONT></section></BODY></HTML>
hopefully should work