Skip to content

Instantly share code, notes, and snippets.

@brownbat
brownbat / terms-to-anki.txt
Last active March 13, 2021 16:58
Guide to use Google Sheets to convert a list of terms using Simplified Chinese into Anki cards with separate columns for Traditional, Pinyin, and definitions.
Install the mandarin-cantonese-api:
http://api-docs.mandarincantonese.com/
This lets you use =PINYIN(...) as a formula
Then use the following formulas:
Column A:
original simplified list of terms / phrases
B:
CmdUtils.CreateCommand({
name: "linkify",
takes: {"words": noun_arb_text},
modifiers: {with: noun_arb_text},
/*
todo:
1) get clipboard for URL
2) make more natural languagey
*/
CmdUtils.CreateCommand({
name: "isgd",
author: {name: "Thomas Brownback", homepage: "http://thomasbrownback.com", blog: "http://theorybloc.com"},
thanks: {first: "Aza Raskin", foremost: "Aza Raskin", honorableMention: "geero.net", lastAmpBangLeast: "users like you"},
license: "PUBLIC DOMAIN: Any and all rights herein are hereby donated to the commons.",
description: "Shortens a URL using is.gd.",
help: "Replaces a selection with (or simply inserts) a shortened URL from is.gd.",
takes: {"<i>url to shorten</i>": noun_arb_text},
/*