Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2019, 03:20 AM   #16
Leonatus
Guru
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 692
Karma: 7129342
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
3.45.2 works! Thank you! You are the greatest, Kovid!
Leonatus is offline   Reply With Quote
Old 07-13-2019, 08:26 AM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,662
Karma: 12507930
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're welcome
kovidgoyal is offline   Reply With Quote
Old 07-16-2019, 05:16 PM   #18
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 3,728
Karma: 634558
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
Kovid,

I wonder if these two plugin issues might also be related?

Encoding error on convert after epubmerge:
https://www.mobileread.com/forums/sh...63#post3867663

.mo translation files converted .po by v3.45.2 are flawed, but v.3.44 work:
https://www.mobileread.com/forums/sh...94#post3867694
JimmXinu is offline   Reply With Quote
Old 07-16-2019, 09:03 PM   #19
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,662
Karma: 12507930
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
See https://github.com/kovidgoyal/calibr...43e070897b6583 for the first issue.

for the second the msgfmt calibre budles was changed to the oe for python3 with some backports so it works in python 2 as well. What is the issue with it?
kovidgoyal is offline   Reply With Quote
Old 07-16-2019, 09:25 PM   #20
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 3,728
Karma: 634558
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
Accented characters and the like aren't correctly encoded in .mo files when using 3.45.

Attached is a zip with a German .po file for FanFicFare and the .mo files as generated by 3.44 and 3.45.2.

One example: Search for 'ber FanFicFare' (for Über FanFicFare) in the .mo files.
Ü becomes \303\234 in 3.44 but \303\203\302\234 in 3.45.2.
Attached Files
File Type: zip de.zip (62.4 KB, 12 views)
JimmXinu is offline   Reply With Quote
Old 07-17-2019, 08:54 AM   #21
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,662
Karma: 12507930
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This should take care of it https://github.com/kovidgoyal/calibr...45159d86c59bd1
kovidgoyal is offline   Reply With Quote
Old 07-17-2019, 06:47 PM   #22
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 14,013
Karma: 11423372
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Is this intentional: strings in Tweak values must now be prefixed with a 'u', viz:

Click image for larger version

Name:	Annotation 2019-07-18 083542.jpg
Views:	34
Size:	288.0 KB
ID:	172434

Seems a bit arcane, maybe it's been like that for a while and I hadn't noticed.

BR
BetterRed is offline   Reply With Quote
Old 07-17-2019, 08:39 PM   #23
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,662
Karma: 12507930
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's a temporary thing, once calibre moves to python 3 the u prefix will be gone again. And you dont have to enter the u it will work without it as well.

Last edited by kovidgoyal; 07-17-2019 at 08:57 PM.
kovidgoyal is offline   Reply With Quote
Old 07-17-2019, 09:56 PM   #24
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 3,728
Karma: 634558
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
Quote:
Originally Posted by kovidgoyal View Post
Thanks!
JimmXinu is offline   Reply With Quote
Old 07-21-2019, 06:34 AM   #25
thiago.eec
Zealot
thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.
 
Posts: 120
Karma: 71600
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by JimmXinu View Post
.mo translation files converted .po by v3.45.2 are flawed, but v.3.44 work:
https://www.mobileread.com/forums/sh...94#post3867694
Windows 10 x64 1903
calibre 3.46
system locale: pt_BR
calibre language: pt_BR

I'm having a weird problem with that command too:

Code:
calibre-debug.exe -c "from calibre.translations.msgfmt import main; main()" pt_BR.po
Failed to compile translations file: pt_BR.po, ignoring
The weird part is that the 'pt_BR.mo' file is still being generated, and seems to work fine. I tried it with several po files (with non ASCII characters), and none raised that error. Then, just to check, I tried changing the file name to 'pt-BR' and got no error message. Any other name would do, including names with underscore.

Now it gets weirder: supose I have 02 files ('fr.po' and 'pt_BR.po') on a folder. When I tried to generate the mo file for the french translation, then I got this:

Code:
calibre-debug.exe -c "from calibre.translations.msgfmt import main; main()" fr.po
Failed to compile translations file: pt_BR.po, ignoring
It complains about the 'pt_BR.po' file just for being in the same folder, since it is not being converted right now.

At last, I tried changing calibre language to English. Now everything works fine! No errors at all. No complaints about 'pt_BR.po' file.

P.S.: I never had that error before 3.45.
thiago.eec is offline   Reply With Quote
Old 07-21-2019, 09:28 AM   #26
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,662
Karma: 12507930
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you set your calibre language to pt_BR and have a pt_BR.po file in the current directory, calibre will try to use it as the language file -- this is to help translators who are translating calibre itself to debug their trnaslations files easily. See https://calibre-ebook.com/get-involved for details.

You can use the following to prevent that error message (which is harmless)

set CALIBRE_OVERRIDE_LANG=en
kovidgoyal is offline   Reply With Quote
Old 07-21-2019, 10:11 AM   #27
thiago.eec
Zealot
thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.
 
Posts: 120
Karma: 71600
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
If you set your calibre language to pt_BR and have a pt_BR.po file in the current directory, calibre will try to use it as the language file -- this is to help translators who are translating calibre itself to debug their trnaslations files easily. See https://calibre-ebook.com/get-involved for details.

You can use the following to prevent that error message (which is harmless)

set CALIBRE_OVERRIDE_LANG=en
Thanks for the reply, @kovidgoyal.

I thought I needed to set the environment variable CALIBRE_TEST_TRANSLATION to test calibre translations.

Was this changed on 3.46? Before that, this message never showed up.

Last edited by thiago.eec; 07-21-2019 at 10:40 AM.
thiago.eec is offline   Reply With Quote
Old 07-21-2019, 11:05 AM   #28
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,662
Karma: 12507930
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No that is still the case, I assumed you had that variable set.
kovidgoyal is offline   Reply With Quote
Old 07-21-2019, 02:29 PM   #29
thiago.eec
Zealot
thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.
 
Posts: 120
Karma: 71600
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
No that is still the case, I assumed you had that variable set.
No, I don't have this variable set. And, like I said, I never got this message on previous versions.

EDIT: Just to clarify, I'm using this command on a random directory, not related to calibre at all. I'm using it to bundle translations files to a plugin.

Last edited by thiago.eec; 07-21-2019 at 03:09 PM.
thiago.eec is offline   Reply With Quote
Old 07-21-2019, 11:40 PM   #30
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,662
Karma: 12507930
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well it's harmless in any case, so just ignore it.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Hudl 2: calibre, version 3.2.1 ERROR: Error: Error communicating with device elfed Devices 4 07-21-2017 05:33 AM
Calibre latest Update - calibre 3.2.1 64bit version Al Adams Library Management 9 07-07-2017 07:47 PM
Can't install Version: 2.35.0 on Windows 10 64bit nqk Calibre 4 08-21-2015 03:12 AM
Does 64bit version of Calibre work on XP Pro 64? Logos Calibre 1 01-17-2013 12:32 AM
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: e-bookuser Devices 1 07-03-2011 04:09 PM


All times are GMT -4. The time now is 05:48 AM.


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