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 09-19-2012, 05:54 PM   #1
jmesar
Enthusiast
jmesar began at the beginning.
 
jmesar's Avatar
 
Posts: 41
Karma: 10
Join Date: May 2011
Location: Colombia
Device: Kindle
Dictionary / Calibre fail to change Language metadata

Last week I found Kindle Touch SO take care of the languages dictionary metadata flag, and today I update my K3w to V3.4, and found it is doing the same.
Some time ago I download a Spanish dictionary (miniRAE-2246_r2.mobi 14MB) and it use to work fine (on K3w and K DX), but with the V3.4 update It no longer does, I discover that the dictionary languages metadata is on English while the book is in Spanish, the trouble is that Calibre fail to rebuild the MOBI file in order to change the metadata, calibre said the file is to long.
What can I do?

Kovid Goyal 1053711@bugs.launchpad.net

If you wish to change metadata ina file, simply change the metadata in
calibre and resend the file to your device. Or use the mobi2mobi command
line tool. If youwant to conver the dictionary, then you will need to
run calibre ona 64 bit linux or OS X machine, as it cannot convert
large documents on windows.

status invalid

** Changed in: calibre
Status: New => Invalid

------
Doitsu:
Dictionaries work just fine after the 3.4 update. If they no longer work, it's most likely because they had the wrong Input Language metadata.

BTW, Kovid is right, this issue cannot be fixed in Calibre, because Calibre can only change the document language metadatata, which Kindles don't use for lookup, unless you look up a word in the dictionary itself.

The Kindle uses the Input Language metadata to select a dictionary; you'll need to edit your dictionaries with the Java Mobipocket Metadata Editor. Make sure that your dictionaries have Spanish as the dictionary Input Language.
@Doitsu:

English dictionaries are OK:


Nuevo Diccionario Inglés-Español 2011 (Spanish Edition) is OK
Oxford-Dictionary-of-English is OK
The-New-Oxford-American-Dictionary is OK

Spanish Dictionaries none..

Larousse (with Metadata Language= "Spanish") NOT
miniRAE-2246_r2 (with Metadata Language= "English") NOT


MobiMetaEditorV0.16.jar Work the miracle; Calibre do not show (at least by default) the fields "Dictionary Input" and "Dictionary Output" they were in both spanish dictionaries in en (1033), I change to es (10) and Worked!!!!!!

Thanks @Doitsu:




-------
calibre, version 0.8.69 (win32, isfrozen: True)
Conversion Error: Failed: Convert book 1 of 1 (Diccionario de la Real Academia de la Lengua Española)

Convert book 1 of 1 (Diccionario de la Real Academia de la Lengua Española)
Resolved conversion options
calibre version: 0.8.69
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\DOCUME~1\\jmesar\\CONFIG~1\\Temp\\calibre_0. 8.69_tmp_2qwb8m\\ff8owd.jpeg',
'debug_pipeline': u'D:/temp',
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'enable_heuristics': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.45,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.KindleInput object at 0x0356C390>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': False,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 1.0,
'margin_left': 1.0,
'margin_right': 1.0,
'margin_top': 1.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'mobi_file_type': u'old',
'mobi_ignore_margins': True,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x0356C610>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'personal_doc': u'[PDOC]',
'prefer_author_sort': True,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\DOCUME~1\\jmesar\\CONFIG~1\\Temp\\calibre_0. 8.69_tmp_2qwb8m\\rkarbg.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'share_not_sync': False,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\DOCUME~1\jmesar\CONFIG~1\Temp\calibre_0.8.69_tm p_2qwb8m\nf2pkt.mobi
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Creating OPF...
Input debug saved to: D:\temp\input
Parsing all content...
Parsing miniRAE-2246_rev2.html ...
Forcing miniRAE-2246_rev2.html into XHTML namespace
Merging multiple <head> and <body> sections
Parsing styles.css ...
Generating default TOC from spine...
Parsed HTML written to: D:\temp\parsed
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Structured HTML written to: D:\temp\structure
Flattening CSS and remapping font sizes...
Source base font size is 16.00000pt
Removing fake margins...
Found 19 items of level: div_1
Found 88574 items of level: div_2
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files from manifest...
Python function terminated unexpectedly
(Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 186, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1119, in run
File "site-packages\calibre\ebooks\conversion\plumber.py", line 919, in dump_oeb
File "site-packages\calibre\ebooks\oeb\writer.py", line 64, in __call__
File "site-packages\calibre\ebooks\oeb\base.py", line 962, in __str__
File "site-packages\calibre\ebooks\oeb\base.py", line 323, in xml2str
File "lxml.etree.pyx", line 2860, in lxml.etree.tostring (src/lxml/lxml.etree.c:53681)
File "serializer.pxi", line 139, in lxml.etree._tostring (src/lxml/lxml.etree.c:87439)
MemoryError

Last edited by jmesar; 09-21-2012 at 11:51 AM.
jmesar 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
How to correctly change language metadata of a dictionary? daxp Amazon Kindle 16 11-30-2012 03:48 PM
Calibre language change? mago55 Calibre 5 10-24-2012 05:49 PM
Can I change the language in a whole book using Calibre? Heathside Boy Library Management 3 04-17-2012 05:13 PM
Can you change the language of a PDF file in Calibre? Heathside Boy Library Management 5 10-27-2011 07:43 PM
Calibre Viewer Dictionary Change Language Welderman Introduce Yourself 8 01-12-2011 06:09 AM


All times are GMT -4. The time now is 01:40 AM.


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