Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2024, 01:02 PM   #1
tom99
Junior Member
tom99 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
Update of the Ubuntu repo with the last version 7.20.

Hello everyone,
I wanted to know if there was a planing of updating the apt repos related to ubuntu with the last version 7.20 ?
Presently, we run on the 7.6 which is a bit dated and i have some trouble with ebook-polish with it.

Thank you in advance.
tom99 is offline   Reply With Quote
Old 10-19-2024, 01:20 PM   #2
tom99
Junior Member
tom99 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
Hello, I have the same problem but for my case I can't update to the 7.20 binaries because I use the file image.py which i have modified to reduce the weight of images contained in an epub during polishing.
Is it possible to update the different repos with the 7.20 version ?

Thank you in advance
tom99 is offline   Reply With Quote
Advert
Old 10-19-2024, 01:35 PM   #3
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
That is a question for the ubuntu project. (Most linix distributions lag most applications by the very nature of their processes. That has advantages and disadvantages.)

Any version of calibre can be installed directly without apt. See the New to calibre? Start Here.
https://www.mobileread.com/forums/sh...d.php?t=118558
j.p.s is offline   Reply With Quote
Old 10-19-2024, 01:38 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by tom99 View Post
Is it possible to update the different repos with the 7.20 version ?
What different repos? If you mean some linux distro then it is up to them.

If you mean calibre source on GitHub so you can run calibre with your changed .py file, that is already done. Just follow the instructions in the calibre FAQ to run from source.

If you mean something else, what?
chaley is offline   Reply With Quote
Old 10-19-2024, 01:46 PM   #5
tom99
Junior Member
tom99 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
Hello, thank you for your answer.
I tried all the afternoon to install the source form the git repo but without success. I had troubles with the library podofo which is also on a newer version than the repo.
tom99 is offline   Reply With Quote
Advert
Old 10-19-2024, 01:55 PM   #6
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Are you refusing to use the one line binary install script provided by calibre?

You can certainly split it into two lines by downloading the script and inspecting it before executing it.

Your willingness to use apt implies a willingness to no require installing from source.
j.p.s is offline   Reply With Quote
Old 10-19-2024, 02:15 PM   #7
tom99
Junior Member
tom99 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
I've tried all afternoon to install calibre with the git repo but I've some troubles with the podofo Library which is also on Ubuntu repo in a version lower than calibre require.
tom99 is offline   Reply With Quote
Old 10-19-2024, 02:21 PM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Don't install from source. Instead run from source. To do this, install the calibre binary from the calibre site, get the calibre source from GitHub, set the env variable, then put your modified .py file in the source tree. This process is easy and avoids the distro release entirely.

How to do all of this is described in the calibre FAQ.

Last edited by chaley; 10-19-2024 at 02:29 PM. Reason: Added link to the FAQ
chaley is offline   Reply With Quote
Old 10-19-2024, 02:28 PM   #9
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by tom99 View Post
Hello, I have the same problem but for my case I can't update to the 7.20 binaries because I use the file image.py which i have modified to reduce the weight of images contained in an epub during polishing.
Is it possible to update the different repos with the 7.20 version ?

Thank you in advance
Moderator Notice
Double post moved from other thread in the calibre forum. Don't double post.

Last edited by chaley; 10-19-2024 at 04:47 PM.
chaley is offline   Reply With Quote
Old 10-19-2024, 02:53 PM   #10
tom99
Junior Member
tom99 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
Thanks for your answer.
I didn't saw it on the faq so thanks to have told me the procedure.
I'll try out tomorrow morning.
tom99 is offline   Reply With Quote
Old 10-19-2024, 03:52 PM   #11
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
The repos are not maintained in any way, shape or form by Kovid.

They are maintained by someone associated with that app in the repo and normally follow the philosophy of the particular distribution, which often includes not bunding an app with dependencies, instead forcing the app to utilize the system supplied version.

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 10-19-2024, 04:31 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by tom99 View Post
Hello, I have the same problem but for my case I can't update to the 7.20 binaries because I use the file image.py which i have modified to reduce the weight of images contained in an epub during polishing.
Is it possible to update the different repos with the 7.20 version ?

