html anki编辑器,Add HTML Table

Add HTML Table

0.02MB. Updated 2013-08-16. Only supports Anki 2.0.x.

Description

This add-on basically adds an html table in current note

Download

As add-ons are programs downloaded from the internet, they are

potentially

malicious. You should only download add-ons you trust.

This add-on previously supported Anki 2.0. You can

download the last version supporting

2.0 here. As Anki 2.0 has

been discontinued, no support is available for this version.

Reviews

d0cec1d6261da6d3d51b5200f7eb5052.png on

1464825600

impovements

I'd like to contact the creator for an update, but there is no contact information here

@Add lines between cells:

you should do that through CSS:

- focus any input field

- click button "Cards..." (shortcut: Ctrl + L)

- add your CSS in the middle box.

something like this should work

table td

{

border:solid, border-width:1px;

padding:10px

border-collapse:collapse

}

@ focus & two cols/lines:

- go to:

def on_html_table_clicked(self):

- AFTER

form.setupUi(d)

- Insert:

# set initial values

form.spinBox.setValue(2)

form.spinBox.setValue(2)

# make the first box be selected by default

form.spinBox.selectAll()

form.spinBox.setFocus()

d0cec1d6261da6d3d51b5200f7eb5052.png on

1408665600

Change dialog box to English & Table to Lines

I believe this is an excellent addon. I made the following changes to the script to make the dialog box in English and the table to have borders. Please note that indents are important.

(1) To change the dialog box to only have English Words

Go to the following file:

addons\html_table_addon\forms\setupadd.py"

Replace the following:

def retranslateUi(self, Dialog):

Dialog.setWindowTitle(_("Configurar tabela"))

self.label_2.setText(_("Colunas"))

self.label.setText(_("Linhas"))

self.checkBox.setText(_("Linha de Cabecalho"))

with:

def retranslateUi(self, Dialog):

Dialog.setWindowTitle(_("Table Setup"))

self.label.setText(_("Rows"))

self.label_2.setText(_("Columns"))

self.checkBox.setText(_("Column Headings"))

(2) To add borders to the table, go to the following file:

Anki\addons\html_table_addon\html_table_addon.py"

change the following:

# monta a tabela

h_table = "

to:

# monta a tabela

h_table = "

d0cec1d6261da6d3d51b5200f7eb5052.png on

1403222400

Two slightly odd features

This does what it's supposed to and will probably be useful for those who frequently add tables to their cards (I use cloze deletion on them frequently and have previously added them by copying and pasting existing cards).

Two notes:

1) The interface is in Portuguese. This isn't a practical issue since it's quite obvious what the controls are for, but it looks kind of odd to have a Portuguese dialog box in my English Anki.

2) The tables don't have any borders. Some people might like this, but I find it makes it rather difficult to edit the table when you can't see the edges. Fortunately this is easy to customize; just edit Anki/addons/html_table_addon/html_table_addon.py line 127 to contain some border/style information. (If what you add includes double quotation marks, you need to escape them with \".)

To the reviewer with the title "Question on Add HTML Table add-on": Those look like curly quotes, while you need straight quotes for Python to understand it. You can copy one of the ones that's already there to make sure it works right.

d0cec1d6261da6d3d51b5200f7eb5052.png on

1391731200

Question on Add HTML Table add-on

This is useful, but like the last reviewer I prefer visible borders between cells.

Unlike the last reviewer, I haven't been able to add border/style info to line 127 of the file at Anki/addons/html_table_addon/html_table_addon.py have failed, even though I escaped the double-quotes with \" as suggested.

Original code: h_table = "

I tried: h_table = "

Error message: EOL while scanning string literal

Suggestions?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值