anki

How to insert an image into Anki notes in latex format?

你说的曾经没有我的故事 提交于 2019-12-04 15:28:57
I am trying to create an Anki deck with, for example, a word on the front. Then I add the word with definitions on the back with a picture as well. But I am having trouble including graphics when there are already two fields (front text and back text). Here is an example note: \begin{note} \begin{field} \textbf{\large ruminate} \end{field} \begin{field} \textbf{\large ruminate} \begin{description} \item[verb] \hfill \\ chew the cuds \item[verb] \hfill \\ reflect deeply on a subject \end{description} \end{field} \end{note} This note works just dandy, but when I try to include a graphic (as

分享一个github项目,让anki的awesometts插件支持forvo音源

荒凉一梦 提交于 2019-12-04 06:45:37
  anki是背单词的利器,有丰富的插件,其中awesometts是最常用的插件之一,支持大量的音源网站和语言。   可惜的是,awesometts本身不支持 forvo 的音源,主要原因是forvo的api要收费。于是我抱着试试看的态度,谷歌了一把,终于在github上找到这个 项目 ,可以给awesometts添加forvo音源,api的费用估计作者自己掏了。      安装方法很简单,以2.0.52版本为例,将下图的文件和文件夹全部复制到anki的安装目录\addons\awesometts文件夹内,重启anki后就能看到awesometts中有forvo音源了。由于forvo的服务器在国外,可能有时候会下载音频失败,多试几次或者爬梯子。      不过最近发现个小麻烦,这样下载的音频都是在forvo上默认排名第一(根据母语会员的投票)。比如搜索日语“地方”这个单词,默认下载第1个发音,如果我觉得第2个发音比较清晰,似乎只能手工下载。    于是我想了个很简单的办法,只需稍微修改一下就能实现。大致思路就是照着这个forvo插件再做一个,只是变成默认下载第2个音频,然后在awesometts中选择就行了。如下图:   修改方法:   第一步,在awesometts的文件夹内修改__init__.py文件。 router = Router( services=Bundle(

Middle box centered variable width, left and right float directly attached

…衆ロ難τιáo~ 提交于 2019-12-02 13:38:16
I'm designing my own Anki-Flashcards for learning Japanese: I have three boxes of variable size in a line. The middle one should be centered and has a variable width. The boxes left and right shall be attached to the middle box. The three boxes as a group shall NOT be centered. I do NOT want them all the same size, neither the middle with a fixed size. I can not use JavaScript in the environment I am using. If necessary I can fix the width of the right box (its an icon), but the left and middle box are variable. I can achieve this using only the middle box and right box (see Fiddle ), but not

Shipping part of Python standard library

江枫思渺然 提交于 2019-12-02 12:57:30
How do I ship some standard modules from Python together with my code? I'm writing an add-on for Anki, for which I need Queue and threading modules from Python2.7 standard library. When I try launching Anki, I get ImportError: No module named Queue . I assume that is because Anki does not ship with full Python interpreter and if I am missing any standard modules, I am to bundle them myself. From Anki docs on addons : Standard Modules Anki ships with only the standard modules necessary to run the program - a full copy of Python is not included. For that reason, if you need to use a standard