stenskjaer / lbp_print Goto Github PK
View Code? Open in Web Editor NEWSmall script for processing LombardPress compliant XML files into TeX and compile with Latex
Small script for processing LombardPress compliant XML files into TeX and compile with Latex
Make it possible to supply 1 or more local or remote sources for processing and run them together.
Should this include an option for collecting them in one tex? That would be nice.
Hi Michael,
I get the following output when installed and run as you instruct (Mac OS, Python 3.6):
~/Downloads/lbp_print(branch:master) » ./lbp_print.py pdf --scta http://scta.info/resource/lectio1
DEBUG: {'--help': False,
'--local': False,
'--output': None,
'--scta': True,
'--verbosity': None,
'--version': False,
'--xslt': None,
'--xslt-parameters': None,
'<expression-id>': 'http://scta.info/resource/lectio1',
'<file>': None,
'pdf': True,
'tex': False}
INFO: App initialized.
INFO: Logging initialized.
INFO: Remote resource initialized.
WARNING: The supplied download directory download does not exist. It will be created.
INFO: Downloading remote resource...
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect
server_hostname=server_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 401, in wrap_socket
_context=self, _session=session)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 808, in __init__
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1061, in do_handshake
self._sslobj.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 683, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./lbp_print.py", line 336, in <module>
transcription = RemoteTranscription(args["<expression-id>"])
File "./lbp_print.py", line 123, in __init__
self.file = self.__define_file()
File "./lbp_print.py", line 156, in __define_file
with urllib.request.urlopen(self.transcription_object.resource().file().file().geturl()) as response:
File "/Volumes/ElDuro/nivaca/Downloads/lbp_print/src/lbppy/lbppy/file.py", line 17, in file
response = urllib.request.urlopen(self.file_path)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>
(lbp_print) --
I have created an SSH key for Github and Bitbucket.
This should make it possible to only supply a config or build file describing the setup of the conversion and which files should be processed.
It should be possible to toggle use of empty lemmas.
This could give the user much better feedback in cases of invalid xml.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.