-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTypedTextImporterSample.txt
98 lines (81 loc) · 3.58 KB
/
TypedTextImporterSample.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Comments are allowed anywhere and start with '#'.
# Trailing whitespace is discarded from all lines.
# Empty lines are skipped unless we're in the middle of a fact.
# "st: " introduces space-separated tags that apply to all facts in the file
# You could add them at import, but I prefer to do it here.
st: ttd.2010-04-26T1000 ttx.cvs.L2
###############################
# "m: " names a model to be used for the facts that follow.
# The name must match Settings->Deck Properties->Models & Priorities->General & Fields->General->Name
m: Acronyms etc
# I find it useful to list the fields in the model.
# contraction, expansion, context, mnemonic, source
# Once a model is set, a non-blank line begins a fact.
PDGF # this will be assigned to the first field of the model
platelet-derived growth factor # and this to the second, etc
atheroma pathogenesis
. # a dot marks the end of the fact
# You don't necessarily have to give values for all fields.
# Anki might complain though if you miss one marked "prevent empty entries".
# This fact omits "context", for instance - an option field in this model.
CETP
cholesterol ester transfer protein
.
###############################
# Switch to a new model.
# The importer will add all facts for the previous model at this point (I hope to fix this one day).
# The implication is that a parse error will cause a partial import.
m: 1One-term definition
# term, definition, context, mnemonic, source
# This fact has no context or mnemonic, but it does have a source, so we need to have the empty lines.
# I'd normally use a comment to explicitly say they're empty, but that'd complicate this example.
xanthoma
a deposition of yellowish cholesterol-rich material in tendons and other body parts
http://www.nlm.nih.gov/medlineplus/ency/article/001447.htm
.
# Fields are technically raw HTML, so as a contrived example you could say
# "macrophage" as "mɸ" with an entity reference. Let's also colour something blue.
foam cell
a macrophage (mφ) or <span style="color:blue;">smooth muscle cell</span> which has phagocytosed LDL and forms part of an atheroma
.
###############################
m: Palindromic
# east, west, context, mnemonic, source
# You can add a tag to just one fact by putting "t: tag1 tag2 ..." anywhere inside:
Which serum cholesterol type is the best predictor of coronary disease?
What is LDL a good predictor for?
t: clinicaltests # like this
.
###############################
m: One way
# question, answer, context, mnemonic, source
# You can also include lists in YAML format. They'll get converted to HTML lists.
# A list element of "- t: some text" will break the list, include "some text" and restart it.
# A list element of "- I forgot this was YAML:" (trailing colon) will just ignore the ':'
# That's only noteworthy because YAML interprets it as a hash.
List the conditions in "Virchow's triad" of thrombosis risk.
---
- vessel wall changes (esp. atheroma)
- flow changes (esp. turbulent)
- blood composition changes (esp. platelets, fibrinogen)
...
.
# You can include multiple lines using Perlish "here document" format:
# <<end
# first line
# second line
# all into one field
# end
# next field
# or with backticks:
# `first line
# second line
# all into one field`
# next field
# The Perl-eqsue token __END__ ceases the import, so you can leave crap at the end.
__END__
# Not sure about this one. See http://content.onlinejacc.org/content/vol43/issue5/images/large/3016504.717.gr1.jpeg
What role does LCAT play in lipid metabolism?
It converts HDL free cholesterol into HDL cholesterol esters during reverse cholesterol transport.
.
# $Id$