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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-03-2011, 11:21 AM   #1
hiperlink
Enthusiast
hiperlink began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
Title string in mobi format with accented characters

Hi All!

I'm converting my recipe with the following command line:
Code:
ebook-convert x.recipe x.mobi  \
--output-profile kindle\
--smarten-punctuation\
--title "Élet és Irodalom" \
--preserve-cover-aspect-ratio 
-vv
But the title contains accented (hungarian) characters, which converted weirdly in the output (screenshot: http://imgur.com/8Cz9j ).

Is it a bug?

Thanks in advance!
hiperlink is offline   Reply With Quote
Old 02-03-2011, 11:24 AM   #2
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: 25,243
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
specify the title in the recipe, not on the command line. Reading non ascii characters from command lines is a black art.
kovidgoyal is offline   Reply With Quote
Old 02-04-2011, 09:49 AM   #3
hiperlink
Enthusiast
hiperlink began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
Did try it with:

Code:
$ grep 'Élet' X.recipe          
    title      = "Élet és Irodalom"
    description = "Élet és Irodalom"
$ ebook-convert X.recipe X.mobi \
--smarten-punctuation \
--output-profile kindle \
--mobi-ignore-margins \
--enable-heuristics \
--pretty-print \
--test \
-vv | tee estitledebugconv.log
Same results. Then tried with title=u"Élet és Irodalom". Same results
hiperlink is offline   Reply With Quote
Old 02-04-2011, 10:26 AM   #4
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: 25,243
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Make sure your recipe is encoded in utf-8 and has declared its encoding at the top, like this

# -*- coding: utf-8 -*-
kovidgoyal is offline   Reply With Quote
Old 02-08-2011, 03:42 AM   #5
hiperlink
Enthusiast
hiperlink began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
I did try it dear Kovid (and thanks for your answer).

Here is the debug.log: https://gist.github.com/816107

And my recipe: https://gist.github.com/816113

The encoding is set to utf-8 (checked it via: set encoding? in Vim).

Command line:
Code:
ebook-convert es.recipe es.pdf \
--smarten-punctuation \
-vv \
--debug-pipeline debugdir \
--pretty-print \
--test
But the results are still not what expected (in title): http://imgur.com/32z68
hiperlink is offline   Reply With Quote
Old 02-08-2011, 11:53 AM   #6
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: 25,243
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Open your mobi file in the calibre ebook viewer and click the show metadata button, see if the title is correct.
kovidgoyal is offline   Reply With Quote
Old 02-08-2011, 03:47 PM   #7
hiperlink
Enthusiast
hiperlink began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
Tried that: ebook-viewer.exe (I'm on windows for 10 hours :-( ) shows the correct title ("Élet és Irodalom").
hiperlink is offline   Reply With Quote
Old 02-08-2011, 06:29 PM   #8
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: 25,243
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're probably suffering from this issue http://bugs.calibre-ebook.com/ticket/8229
kovidgoyal is offline   Reply With Quote
Old 02-09-2011, 04:54 PM   #9
hiperlink
Enthusiast
hiperlink began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
As I converted the recipe to PDF, the same error occured. Anyway, waiting for the fix - and thanks for your answer & work!
hiperlink is offline   Reply With Quote
Old 02-09-2011, 05:39 PM   #10
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: 25,243
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Stick a u in front of the title string

Code:
title = u"Élet és Irodalom"
kovidgoyal is offline   Reply With Quote
Reply

Tags
conversion error, string, title, utf-8

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting with accented characters chaley Calibre 20 12-11-2010 07:14 AM
Kindle/Mobi support for accented characters guiyoforward Calibre 1 08-29-2010 10:28 PM
Accented characters on PRS-505 gandalfbp Calibre 4 04-19-2010 07:48 AM
PRS-500 Accented characters onto reader using Mac squiggle8 Sony Reader Dev Corner 9 12-06-2007 04:01 PM
Accented characters bingle Sony Reader 7 07-25-2007 06:36 AM


All times are GMT -4. The time now is 08:15 PM.


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