jscholes / codex Goto Github PK
View Code? Open in Web Editor NEWAccessible eBook conversion and DRM removal
Home Page: http://jscholes.net/projects/codex
License: GNU General Public License v3.0
Accessible eBook conversion and DRM removal
Home Page: http://jscholes.net/projects/codex
License: GNU General Public License v3.0
I'm a Linux user running Windows 10 in a VM in part so I can use Codex. Unfortunately, launching Codex fails because msvcr100.dll can't be found.
Google led me to the Visual C redistributable runtime, which I installed just in case that was the issue. Nothing changed. I then placed c:\windows\system32\msvcr100.dll in the Codex app directory, which gave me a runtime error with an obscure hex code.
I'm not really a Windows person, so I don't know if there's an obvious fix, or if having the hex code in the runtime error would help. I can try getting it to you if so--I don't have cut-and-paste working between the VM and host at the moment, which is why I haven't included it directly.
Overall the Win10 installation seems stable and hasn't given me any other issues, so I'm wondering if perhaps I need a specific version of msvcr100.dll installed? Again, I'm not a Windows person, but I recall having at least half a dozen installed at one point. I don't know if each of those was actually in use, or if the older versions were just artifacts of the package installation system.
This is a brand new installation as of yesterday onto a blank VM drive, with all updates applied.
Thanks for your help.
It looks like the jscholes.net website is down so we can't get access to the pre build versions.
At present, errors are raised when a conversion is added to the queue. But given the new intended workflow whereby options are chosen per conversion, this doesn't make much sense. For example:
Hi,
recently I instaled a codex to 64-bit w10 machine. when I tried to convert some files, a codex has shown an error. a log and source file is attached. as I understand, there can be unicode error?
thx.
regards, Jožef
codex error.zip
Hi,
as title say, is it possible to add an option to retain an oreginal file name. it will help me to organise my collection.
thanks.
Hi James, For the benefit of Braille readers, would you mind including the --unsmarten-punctuation option. For speech users it makes no difference whatsoever, but for those of use who use Braille notetakers to read ebooks, smart punctuation is translated as garbage. Using the option manually in Calibre solves the problem. Great program!
Occasionally, when converting an unprotected PDF file, the calibre DeDRM plug-in will report a failure to remove the non-existent DRM. Codex currently detects this and subsequently adds the PDF to the failed conversions list, even though it could probably be converted successfully.
As preparation for some upcoming changes (including the necessity to specify output options on a per-input-file basis), the main window should be cleaned up to minimise the number of tab-stops. Specifically:
To facilitate different conversion backends which can accept multiple input formats and produce multiple output ones, conversion options must be stored per file. This includes the output format, destination directory and filename, any additional preferences such as calibre options, etc.
The below subclass will give the button the necessary accessible states. Additional code needs to be implemented to toggle from collapsed to expanded, and it is yet to be determined whether any accessibility events need to be fired after changing the state. Ultimately this should be encapsulated as its own custom widget.
class DisclosureButtonAccessible(wx.Accessible):
def GetState(self, childId):
state = wx.ACC_STATE_SYSTEM_COLLAPSED|wx.ACC_STATE_SYSTEM_FOCUSABLE
if self.GetWindow().HasFocus():
state = state|wx.ACC_STATE_SYSTEM_FOCUSED
return (wx.ACC_OK, state)
aButton = wx.Button(...)
aButtonA11y = DisclosureButtonAccessible()
aButton.SetAccessible(aButtonA11y)
As changes are made to the way Codex works, the command line interface will undoubtedly change with it. In addition, when multiple conversion backends are supported it may no longer be logical to present the same in-shell menu options as are currently present. In those circumstances, there must be a reliable way of forcing the shell integration to be refreshed upon startup.
I am running both the latest Windows 10, the latest Codex, and the 1.24 iteration of the Kindle software (removed 1.25 and re-installed 1.24). I got errors when trying to convert files on 56 of 57 files (only the singular .mobi file I have actually converted properly. From the logs, it appears that there are errors in Python code,though they look more like programmatic errors rather than something that's user generated. I'll attach the log here as well so that you can see it. Advice would be appreciated. Thanks.
codex2.log
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.