1 | #!/usr/bin/env python |
---|
2 | # -*- coding: iso-8859-1 -*- |
---|
3 | |
---|
4 | __docformat__ = "restructuredtext en" |
---|
5 | __revision__ = "$Id$" |
---|
6 | |
---|
7 | """ |
---|
8 | =========================== |
---|
9 | define_loceanaffectation.py |
---|
10 | =========================== |
---|
11 | |
---|
12 | DESCRIPTION |
---|
13 | =========== |
---|
14 | |
---|
15 | define affectation |
---|
16 | |
---|
17 | SEE ALSO |
---|
18 | ======== |
---|
19 | |
---|
20 | EXAMPLES |
---|
21 | ======== |
---|
22 | |
---|
23 | :: |
---|
24 | |
---|
25 | define_loceanaffectation.py |
---|
26 | |
---|
27 | |
---|
28 | TODO |
---|
29 | ==== |
---|
30 | |
---|
31 | test |
---|
32 | |
---|
33 | code administration |
---|
34 | |
---|
35 | coding rules (pylint) |
---|
36 | |
---|
37 | verbose |
---|
38 | |
---|
39 | EVOLUTIONS |
---|
40 | ========== |
---|
41 | |
---|
42 | $Id$ |
---|
43 | |
---|
44 | $URL$ |
---|
45 | |
---|
46 | - fplod 20120427 |
---|
47 | |
---|
48 | * header |
---|
49 | |
---|
50 | """ |
---|
51 | |
---|
52 | def define_loceanaffectation(): |
---|
53 | """define affectation for : |
---|
54 | - search in bibtex file (in loceanaffectation field) |
---|
55 | - give a element of HTML filename (no diacritical and no punctation) |
---|
56 | |
---|
57 | TODO : |
---|
58 | automation of no diacritical and no punctation transformation |
---|
59 | |
---|
60 | dictionnary instead of list |
---|
61 | """ |
---|
62 | affectation_bibtool = [] |
---|
63 | affectation_title = [] |
---|
64 | |
---|
65 | affectation_bibtool.append("mnhn") |
---|
66 | affectation_title.append("mnhn") |
---|
67 | affectation_bibtool.append("cnrs") |
---|
68 | affectation_title.append("cnrs") |
---|
69 | affectation_bibtool.append("ird") |
---|
70 | affectation_title.append("ird") |
---|
71 | affectation_bibtool.append("upmc") |
---|
72 | affectation_title.append("upmc") |
---|
73 | affectation_bibtool.append("uvsq") |
---|
74 | affectation_title.append("uvsq") |
---|
75 | |
---|
76 | return affectation_title, affectation_bibtool |
---|
77 | |
---|
78 | |
---|
79 | # Run main, if called from the command line |
---|
80 | if __name__ == '__main__': |
---|
81 | title, bibtool = define_loceanaffectation() |
---|
82 | print(' title : %s , bibtool : %s' % (title,bibtool)) |
---|
83 | |
---|
84 | |
---|