Thank you in advance
Install 7.20 from the actual calibre site and then modify image.py once again.
JSWolf is offline   Reply With Quote
Old 10-20-2024, 01:56 AM   #13
tom99
Junior Member
tom99 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
So I did install the 7.20 binaries and link the git source which it.
It works but when I modify the images.py under the polish folder the compression with the 7.20 is far less than with the 7.6.

I modified the images.py to have a reduction of all the images in an epub with 50% so i've put :
Code:
 func = partial(encode_jpeg, quality = 50)
and from a test that i did with the 7.6 version and the same change the epub test was from 1.5 Mb to 430.1 Kb whereas now from 1.5 Mb to 1.4 Mb.

I tested to put a print in images.py to verify if it was well use and yes.
Here the report of the polish :

Hello Tom!!!
Hello Tom!!!
Hello Tom!!!
Hello Tom!!!
Hello Tom!!!

------------------------------ REPORT ------------------------------
## Polissage: EPUB

### Amélioration de la ponctuation
Aucune ponctuation pouvant être améliorée n'a été trouvée


### Intégration des polices référencées
Impossible de trouver les polices de la famille: Helvetica. Elles ne seront pas intégrées.
Aucune police intégrée n'a été trouvée


### Aucune police intégrée à mettre en sous-ensemble


### Suppression en cours des règles CSS inutilisées
4 règles de style CSS inutilisées supprimées
Aucun sélecteur CSS inutilisé trouvé
Aucune feuille de style inutilisée n'a été trouvée


### Compresser les images sans perte
OEBPS/Images/orn_1.jpg compressé de 8.3 KB à 577 B octets [réduction de 93.3%]
OEBPS/Images/crt.jpg compressé de 8.7 KB à 933 B octets [réduction de 89.6%]
OEBPS/Images/orn_2.jpg compressé de 9.1 KB à 1.2 KB octets [réduction de 86.7%]
OEBPS/Images/titlepage.jpg compressé de 205.4 KB à 67.9 KB octets [réduction de 66.9%]
OEBPS/Images/9781975315702.jpg compressé de 1.2 MB à 1 MB octets [réduction de 11.7%]

Taille totale des images réduite de 1.4 MB à 1.1 MB [réduction de 20.6%], 5 images modifiées]


### Mise à jour du livre, si possible
Aucune mise à jour nécessaire

----------------------------------------------------------------------
Le polissage a pris: 1.8 seconde(s)
Output written to: /home/tom/Documents/Test-LN/fichiers a corriger/5 Centimeters per Second + Children Who Chase Lost Voices/5 Centimeters per Second + Children Who Chase Lost Voices - Complete [Yen Press][Kobo]_polished.epub
tom99 is offline   Reply With Quote
Old 10-20-2024, 02:09 AM   #14
tom99
Junior Member
tom99 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2024
Device: none
I said nothing, i'm just dumb.
Thank you everyone for the time you passed to help me.

Have a great day
tom99 is offline   Reply With Quote
Old 10-20-2024, 12:20 PM   #15
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
You should have been more specific about your reason for changing calibre. It already provides for selecting any amount of compression for JPEG images. No need to modify any source code.

In the calibre GUI right click on the book, select "Edit book", then in the "Tools" drop down menu select "Compress images losslessly", then check the "Enable lossy compression of JPEG images", then set the compression quality to whatever you like.

Well, now that I have written all that, I see that is a lot to go through for every book. I also think the "losslessly" oscures that there is the possibility to enable lossy compression.
j.p.s is offline   Reply With Quote
Reply

Tags
calibre, repo, ubuntu, update, version


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install previous version on Ubuntu mrgou Calibre 2 10-04-2020 08:28 PM
Upgrade from Ubuntu repo version to binary installer huladaddy Calibre 7 07-30-2014 02:21 AM
Ubuntu(Tablet version) on Hp TouchPad skillachie Android Devices 1 02-24-2013 01:25 AM
Latest version for Ubuntu 10.10? sgt.bilko Calibre 9 07-13-2011 12:45 PM
latest version for Ubuntu Lago Calibre 7 01-15-2010 01:54 PM


All times are GMT -4. The time now is 02:44 AM.


MobileRead.com is a privately owned, operated and funded community.