-
Notifications
You must be signed in to change notification settings - Fork 17
/
linkimages.py
30 lines (25 loc) · 864 Bytes
/
linkimages.py
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
name2alt = {
'systemc': "[System C: putting the 'hard' in hardware design]",
'fqa': "[C++ FQA Lite]",
'defective': "[Defective C++]",
'not-crippled': "[This site is not crippled by C++]",
'not-entirely': "[This site is not entirely crippled by C++]",
'overload': "[C::operator++(int): invalid overload]",
'static': "[C++ gives me static]",
'operator': "[operator<< is not my friend]",
}
name2alt = {
'cat': "[Cat++, a superset of cat]",
}
for k,v in name2alt.items():
s = '''<a href="http://yosefk.com/c++fqa">
<img src="http://yosefk.com/c++fqa/images/%s.png"
alt="%s" border=0>
</a>'''%(k,v)
print "`%s`"%s
print "@\n%s\n@"%s.replace('/','\\/')
print
#<a href="http://yosefk.com/c++fqa">
#<img src="http://yosefk.com/c++fqa/images/systemc.png"
# alt="[System C: putting the 'hard' in hardware design]" border=0>
#</a>