creating a catalog in Hungarian

Bug #1091581 reported by Vida Menyhért
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

I tried to make a catalog in Hungarian, but received the following report!

"Katalógus létrehozása
 Sections: Authors
Catalog_EPUB_MOBI('E-Magyar 2'): Generating mobi for generic_eink in GUI environment, locale: 'hu'
 connected_device: 'None'
 book count: 58
 opts:
  author_clip: 100
  catalog_title: u'--K\xf6nyvek'
  connected_kindle: False
  creator: u'kedd, december 18, 2012'
  cross_reference_authors: True
  description_clip: 380
  exclude_genre: u'\\[.+\\]|^\\+$'
  exclusion_rules: ()
  fmt: u'mobi'
  genre_source_field: u'C\xedmk\xe9k'
  header_note_source_field: ''
  merge_comments_rule: '::True'
  output_profile: 'generic_eink'
  prefix_rules: ()
  search_text: None
  sort_by: None
  sort_descriptions_by_author: True
  sync: False
  thumb_width: u'1.00'
  use_existing_cover: False
 Custom fields:
 Thumbnails:
  DPI = 168; thumbnail dimensions: 168 x 224
 Begin catalog source generation
 unhandled exception in catalog generator
Python function terminated unexpectedly
  need a single Unicode character as parameter (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 68, in gui_catalog
  File "site-packages\calibre\library\catalogs\epub_mobi.py", line 354, in run
  File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 279, in build_sources
  File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 1473, in generate_html_by_author
  File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 4430, in generate_unicode_name
TypeError: need a single Unicode character as parameter"

After deleting those books where the name of the author begins with letters as "Sz; Cs;Ty;Ny;etc." could make the cataloge.
What kind of changes I have to do, and where?

Regards

Tags: catalogs
Revision history for this message
Miguel Angel Nieto (miguelangelnieto) wrote :

I think you have created the bug report on the wrong project. This is Percona Server (database server). That bug report should go to calibre.

https://launchpad.net/calibre

affects: percona-server → calibre
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1091581

Changing the component for this bug.

 assignee griker
 tag catalogs
 status triaged

Changed in calibre:
assignee: nobody → GRiker (griker)
status: New → Triaged
Revision history for this message
Vida Menyhért (feleslegesek) wrote : RE: [Bug 1091581] Re: calibre bug 1091581

Thanks for your answer!

Because of my poor English, I would like to have some more help!

Where and how I have to make those changes what you wrote below?
I am only a simple user for this product, but not a programmer.

Could xou help me?

Regards
M

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Kovid Goyal
Sent: Thursday, January 03, 2013 10:33 AM
To: <email address hidden>
Subject: [Bug 1091581] Re: calibre bug 1091581

Changing the component for this bug.

 assignee griker
 tag catalogs
 status triaged

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

** Changed in: calibre
     Assignee: (unassigned) => GRiker (griker)

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/1091581

Title:
  creating a catalog in Hungarian

Status in calibre: e-book management:
  Triaged

Bug description:
  I tried to make a catalog in Hungarian, but received the following
  report!

  "Katalógus létrehozása
   Sections: Authors
  Catalog_EPUB_MOBI('E-Magyar 2'): Generating mobi for generic_eink in GUI environment, locale: 'hu'
   connected_device: 'None'
   book count: 58
   opts:
    author_clip: 100
    catalog_title: u'--K\xf6nyvek'
    connected_kindle: False
    creator: u'kedd, december 18, 2012'
    cross_reference_authors: True
    description_clip: 380
    exclude_genre: u'\\[.+\\]|^\\+$'
    exclusion_rules: ()
    fmt: u'mobi'
    genre_source_field: u'C\xedmk\xe9k'
    header_note_source_field: ''
    merge_comments_rule: '::True'
    output_profile: 'generic_eink'
    prefix_rules: ()
    search_text: None
    sort_by: None
    sort_descriptions_by_author: True
    sync: False
    thumb_width: u'1.00'
    use_existing_cover: False
   Custom fields:
   Thumbnails:
    DPI = 168; thumbnail dimensions: 168 x 224
   Begin catalog source generation
   unhandled exception in catalog generator
  Python function terminated unexpectedly
    need a single Unicode character as parameter (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 68, in gui_catalog
    File "site-packages\calibre\library\catalogs\epub_mobi.py", line 354, in run
    File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 279, in build_sources
    File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 1473, in generate_html_by_author
    File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 4430, in generate_unicode_name
  TypeError: need a single Unicode character as parameter"

  After deleting those books where the name of the author begins with letters as "Sz; Cs;Ty;Ny;etc." could make the cataloge.
  What kind of changes I have to do, and where?

  Regards

To manage notifications about this bug go to:
https://bugs.launchpad.net/calibre/+bug/1091581/+subscriptions

Revision history for this message
GRiker (griker-deactivatedaccount) wrote :

Open the folder containing your calibre library, then find the file 'metadata.db'. Click the button below labeled 'Add attachment or patch, then upload your metadata.db file as an attachment to this ticket.

When you are adding a comment to this ticket, do not reply to the email you receive. Go to the link in the email so that you are viewing the webpage for the ticket, add your comment there.

Changed in calibre:
status: Triaged → Incomplete
Revision history for this message
Vida Menyhért (feleslegesek) wrote :
Revision history for this message
GRiker (griker-deactivatedaccount) wrote :

I need the 'metadata.db' file from your calibre library, not 'metadata.opf'.

Revision history for this message
Vida Menyhért (feleslegesek) wrote :

This catalog was made by the version 8.64. Since that time I was not able to make a new catalog, thats why I have to split the books in two "catalogs".

Revision history for this message
Vida Menyhért (feleslegesek) wrote :

This file was made with version 9.13, without the "wrong" files...

Revision history for this message
GRiker (griker-deactivatedaccount) wrote :

I was able to build a catalog with Titles and Authors with the metadata.db you attached without any problems. I need to see a metadata.db that exhibits the problem. Does the metadata.db file that you attached fail on your system?

Revision history for this message
Vida Menyhért (feleslegesek) wrote :

I send you another one metadata.db.
This is from today.
I tried to make a catalog with Calibre v 0.9.13 and I received the problem once again

Revision history for this message
GRiker (griker-deactivatedaccount) wrote :

I need to see the debug log when it fails. After the failure, copy all of the details and paste them into a new comment here.

Revision history for this message
Vida Menyhért (feleslegesek) wrote :

Katalógus létrehozása
 Sections: Authors
Catalog_EPUB_MOBI('E-Munka'): Generating mobi for generic_eink in GUI environment, locale: 'hu'
 connected_device: 'None'
 book count: 54
 opts:
  author_clip: 100
  catalog_title: u'--K\xf6nyvek'
  connected_kindle: False
  creator: u'szombat, janu\xe1r 5, 2013'
  cross_reference_authors: True
  description_clip: 380
  exclude_genre: u'\\[.+\\]|^\\+$'
  exclusion_rules: ()
  fmt: u'mobi'
  genre_source_field: u'C\xedmk\xe9k'
  header_note_source_field: ''
  merge_comments_rule: '::True'
  output_profile: 'generic_eink'
  prefix_rules: ()
  search_text: None
  sort_by: None
  sort_descriptions_by_author: True
  sync: False
  thumb_width: u'1.00'
  use_existing_cover: False
 Custom fields:
 Thumbnails:
  DPI = 168; thumbnail dimensions: 168 x 224
 Begin catalog source generation
 unhandled exception in catalog generator
Python function terminated unexpectedly
  need a single Unicode character as parameter (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 68, in gui_catalog
  File "site-packages\calibre\library\catalogs\epub_mobi.py", line 354, in run
  File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 279, in build_sources
  File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 1473, in generate_html_by_author
  File "site-packages\calibre\library\catalogs\epub_mobi_builder.py", line 4430, in generate_unicode_name
TypeError: need a single Unicode character as parameter

Revision history for this message
GRiker (griker-deactivatedaccount) wrote :

Are you using Windows or OS X?

Revision history for this message
Vida Menyhért (feleslegesek) wrote :

Windows 7
For your information: with the version 0.8.64 I could make the right catalog, but since that is not possible.
I have made no changes, only update for the new version!

Revision history for this message
GRiker (griker-deactivatedaccount) wrote :

In the most recent metadata.db file that you added with 55 books, which author(s) cause the problem?

Revision history for this message
Vida Menyhért (feleslegesek) wrote :

With every!
In Hungarian there are some letters as "doubble", as "sz", "cs", "ty", "ny", "zs", "gy", "ly".
I made this "catalog" extrem for those authors where the name beginns with the letter mentioned above.
That's why every books are "wrong", cause the problem
Because of that "problem" I have two separate catalogs, one for normal books, where I can make the catalog, and separate the "wrong" books, with authors name beginning with "doubble letters".
I add once more the latest metadata.db with "wrong" books, alltogether 71 books

Revision history for this message
Charles Haley (cbhaley) wrote :

Vida Menyhért (feleslegesek) wrote: After deleting those books where the name of the author begins with letters as "Sz; Cs;Ty;Ny;etc." could make the cataloge. What kind of changes I have to do, and where?

@GRiker: are you using the ICU tools to find equivalent first letters? If so then you need to be prepared for ICU to give you more than one "real" letter that stands for a "virtual" single letter. The reason: some languages use multiple letters to stand for a "virtual" single letter that appears in a different place in the collation. For example, in Hungarian "sz" is a separate letter between "s" and "t" The sequence "D", "Dz", "Dzs", "E" shows both a double letter and a triple letter group where "Dzt" will appear before "Dzs". For more detail on Hungarian, see http://en.wikipedia.org/wiki/Hungarian_alphabet

Revision history for this message
GRiker (griker-deactivatedaccount) wrote :

Thanks to Charles I now have a fix for Hungarian catalogs. The patch should be available in the next release of calibre.

Changed in calibre:
status: Incomplete → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
Revision history for this message
Vida Menyhért (feleslegesek) wrote :

Thank you very much!
It works!

Revision history for this message
GRiker (griker-deactivatedaccount) wrote :

Good! Thank you for reporting back.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.