Skip to content

Commit c68259f

Browse files
committed
Partial Fix of format for non journal entries like webpage
cut excess curly closing bracket modify journal py and title py copy print statements to main4 py comment out
1 parent e1753a6 commit c68259f

File tree

7 files changed

+280
-2
lines changed

7 files changed

+280
-2
lines changed

BibTex.bib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@ARTICLE{8288807,
22
author={},
3-
journal={ISO/IEC/IEEE 26512:2017(E)},
3+
journal={},
44
title={ISO/IEC/IEEE International Standard - Systems and software engineering - Requirements for acquirers and suppliers of information for users},
55
year={2017},
66
volume={},

BibTex9.bib

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@ARTICLE{8288807,
2+
author={},
3+
journal={ISO/IEC/IEEE 26512:2017(E)},
4+
title={ISO/IEC/IEEE International Standard - Systems and software engineering - Requirements for acquirers and suppliers of information for users},
5+
year={2017},
6+
volume={},
7+
number={},
8+
pages={1-47},
9+
keywords={IEEE Standards;IEC Standards;ISO Standards;Software engineering;Systems engineering and theory;Requirements engineering},
10+
doi={10.1109/IEEESTD.2017.8288807}}

lines/journal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def opener(f_name):
3131
starter=line
3232
line=line.lstrip('journal = {')
3333
line=line.rstrip('},\n')
34-
34+
line=line.rstrip(' ')
35+
line=line.rstrip('},')
3536
endline=line
3637
# print(endline)
38+
# print(len(endline))
3739
return endline

lines/title.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ def opener(f_name):
2828
line=line.lstrip('title = {')
2929
line=line.rstrip('},\n')
3030

31+
line=line.rstrip(' ')
32+
line=line.rstrip('},')
33+
34+
3135
endline=line
3236
# print(endline)
3337
return endline

main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,15 @@
9999

100100
reference = author + ' (' + year + ') ' + '\'' + title + '\'' + ',' + ' ' + journal + ',' + ' ' + volume + '(' + number + ')' + ' ' + 'pp. ' + pages + ', ' + 'available: ' + doi + ' / ' + url + ' [accessed ' + date + '].'
101101

102+
# print("title =", title)
103+
# print("journal", journal)
104+
# print("\ncheckpoint\n")
105+
# print(',')
106+
# print(' ')
107+
# print("volume = ", volume)
108+
# print('(')
109+
# print(number)
110+
# print("\ncheckpoint\n")
111+
112+
102113
print(reference)

main3.py

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
"""
2+
This file calls:
3+
- author
4+
- journal
5+
6+
function inside
7+
file
8+
for each
9+
"""
10+
11+
#_____________________________________
12+
13+
import count
14+
15+
# count.count()
16+
17+
# ____________________________________
18+
19+
import lines
20+
21+
from lines import author
22+
23+
author=author.author()
24+
25+
# ___________________________________
26+
27+
import lines
28+
29+
from lines import year
30+
31+
year=year.year()
32+
33+
# __________________________________
34+
35+
import lines
36+
37+
from lines import title
38+
39+
title=title.title()
40+
41+
# __________________________________
42+
43+
import lines
44+
45+
from lines import journal
46+
47+
journal=journal.journal()
48+
49+
# ___________________________________
50+
51+
import lines
52+
53+
from lines import volume
54+
55+
volume=volume.volume()
56+
57+
# __________________________________
58+
59+
import lines
60+
61+
from lines import number
62+
63+
number=number.number()
64+
65+
# __________________________________
66+
67+
import lines
68+
69+
from lines import pages
70+
71+
pages=pages.pages()
72+
73+
74+
# __________________________________
75+
76+
import lines
77+
78+
from lines import url
79+
80+
url=url.url()
81+
82+
83+
# __________________________________
84+
85+
import lines
86+
87+
from lines import doi
88+
89+
doi=doi.doi()
90+
91+
92+
# __________________________________
93+
94+
import date
95+
96+
date=date.date()
97+
98+
# __________________________________
99+
100+
reference = author + ' (' + year + ') ' + '\'' + title + '\'' + ',' + ' ' + '(' + number + ')' + ' ' + 'pp. ' + pages + ', ' + 'available: ' + doi + ' / ' + url + ' [accessed ' + date + '].'
101+
102+
# print("title =", title)
103+
# print("journal", journal)
104+
# print("\ncheckpoint\n")
105+
# print(',')
106+
# print(' ')
107+
# print("volume = ", volume)
108+
# print('(')
109+
# print(number)
110+
# print("\ncheckpoint\n")
111+
112+
113+
114+
print(reference)

main4.py

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
"""
2+
This file calls:
3+
- author
4+
- journal
5+
6+
function inside
7+
file
8+
for each
9+
"""
10+
11+
#_____________________________________
12+
13+
import count
14+
15+
# count.count()
16+
17+
# ____________________________________
18+
19+
import lines
20+
21+
from lines import author
22+
23+
author=author.author()
24+
25+
# ___________________________________
26+
27+
import lines
28+
29+
from lines import year
30+
31+
year=year.year()
32+
33+
# __________________________________
34+
35+
import lines
36+
37+
from lines import title
38+
39+
title=title.title()
40+
41+
# __________________________________
42+
43+
import lines
44+
45+
from lines import journal
46+
47+
journal=journal.journal()
48+
49+
# ___________________________________
50+
51+
import lines
52+
53+
from lines import volume
54+
55+
volume=volume.volume()
56+
57+
# __________________________________
58+
59+
import lines
60+
61+
from lines import number
62+
63+
number=number.number()
64+
65+
# __________________________________
66+
67+
import lines
68+
69+
from lines import pages
70+
71+
pages=pages.pages()
72+
73+
74+
# __________________________________
75+
76+
import lines
77+
78+
from lines import url
79+
80+
url=url.url()
81+
82+
83+
# __________________________________
84+
85+
import lines
86+
87+
from lines import doi
88+
89+
doi=doi.doi()
90+
91+
92+
# __________________________________
93+
94+
import date
95+
96+
date=date.date()
97+
98+
# __________________________________
99+
100+
reference = author + ' (' + year + ') ' + '\'' + title + '\'' + ',' + ' ' + journal + ',' + ' ' + volume + '(' + number + ')' + ' ' + 'pp. ' + pages + ', ' + 'available: ' + doi + ' / ' + url + ' [accessed ' + date + '].'
101+
102+
# print("author =", author)
103+
# print(' (')
104+
# print("year =", year )
105+
# print(') ')
106+
# print("checkpoint");
107+
# print('\'')
108+
print("title =", title)
109+
# print('\'')
110+
# print(',')
111+
# print(' ')
112+
# print("checkpoint");
113+
print("journal", journal)
114+
print("\ncheckpoint\n")
115+
print(',')
116+
print(' ')
117+
print("volume = ", volume)
118+
print('(')
119+
print(number)
120+
print("\ncheckpoint\n")
121+
# print(')')
122+
# print("checkpoint");
123+
# print(' ')
124+
# print('pp. ')
125+
# print("pages =",pages)
126+
# print(', ')
127+
# print('available: ')
128+
# print("checkpoint")
129+
# print("doi =", doi)
130+
# print(' / ')
131+
# print("url = ", url)
132+
# print(' [accessed ')
133+
# print("date =", date)
134+
# print('].')
135+
136+
137+
print(reference)

0 commit comments

Comments
 (0)