Make it possible also to browse cards in preview format
I am re-pasting that guy's old idea, which Peter Bienstman did not answer correctly as to what he intended probably.
How does it look to you if i go in browse cards, and i have, for example
The <a href="http://www.w3.org/html/wg/drafts/html/master/semantics.html#the-html-element">html</a> element [root]
While in a program like anki i have
The html element (while HTML is underlined, as a link clickable)
I liked the feature that it has an integrated browser, but thanks to this i must go back to Anki, i cant browse Questions properly right now, with all the HTML format there. And No, I don't want to preview it. I want to browse cards and be able to read the question without HTML markup.
Mnemosyne wins big time due to its simplicity, but without such feature i cannot convert from Anki to you, I won't be re-making all my decks sadly.
-
2.3.6 not longer strips html formatting but renders them, so I'm closing this issue.
If there is still demand for making links clickable in the browser, please open a new request, but do note that I tried to implement this, but this seems very difficult to do in a way which does not slow down the browser considerably...
-
There seem to be 2 different topics here:
- the idea of links being clickable in the card browser
- the idea of stripping html tagsImplementing at least the second part is certainly possible, but I'm worried a bit about the speed impact on the card browser. Right now, all of this is handled natively in C++ by Qt, but if I want to customise things, I need to implement this in Python, which could affect performance.
-
ficion commented
This would be a really useful feature.
Some HTML tags do work this way (<b> and <i>, but strangely not <strong> and <em>) and it would be of help if it were the same for other formatting tags like <strong>, <em>, <a>, <u>, <cite>, <s> or <q>.
Other tags that are harder to implement on the list like <br>, <ruby> (along with <rt>, <rb>, <rp>, etc), <mark>, <small>, <big>, <sub>, <sup> would benefit from just being removed from the preview (eg. "foo <mark>bar</mark> baz" → "foo bar baz").
The <span> (and even other obscure tags like <var>, <samp> and <kbd>) tag could also be removed from the preview, though I don't really know why would it be used in the cards in the first place.While it does make perfect sense to keep the markup with other tags (<img>, <hr>, <video>, <audio>, <$>, <$$>, etc), it's distracting in most other cases. Even if complex formatting can't be accomplished easily in the preview of the list, at least making them so they don't appear (as it already happens with the <b> and <i> tags) would be very nice.
--
In my particular case, I make use of the <ruby>, <rb> and <rt> tags, which often get annoying on the card browser.
For example, if I wanted to input 振り仮名 (furigana, a.k.a. ruby text, in Japanese) and I wanted it to show up like this (http://i.imgur.com/F6dTGO8.png) when I'm reviewing, it'd be nice to be able to input something like:
<ruby lang=ja>振<rp>(<rt>ふ<rp>)</rp><rb>り<rt></rt>仮名<rp>(<rt>がな<rp>)</ruby>
(one single <ruby> tag)
or
<ruby lang=ja>振<rp>(<rt>ふ<rp>)</ruby>り<ruby lang=ja>仮名<rp>(<rt>がな<rp>)</ruby>
(two <ruby> tags)and it appearing as
振(ふ)り仮名(がな)
on the card browser list (basically, hide the tags and show it as a browser that doesn't support ruby tags).
(Please note that there's more than one way to mark-up this word. For example:
<ruby><rb>振<rb>り<rb>仮名</rb><rt>ふ<rt><rt>がな</ruby>
here, all the <rb> tags go first and then the <rt> tags follow. This doesn't work in Mnemosyne (works on Firefox) and it's impossible to make it look good on nonsupporting engines anyway, as there is no way to specify fallback (which are specified with <rp> tags in the other examples).
Also note that the mark-up I showed above could look way simpler
<ruby>振<rt>ふ</rt>り<rb>仮名<rt>がな</ruby>
or
<ruby>振<rt>ふ</ruby>り<ruby>仮名<rt>がな</ruby>and it would work nicely on supporting engines (including Mnemosyne), but old browsers (and probably the card browser list, if this is implemented) would end up displaying
振ふり仮名がな (fufuriganagana)
(basically, the reading along the main text, without separation)which is arguably worse than just displaying the mark-up. )
I _really_ hope you read this and consider it, as it would be very very useful to me, and probably other people too.
Sorry about any grammatical mistakes.