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