Kovid Goyal
64b56e4aec
Move hosting script to python 3
2020-05-15 09:09:23 +05:30
Kovid Goyal
28c7e43940
Fix #1860831 [Two Portuguese when to choose the language]( https://bugs.launchpad.net/calibre/+bug/1860831 )
2020-04-04 17:26:47 +05:30
Kovid Goyal
cb48dcb606
Add rapydscript tests to CI
2020-04-02 16:38:20 +05:30
Kovid Goyal
6c9c141c3e
Add a command to easily run rapydscript tests
2020-04-02 16:34:07 +05:30
Kovid Goyal
2cd43e0fcd
Fix #1869464 [Entries in context menu is not being translated]( https://bugs.launchpad.net/calibre/+bug/1869464 )
2020-03-28 13:47:35 +05:30
Kovid Goyal
53de96b18b
...
2020-03-27 11:19:51 +05:30
Kovid Goyal
8dd68d157d
ANother rsync invocation that needed compression method fixed
2020-03-17 09:00:12 +05:30
Kovid Goyal
1809676dba
Use -zz for rsync
2020-03-06 08:27:46 +05:30
Kovid Goyal
9864af035a
Use inverted name for ISO 639 names in preference
2020-02-26 22:17:15 +05:30
Kovid Goyal
1e07b48116
Checking of changelog needs python 3 now
2020-02-11 11:24:40 +05:30
Kovid Goyal
449672bab1
Make plugins_mirror.py more polyglot
2020-02-10 20:41:23 +05:30
Kovid Goyal
fc1803a800
Remove obsolete workarounds for buggy distro Qt packages
2020-02-04 08:45:03 +05:30
Kovid Goyal
e2b730b3b2
Fix building of headless on macOS
...
Apparently we can link against both themesuport private and font
database private as they both contain the same symbol
2020-02-04 08:40:54 +05:30
Kovid Goyal
d51fa29acd
Also generate ISO 639 POT file automatically from the db. Fixes #1860856 [String not found in Transifex]( https://bugs.launchpad.net/calibre/+bug/1860856 )
2020-01-26 14:29:28 +05:30
Kovid Goyal
5c8093e554
Installtion of deps on github Ubuntu broken again
2020-01-18 09:08:11 +05:30
Aimylios
5c795352c9
Allow excluding individual tests from test run
2020-01-17 21:54:25 +01:00
Kovid Goyal
231664e7ca
Move test location
2020-01-08 22:25:38 +05:30
Kovid Goyal
f0e6ead4c7
Better workaround for XXE in lxml
...
Instead of disabling resolution of all entities, only disable resolution
of entities from files
2020-01-08 22:03:38 +05:30
Kovid Goyal
f686647286
Command to vendor csslint
2020-01-08 21:01:59 +05:30
Kovid Goyal
e307caafe8
Generate locales.zip parent dir if needed
2020-01-07 21:33:17 +05:30
Kovid Goyal
746381d179
A few more etree.fromstring
2019-12-29 22:02:16 +05:30
Kovid Goyal
6de56e8f93
Compile changelog translations
2019-12-25 16:47:01 +05:30
Kovid Goyal
ff5039dd31
Split website and changelog translations
2019-12-25 09:58:58 +05:30
Kovid Goyal
5ef79c742a
Add support for sip5
2019-12-14 12:40:08 +05:30
Kovid Goyal
283dbdf392
Dont run update since it breaks on github CI
2019-12-13 18:09:23 +05:30
Kovid Goyal
edf231e3ff
Use a token for github
2019-12-12 10:04:36 +05:30
Kovid Goyal
281ddb8678
Make the name of the html syntax highlighter module more explicit
...
Avoids name collisions with the stdlib html module in python3
2019-12-03 10:45:42 +05:30
Kovid Goyal
9b777491ce
Dont show the useless --system-version option for hyphenation
2019-12-03 08:59:02 +05:30
Eli Schwartz
11d6b27ec7
setup: port over the hyphenation dictionary code to ReVendor()
...
This makes it automatically support being passed an alternative url, or
an extracted directory.
2019-12-02 21:05:51 -05:00
Eli Schwartz
a66e562b08
setup: refactor mathjax class into generic class for vendoring things
2019-12-02 21:05:51 -05:00
Kovid Goyal
b16b5535bf
Implement mapping of locales to dictionary names
2019-12-01 10:50:32 +05:30
Kovid Goyal
fd4db9e8ed
Make building the dictionaries tarfile reproducible
2019-11-30 21:20:40 +05:30
Kovid Goyal
8081805208
Dont rely on external tar to compress dictionaries
2019-11-30 21:06:37 +05:30
Kovid Goyal
5f46b06dc9
Generate a hash of the hyphenation dicts for cache updates
2019-11-30 20:50:06 +05:30
Kovid Goyal
2a8875f864
...
2019-11-30 20:40:25 +05:30
Kovid Goyal
5c1b69f5b9
Add hyphen dependency
2019-11-30 17:58:57 +05:30
Kovid Goyal
4a45f32357
Start work on libhyphen wrapper
2019-11-30 16:48:27 +05:30
Kovid Goyal
1c54eb1648
Code to fetch hyphenation dictionaries
2019-11-30 10:59:45 +05:30
Kovid Goyal
4feb684c89
Exclude improperly named entries from ISO-639-3
...
Fixes #1851909 [Some strange languages is shown in the list](https://bugs.launchpad.net/calibre/+bug/1851909 )
2019-11-09 13:46:46 +05:30
Eli Schwartz
0163b537dc
linux installer: fix python3 re.sub with mismatched str/bytes
...
This does not seem to have been a very commonly hit case, since it's
been broken for python3 since before 2014, but a user has just hit it
for the first time.
Fixes #1851873
2019-11-08 14:11:31 -05:00
Kovid Goyal
24baafdc87
Convenient way to build a dependency for all platforms
2019-11-03 08:52:53 +05:30
Kovid Goyal
aa6eaca0be
Code to auto-fix duplicated language name translations
2019-11-02 10:37:45 +05:30
Kovid Goyal
77af13c5f3
Update ISO 3166 database
2019-11-02 09:31:05 +05:30
Kovid Goyal
1b93d540b7
Update the ISO 639-3 language database
2019-11-02 09:21:28 +05:30
Eli Schwartz
1cbdabbbb7
linux install: make sure init_calibre.py is listed in calibre-uninstall
...
It is written raw, not via write_template, so it was never added to the
manifest. Therefore, it would remain behind when uninstalling calibre.
Also change the order in which steps are executed, in order to write the
env module -- and add it to the manifest -- before the uninstaller is
created, rather than after (which would be too late).
2019-10-29 20:19:22 -04:00
Eli Schwartz
6526c28bd6
check: cleanup file exclusions
...
Some of these files no longer exist due to being devendored.
BeautifulSoup.py is now something else entirely which is
calibre-specific code and deserves the right to be linted.
2019-10-28 16:10:00 -04:00
Kovid Goyal
fc7aee08df
Start work on fast html to json
2019-10-28 13:30:18 +05:30
Kovid Goyal
167cb89dc7
...
2019-10-28 08:08:00 +05:30
Kovid Goyal
9536ffe8cd
Merge branch 'pin-version' of https://github.com/widdix/calibre
2019-10-14 07:03:36 +05:30
Michael Wittig
f93bf9379e
fix
2019-10-13 19:15:32 +02:00
Michael Wittig
92c88b2637
Allow a user to specify the version that is installed
2019-10-13 18:48:46 +02:00
Kovid Goyal
fe673838ef
Apparently running upgrade is not possible
2019-10-13 10:02:35 +05:30
Kovid Goyal
fd20908dcd
Try running update/upgrade on Ubuntu CI VM in the hopes it will fix the libgl1 installation failure
2019-10-13 09:56:00 +05:30
Kovid Goyal
749460cbfc
Better fixes for publish pipeline issues
2019-10-04 07:35:09 +05:30
Kovid Goyal
857c2355bc
Ensure DISPLAY is in environ
2019-10-04 06:25:14 +05:30
Kovid Goyal
28b5ef8723
Also disable translations since it also crashes
2019-10-04 06:13:34 +05:30
Kovid Goyal
c178c78980
Dont build pot as part of publish as it crashes
2019-10-04 06:06:09 +05:30
Kovid Goyal
1c22993e00
Move outline creation into its own file
2019-10-03 16:51:33 +05:30
Kovid Goyal
9c07cc7e82
Use GitHub Actions rather than Azure Pipelines
2019-10-03 10:46:23 +05:30
Kovid Goyal
5196b29005
Notarize macOS builds
2019-09-18 18:55:50 +05:30
Kovid Goyal
61005add0d
Add support for run-local to calibre restart and run_calibre_debug
2019-09-13 10:28:26 +05:30
Kovid Goyal
4d9440a94c
Get rid of home grown multitail
...
Use the awesomeness that is kitty instead
2019-09-13 09:13:34 +05:30
Kovid Goyal
800880d891
Option to not sign installers
2019-09-13 09:13:34 +05:30
Kovid Goyal
f53a979da9
Forgot to change OS name in one place
2019-09-13 09:13:34 +05:30
Kovid Goyal
da4fc37684
Bump version number to beta level
2019-09-13 09:13:34 +05:30
Kovid Goyal
a3ac1900f6
Work on windows CI
2019-09-13 09:12:39 +05:30
Kovid Goyal
c4ef009bfb
Fix CI detection on azure pipelines
2019-09-13 09:12:38 +05:30
Kovid Goyal
0d4cdeea97
Ensure Qt plugins are loaded in macOS VM
2019-09-13 09:12:38 +05:30
Kovid Goyal
edbd56bbb1
Use fallback library path instead
2019-09-13 09:12:38 +05:30
Kovid Goyal
63539c1dc7
Set the library path for @rpath linked things
2019-09-13 09:12:38 +05:30
Kovid Goyal
987a869614
Disable webengine sandbox in macOS CI
2019-09-13 09:12:38 +05:30
Kovid Goyal
ff5e5f2743
Use proper path for macos SW
2019-09-13 09:12:38 +05:30
Kovid Goyal
7a9f6cf195
...
2019-09-13 09:12:38 +05:30
Kovid Goyal
915f9ad107
Use correct python executable name on macOS
2019-09-13 09:12:38 +05:30
Kovid Goyal
02d590180b
...
2019-09-13 09:12:37 +05:30
Kovid Goyal
c388500dfb
Work on CI
2019-09-13 09:12:37 +05:30
Kovid Goyal
a344028733
Command to export packages
2019-09-13 09:12:37 +05:30
Kovid Goyal
f52d529090
Command to build deps
2019-09-13 09:12:37 +05:30
Kovid Goyal
ac29ca24a7
Make extdev more robust against crashes of test command
2019-09-13 09:12:36 +05:30
Kovid Goyal
ab6b724835
COmmnad ot make testing extension modules easier
2019-09-13 09:12:36 +05:30
Kovid Goyal
7c108d4078
Port the installer build commands to use bypy
2019-09-13 09:12:36 +05:30
Kovid Goyal
be471a8cbe
Work on getting windows running
2019-09-13 09:12:35 +05:30
Kovid Goyal
46295bb17f
Get the hunspell wraper building correctly on all platforms
2019-09-13 09:12:35 +05:30
Kovid Goyal
22a1481bcd
De-vendor hunspell
2019-09-13 09:12:35 +05:30
Kovid Goyal
bf199d6bfa
Get podofo building on older compilers on linux
2019-09-13 09:12:33 +05:30
Kovid Goyal
0f02312390
De-dup images in the PDF
2019-09-13 09:12:26 +05:30
Kovid Goyal
227679985f
Implement imposing headers/footers onto their target pages
2019-09-13 09:12:25 +05:30
Kovid Goyal
d304e08ec1
Code to merge W arrays
2019-09-13 09:12:24 +05:30
Kovid Goyal
c4e3fda682
Code to list fonts in a PDF file
2019-09-13 09:12:22 +05:30
Kovid Goyal
7803f3de36
Rename viewer2 to viewer
2019-09-13 09:12:20 +05:30
Kovid Goyal
b5b0891421
Start work on porting the PDF output plugin to use web engine
2019-09-13 09:12:19 +05:30
Kovid Goyal
070ad5351e
Remove old viewer and coffeescript and viewer resources
...
Since the PDF output code is also going to be replaced, none
of this is required.
2019-09-13 09:12:17 +05:30
Kovid Goyal
6e14daac89
Infrastructure for loading viewer js
2019-09-13 09:12:12 +05:30
Kovid Goyal
59b9357c0c
Add tests for the new viewer cache
2019-09-13 09:12:11 +05:30
Kovid Goyal
561edbe1ea
Two-way syncing work again
2019-09-13 09:12:09 +05:30
Kovid Goyal
00a9d0f275
Migrate editor coffee script to rapydscript
2019-09-13 09:12:09 +05:30
Eli Schwartz
c161fbe54a
resources: bump mathjax version to 2.7.6
...
There is actually no real consequential change here, because the update
is a trivial bugfix that doesn't affect calibre's use, but let's do it
anyway because it is both simple and harmless.
2019-08-25 00:21:03 -04:00
Kovid Goyal
c5aeaa8c8a
Cleanup HTML metadata parsing
2019-08-12 10:10:50 +05:30
Eli Schwartz
d50a6ddc1b
use context managers to open files
2019-07-25 01:30:54 -04:00
Eli Schwartz
cba11fb969
unicode_check: do not try to check pyuic-generated files
2019-07-23 17:29:48 -04:00
Kovid Goyal
519a90abdf
Ensure we send a mimetype when upload to github
2019-07-12 09:21:01 +05:30
Bernhard M. Wiedemann
53298f87ff
Sort input file list
...
so that calibre/plugins/lzma_binding.so builds in a reproducible way
in spite of indeterministic filesystem readdir order
and http://bugs.python.org/issue30461
See https://reproducible-builds.org/ for why this is good.
2019-07-01 14:47:32 +02:00
Kovid Goyal
e804e48747
Start work on building calibre on windows
2019-06-19 10:06:54 +05:30
Kovid Goyal
3a688453ab
Go back to using git to fetch ephemeral translations
...
No significant speed difference and curl is failing on the macOS
Travis VM
2019-06-13 10:49:13 +05:30
Kovid Goyal
98ec15b970
Retry download on fail
2019-06-13 10:37:16 +05:30
Kovid Goyal
6acfcf12ef
Use a tarball based download when downloading ephemeral translations
2019-06-13 09:33:50 +05:30
Kovid Goyal
ed85704799
Undo the fudge for tanslations failing on macOS as it causes another test to fail
2019-06-11 16:14:15 +05:30
Kovid Goyal
edd44a559a
...
2019-06-11 15:15:12 +05:30
Kovid Goyal
152e823c41
Kobo driver: Add options to more precisely control the generation of cover images, to reduce size and enhance quality
...
Merge branch 'master' of https://github.com/NiLuJe/calibre
2019-06-11 15:14:26 +05:30
Kovid Goyal
3139dff9eb
Ignore weird failure when building website translation on Travis on macOS
2019-06-11 14:59:00 +05:30
Kovid Goyal
0f3b2e2329
Dont use win32com for adding to recent docs
2019-06-11 14:50:05 +05:30
Kovid Goyal
3f903cbdd1
CHM Input: Fix a regression that broke processing of some CHM files
...
Fixes #1831511 [Can't open chm file](https://bugs.launchpad.net/calibre/+bug/1831511 )
Bug was introduced due to adding of unicode_literals.
Also fix CHM input on python3
2019-06-05 09:08:17 +05:30
Kovid Goyal
f2f57d2dda
Work on new calibre macOS build
2019-06-04 16:22:50 +05:30
NiLuJe
7e6347486b
Port ImageMagick's OrderedDither algorithm, and use that instead of
...
ImageOps' quantize to dither images to the eInk palette.
It works much better for our intended purpose, and it's pretty fast.
2019-06-02 18:29:49 +02:00
Kovid Goyal
cae30d8795
Dont scan smtplib.py in the porting utils
2019-05-29 17:58:23 +05:30
Kovid Goyal
06dc7dd15b
Dont scan Zeroconf.py in the porting utils
...
This is being replaced by upstream zeroconf in py3
2019-05-28 12:41:48 +05:30
Kovid Goyal
6e0ec5b65c
Get an accurate count for how many files are left that need unicode porting
...
555 left currently, sigh.
2019-05-27 20:43:01 +05:30
Kovid Goyal
b842fe758a
Fixes for f2e0181926
2019-05-27 14:25:52 +05:30
Eli Schwartz
45ca4c7934
py3: merge multiline __future__ imports to not confuse 2to3
2019-05-27 00:41:14 -04:00
Kovid Goyal
50af7ba51f
py3: port uses of builtin functions that were changed to return iterators
2019-05-23 06:57:33 +05:30
Kovid Goyal
8366df8637
Run code quality checks on the odf package
2019-05-20 16:52:16 +05:30
Kovid Goyal
f32ea26bf1
py3: Port more files to not use str() andhave unicode literals
2019-05-20 06:56:45 +05:30
Kovid Goyal
cddb7d873c
Add a nicer way to check for unicode issues in files
2019-05-16 12:18:34 +05:30
Kovid Goyal
7a4f44b6aa
Report failure to parse files when running 2to3
2019-05-15 21:19:02 +05:30
Kovid Goyal
a08bdbeb4e
Dont depend on calibre in polyglot
2019-05-15 16:42:52 +05:30
Kovid Goyal
bd118e6139
Framework to run 2to3 over the codebase
2019-05-15 16:13:12 +05:30
Eli Schwartz
ae02c30a17
install: first install code, then binaries
...
Since installing code will also delete a directory tree, it should run
first. This avoids exotic cases where it deletes the binaries it just
installed.
Use case: co-installing python2/python3 using a bindir bundled with the
rest of calibre's code, in order to maintain an alternatives system
pointing symlinks in /usr/bin at the configured binaries.
2019-05-12 18:14:42 -04:00
Eli Schwartz
2a63948440
install: when using a staging root, setup XDG_DATA_DIRS magic
...
In order for xdg-utils programs to successfully install resources to the
staging root instead of /usr, this variable needs to be set and
additionally some arcane directories must be created that xdg-utils,
astoundingly, does not know how to just gracefully handle.
xdg-mime is simply hopeless as it does not have a --noupdate flag. When
using a staged install, copy it with shutil instead.
2019-05-12 18:14:42 -04:00
Kovid Goyal
61eef65bb6
Merge branch 'git_version' of https://github.com/eli-schwartz/calibre
2019-05-12 12:45:16 +05:30
Eli Schwartz
9dc1ccfe08
setup: add subcommand to update the version in constants.py from git
...
This creates an additional variable containing the version number
extracted from a git checkout via `git describe`, and diverts all
human-readable output to use that via get_version.
2019-05-12 02:32:59 -04:00
Kovid Goyal
1c22094803
Cleanup urllib imports
2019-05-02 07:25:03 +05:30
Kovid Goyal
d6402a0fdd
Use a non-deprecated technique for resuming partial downloads in the Linux installer. Fixes #1827289 [Deprecation warning in installation script.]( https://bugs.launchpad.net/calibre/+bug/1827289 )
2019-05-02 07:17:44 +05:30
Kovid Goyal
a2fa719545
Better naming
2019-04-29 21:29:47 +05:30
Kovid Goyal
ed2e2e060f
Ensure completion dict for ebook-convert has unicode strings
2019-04-29 20:48:52 +05:30
Kovid Goyal
f4cf168a72
plugins_mirror should not rely on getcwdu
2019-04-23 10:34:37 +05:30
Eli Schwartz
bb4438eca3
fix recent_uas due to firefox site changes
2019-04-18 10:32:32 -04:00
Kovid Goyal
5623d8c7f4
py3: Fix a couple of env var checks
2019-04-17 08:20:12 +05:30
Kovid Goyal
13961abd16
Also check python files using python 3 flake8
2019-04-13 09:17:31 +05:30
Kovid Goyal
50dd4952cb
Fix removal of invalid directories in import test
2019-04-10 20:48:09 +05:30
Kovid Goyal
57eaee584d
Fix checkout hook trying to delete chroot pyc files
2019-04-10 16:53:52 +05:30
Kovid Goyal
d6b6d4c892
Use unicode keys for the ISO lang code maps
...
This means the same stored maps can be used on python2 and 3
2019-04-10 14:10:06 +05:30
Kovid Goyal
86ffa4f717
Allow running calibre under both python2 and python3 from the same source checkout
2019-04-10 13:47:10 +05:30
Kovid Goyal
5818091cad
py3: Port string literals and file I/O in setup/install.py
2019-04-10 08:34:18 +05:30
Kovid Goyal
f9f3d2b2fc
py3: Have the generated launcher scripts use the correct python exe name
2019-04-10 08:26:50 +05:30
Kovid Goyal
3bece11b09
py3: Misc fixes
...
Fixes #953 (py3: misc fixes trying to start calibre.gui_launch)
2019-04-02 09:31:37 +05:30
Kovid Goyal
ccb0391844
Change the source for recent user agent data
...
The old source no longer works
2019-04-01 18:08:29 +05:30
Kovid Goyal
b78e24417a
py3: dont use func_name
2019-04-01 17:01:28 +05:30
Kovid Goyal
67814d2186
py3: misc fixes to get bootstrapping (almost) working
2019-03-31 19:58:00 +05:30
Kovid Goyal
4a3c9ca32f
py3: Fix checking of iso639 translations
2019-03-31 18:38:32 +05:30
Kovid Goyal
e73dbb0f99
py3: Port calls to json.dump()
2019-03-31 18:30:59 +05:30
Kovid Goyal
8b280c03c3
py3: Port RTF metadata module
2019-03-31 13:45:46 +05:30
Kovid Goyal
c33768b35e
Move the python imports test out of the build test module
...
The build test is designed to run with frozen calibre, where the
source files may not be available. So run it only as part of
the setup test suite.
2019-03-31 09:31:38 +05:30
Kovid Goyal
9b0ed4204d
...
2019-03-26 08:24:54 +05:30
Kovid Goyal
f68c1f2672
DRYer
2019-03-26 08:24:12 +05:30
Kovid Goyal
f66d6f9fcf
Ensure init symbol is exported on py3
2019-03-26 08:14:46 +05:30
Kovid Goyal
6d3fcc853e
Cant use polyglot in plugins_mirror
2019-03-25 17:54:42 +05:30
Kovid Goyal
5918acabad
Misc fixes for the last py3 porting merge
2019-03-25 16:03:25 +05:30
Kovid Goyal
0fcad5f21f
Fix various uses of iteritems missed by dict_fixes
2019-03-25 15:29:08 +05:30
Kovid Goyal
33cea777ac
Merge branch 'py3' of https://github.com/eli-schwartz/calibre
2019-03-25 13:32:21 +05:30
Kovid Goyal
de9d97d688
Port use of BS for comments_html()
2019-03-25 09:52:45 +05:30
Eli Schwartz
4f545af415
autopep8
2019-03-24 01:18:27 -04:00
Eli Schwartz
a623717d96
python3: apply various fixes from python-modernize "dict_six"
...
Imports were then fixed and consolidated to derive from the internal
polyglot.builtins
2019-03-24 01:18:27 -04:00
Eli Schwartz
13d236f556
python3: make recent_uas build
2019-03-24 00:54:58 -04:00
Eli Schwartz
09e97e5af1
setup: don't report full pathname when creating msgpack'ed resources
...
The full pathname in the log info was introduced as a side effect of
moving off of pickle.
2019-03-24 00:23:15 -04:00
Kovid Goyal
47ed2df137
Various fixes for the latest py3 commit
2019-03-21 18:33:19 +05:30
Eli Schwartz
d66fdc2df7
autopep8
2019-03-21 01:27:21 -04:00
Eli Schwartz
45f68f552b
python3: make coffee build
...
add polyglot.socketserver wrapper and fix BaseHTTPServer.HTTPServer
2019-03-21 01:27:21 -04:00
Eli Schwartz
c940d9941a
python3: make kakasi build
...
Since these are all being opened as non-binary, it makes no sense to
then immediately decode them.
2019-03-21 00:23:43 -04:00
Eli Schwartz
8aceae428e
py3: make setup.py gui work
...
Apparently compileUi explicitly opens the file/buffer as unicode, not
bytes, and then writes a unicode header string (containing the source
file). So the previous attempt to use BytesIO was wrong in this case.
Also images.qrc is being constructed completely in the right here and
now from a bunch of unicode strings, so just use exactly that.
2019-03-20 23:56:30 -04:00
Kovid Goyal
ae735b2ea3
De-vendor html2text
2019-03-20 14:42:46 +05:30
Kovid Goyal
4c9fb6becd
...
2019-03-15 15:52:12 +05:30
Kovid Goyal
d1e30dfcac
Get rid of some xrange
2019-03-13 15:34:10 +05:30
Kovid Goyal
2d21a8efa2
Some more fixes for the unicode type
...
Now replaced in all dynamically loaded code. Recipes/metadata
sources/etc. In the case of recipes, since they get compiled by calibre
we simply make the unicode/unichr names available, no need for any
changes to the actual recipes themselves.
2019-03-13 12:04:47 +05:30
Eli Schwartz
cbc42bec23
python3: add unicode/unichr wrappers to polyglot
2019-03-13 06:41:38 +05:30
Kovid Goyal
addf9af51a
Fix generation of trnaslation template for website
2019-03-07 10:22:39 +05:30
Kovid Goyal
9695a6e1cc
Merge branch 'py3' of https://github.com/eli-schwartz/calibre
2019-02-26 08:39:42 +05:30
Eli Schwartz
3258c464e7
Port headless plugin to build on python2/python3
...
The only thing needed is to port the buildsystem to not pass strings
starting with a "b" as build flags.
2019-02-25 22:04:26 -05:00
Kovid Goyal
7d00c4b0f4
macOS: Respect the system setting for text insertion cursor blink time
...
This value can be changed with the following commands:
defaults write -g NSTextInsertionPointBlinkPeriodOff -float 500
defaults write -g NSTextInsertionPointBlinkPeriodOn -float 500
2019-02-25 09:16:06 +05:30
Kovid Goyal
e0d5a021dd
Fix #1812891 [calibre-3.38.1 tries to download mathjax during build]( https://bugs.launchpad.net/calibre/+bug/1812891 ) again
2019-02-01 13:38:48 +05:30
Kovid Goyal
a64579338c
Dont download MathJax if it is already present
...
Fixes #1812891 [calibre-3.38.1 tries to download mathjax during build](https://bugs.launchpad.net/calibre/+bug/1812891 )
2019-01-23 08:03:00 +05:30
Eli Schwartz
18ad088bda
build: preserve symlinks when installing
...
Without this, python's default behavior was to dereference the mathjax
symlinks and install the file contents instead.
2019-01-20 16:53:53 -05:00
Eli Schwartz
82617d3a74
build: add option to symlink to system mathjax installation
2019-01-18 08:40:44 -05:00
Eli Schwartz
6adedd8603
setup/mathjax: fallback to using packed versions of resources
...
Some mathjax distributions come with the unpacked versions removed as
per the upstream instructions for optimizing an installation. Only use
the unpacked versions if they exist; otherwise fallback on the packed
versions.
Also filter the .woff files to make sure they are actually .woff files,
since they may be files like fonts.dir, fonts.scale, .uuid (created by
xorg-mkfontdir, xorg-mkfontscale, fontconfig).
2019-01-18 08:40:44 -05:00
Kovid Goyal
2ae2d14d62
Rapydscript must be built after mathjax
2019-01-17 09:36:16 +05:30
Kovid Goyal
d08e0a33e1
Implement clean for mathjax builder
2019-01-04 22:15:26 +05:30
Kovid Goyal
98a2f53d90
Remove mathjax from bootstrap since it is now under resources
2019-01-04 21:59:01 +05:30
Kovid Goyal
c184fe37c7
Remove unused code
2019-01-04 21:54:57 +05:30
Kovid Goyal
f78a7dad58
Do not use a compressed archive for mathjax
...
Improves performance for local clients such as PDF output and the
viewer. Since we have now removed the old unbundled mathjax, the file
count in the resources directory does not go up too much.
2019-01-04 21:53:06 +05:30
Kovid Goyal
e47a2d888b
Update the SWIG bindings for chmlib
...
Also get rid of the xhm_extra module since
we dont care about searching CHM files and get_lcid can be
implemented in pure python.
2018-12-27 14:44:43 +05:30
Kovid Goyal
bf60631ce0
Avoid the need to use a patched version of MathJax
...
See https://github.com/mathjax/MathJax/pull/1453
2018-12-17 15:38:14 +05:30
Kovid Goyal
f6ef5f3cf7
Fix crash when compressing mathjax on CI servers
2018-12-13 18:48:23 +05:30
Kovid Goyal
dca2d1a51c
String changes
2018-12-10 08:36:28 +05:30
Kovid Goyal
8018891656
...
2018-10-19 10:30:54 +05:30
Kovid Goyal
17eff935eb
...
2018-10-19 10:16:01 +05:30
Kovid Goyal
79d7658ea3
Check fosshub queue status since the API has now been fixed
2018-10-03 20:30:05 +05:30
Kovid Goyal
e4795fcf88
oops
2018-10-03 08:39:47 +05:30
Kovid Goyal
826119e797
Use new fosshub upload API
2018-10-03 08:39:11 +05:30
Flaviu Tamas
8b9e401f32
Use builtin zlib in py3
2018-10-02 17:01:01 -04:00
Kovid Goyal
01a9fb6687
Fix #1794915 [setup.py build does not work due to UnicodeEncodeError]( https://bugs.launchpad.net/calibre/+bug/1794915 )
2018-09-28 09:47:35 +05:30
Kovid Goyal
4d4ffcff7c
Revert "Remove use of prints in the setup package since nowadays most systems are UTF-8 based anyway"
...
This reverts commit f4b3585549 .
2018-09-28 09:44:41 +05:30