150 |
log = log.replace("\n",'') # MetaPost (mpost) splits lines awkwardly in the log. |
log = log.replace("\n",'') # MetaPost (mpost) splits lines awkwardly in the log. |
151 |
|
|
152 |
# Grep all linked areas from log file. |
# Grep all linked areas from log file. |
153 |
for link in re.findall('LINKRECT\((.*?)\)', log): |
for link in re.findall('\"LINKRECT\((.*?)\)\"', log): |
154 |
els = link.split(',') |
els = link.split(',') |
155 |
if els[0] != '"bbox"': return 1 |
if els[0] != '"bbox"': return 1 |
156 |
|
|
166 |
bbox = None |
bbox = None |
167 |
|
|
168 |
# Grep all linked areas from log file. |
# Grep all linked areas from log file. |
169 |
for link in re.findall('LINKRECT\((.*?)\)', log): |
for link in re.findall('\"LINKRECT\((.*?)\)\"', log): |
170 |
els = link.split(',') |
els = link.split(',') |
171 |
if els[0] == '"bbox"': bbox = els[2:len(els)] |
if els[0] == '"bbox"': bbox = els[2:len(els)] |
172 |
else: links.append(MPLink(els)) |
else: links.append(MPLink(els)) |
199 |
log = log.replace("\n",'') # MetaPost (mpost) splits lines awkwardly in the log. |
log = log.replace("\n",'') # MetaPost (mpost) splits lines awkwardly in the log. |
200 |
|
|
201 |
# Grep all linked areas from log file. |
# Grep all linked areas from log file. |
202 |
for link in re.findall('LINKRECT\((.*?)\)', log): |
for link in re.findall('\"LINKRECT\((.*?)\)\"', log): |
203 |
els = link.split(',') |
els = link.split(',') |
204 |
if els[0] != '"bbox"': targets.append(MPLink(els).target) |
if els[0] != '"bbox"': targets.append(MPLink(els).target) |
205 |
|
|