Command line unable to set language

Bug #1154351 reported by Budfudder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

My books that have a 'Languages' setting of "en" can have that setting reset to nothing:

X:\Personal\eBooks>ebook-meta esop.mobi --language=" "
Original metadata::
        Title : Aesop's Fables
        Author(s) : Aesop
        Book Producer : calibre (0.7.16) [http://calibre-ebook.com]
        Tags :
        Languages : en
        Published : 0101-01-01T00:00:00+00:00
        Identifiers : isbn:9781593080624

Changed metadata::
        Title : Aesop's Fables
        Author(s) : Aesop
        Book Producer : calibre (0.7.16) [http://calibre-ebook.com]
        Tags :
        Published : 0101-01-01T00:00:00+00:00
        Identifiers : isbn:9781593080624

But if the 'Languages' setting is "eng", nothing I can do will change it:

X:\Personal\eBooks>ebook-meta tenant.mobi --language=" "
Original metadata::
        Title : The Tenant Of Wildfell Hall
        Author(s) : Anne Bronte
        Book Producer : calibre (0.8.64) [http://calibre-ebook.com]
        Tags :
        Languages : eng
        Published : 0101-01-01T00:00:00+00:00
        Identifiers : isbn:9781741730364, mobi-asin:22935293-0caa-4049-94d4-ed152bb49fa5

Changed metadata::
        Title : The Tenant Of Wildfell Hall
        Author(s) : Anne Bronte
        Book Producer : calibre (0.8.64) [http://calibre-ebook.com]
        Tags :
        Languages : eng
        Published : 0101-01-01T00:00:00+00:00
        Identifiers : isbn:9781741730364, mobi-asin:22935293-0caa-4049-94d4-ed152bb49fa5

I've tried setting the language to "", " ", "en", and "enm". None work.

Related branches

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1154351

ebook-meta is not designed for clearing values, and I have no interest
in adding that fuctionality. I can think of no reason why removing
metadata is a good thing.

 status wontfix

Changed in calibre:
status: New → Won't Fix
Revision history for this message
Budfudder (budfudder) wrote :

It is not a matter of just removing data - if the language is set to "eng" it cannot be changed AT ALL. If the language is set to "en", it can be.

Revision history for this message
Budfudder (budfudder) wrote : Re: [Bug 1154351] Re: calibre bug 1154351

It is not just a matter of clearing values. When the Language value is
"eng", it cannot be changed via the command line AT ALL. When it is "en",
it can.

On Wed, Mar 13, 2013 at 3:06 PM, Kovid Goyal <email address hidden>wrote:

> ebook-meta is not designed for clearing values, and I have no interest
> in adding that fuctionality. I can think of no reason why removing
> metadata is a good thing.
>
> status wontfix
>
> ** Changed in: calibre
> Status: New => Won't Fix
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1154351
>
> Title:
> Command line unable to set language
>
> Status in calibre: e-book management:
> Won't Fix
>
> Bug description:
> My books that have a 'Languages' setting of "en" can have that setting
> reset to nothing:
>
> X:\Personal\eBooks>ebook-meta esop.mobi --language=" "
> Original metadata::
> Title : Aesop's Fables
> Author(s) : Aesop
> Book Producer : calibre (0.7.16) [http://calibre-ebook.com
> ]
> Tags :
> Languages : en
> Published : 0101-01-01T00:00:00+00:00
> Identifiers : isbn:9781593080624
>
> Changed metadata::
> Title : Aesop's Fables
> Author(s) : Aesop
> Book Producer : calibre (0.7.16) [http://calibre-ebook.com
> ]
> Tags :
> Published : 0101-01-01T00:00:00+00:00
> Identifiers : isbn:9781593080624
>
> But if the 'Languages' setting is "eng", nothing I can do will change
> it:
>
> X:\Personal\eBooks>ebook-meta tenant.mobi --language=" "
> Original metadata::
> Title : The Tenant Of Wildfell Hall
> Author(s) : Anne Bronte
> Book Producer : calibre (0.8.64) [http://calibre-ebook.com
> ]
> Tags :
> Languages : eng
> Published : 0101-01-01T00:00:00+00:00
> Identifiers : isbn:9781741730364,
> mobi-asin:22935293-0caa-4049-94d4-ed152bb49fa5
>
> Changed metadata::
> Title : The Tenant Of Wildfell Hall
> Author(s) : Anne Bronte
> Book Producer : calibre (0.8.64) [http://calibre-ebook.com
> ]
> Tags :
> Languages : eng
> Published : 0101-01-01T00:00:00+00:00
> Identifiers : isbn:9781741730364,
> mobi-asin:22935293-0caa-4049-94d4-ed152bb49fa5
>
> I've tried setting the language to "", " ", "en", and "enm". None
> work.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1154351/+subscriptions
>

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1154351

Attach a file demonstrating/reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny lock icon next to "This report contains Public information" in the top right area of the bug's page.

 status incomplete

Changed in calibre:
status: Won't Fix → Incomplete
Revision history for this message
Budfudder (budfudder) wrote :

Attached is a file with which this bug can be replicated. Here's a screen cap of the failure to set the Language:

X:\Personal\eBooks>ebook-meta --language="enm" tenant.mobi
Original metadata::
        Title : The Tenant Of Wildfell Hall
        Author(s) : Anne Bronte
        Book Producer : calibre (0.8.64) [http://calibre-ebook.com]
        Tags :
        Languages : eng
        Published : 0101-01-01T00:00:00+00:00
        Identifiers : isbn:9781741730364, mobi-asin:22935293-0caa-4049-94d4-ed152bb49fa5

Changed metadata::
        Title : The Tenant Of Wildfell Hall
        Author(s) : Anne Bronte
        Book Producer : calibre (0.8.64) [http://calibre-ebook.com]
        Tags :
        Languages : eng
        Published : 0101-01-01T00:00:00+00:00
        Identifiers : isbn:9781741730364, mobi-asin:22935293-0caa-4049-94d4-ed152bb49fa5

Revision history for this message
Budfudder (budfudder) wrote : Re: [Bug 1154351] Re: calibre bug 1154351

File attached to the bug report.

On Wed, Mar 13, 2013 at 8:17 PM, Kovid Goyal <email address hidden>wrote:

> Attach a file demonstrating/reproducing the problem to this bug report.
> You can do that by clicking the "Add attachment or patch" link at the
> bottom of the bug's page. If the file you are attaching is copyrighted,
> mark the bug as private. You can do this by clicking the tiny lock icon
> next to "This report contains Public information" in the top right area
> of the bug's page.
>
> status incomplete
>
> ** Changed in: calibre
> Status: Won't Fix => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1154351
>
> Title:
> Command line unable to set language
>
> Status in calibre: e-book management:
> Incomplete
>
> Bug description:
> My books that have a 'Languages' setting of "en" can have that setting
> reset to nothing:
>
> X:\Personal\eBooks>ebook-meta esop.mobi --language=" "
> Original metadata::
> Title : Aesop's Fables
> Author(s) : Aesop
> Book Producer : calibre (0.7.16) [http://calibre-ebook.com
> ]
> Tags :
> Languages : en
> Published : 0101-01-01T00:00:00+00:00
> Identifiers : isbn:9781593080624
>
> Changed metadata::
> Title : Aesop's Fables
> Author(s) : Aesop
> Book Producer : calibre (0.7.16) [http://calibre-ebook.com
> ]
> Tags :
> Published : 0101-01-01T00:00:00+00:00
> Identifiers : isbn:9781593080624
>
> But if the 'Languages' setting is "eng", nothing I can do will change
> it:
>
> X:\Personal\eBooks>ebook-meta tenant.mobi --language=" "
> Original metadata::
> Title : The Tenant Of Wildfell Hall
> Author(s) : Anne Bronte
> Book Producer : calibre (0.8.64) [http://calibre-ebook.com
> ]
> Tags :
> Languages : eng
> Published : 0101-01-01T00:00:00+00:00
> Identifiers : isbn:9781741730364,
> mobi-asin:22935293-0caa-4049-94d4-ed152bb49fa5
>
> Changed metadata::
> Title : The Tenant Of Wildfell Hall
> Author(s) : Anne Bronte
> Book Producer : calibre (0.8.64) [http://calibre-ebook.com
> ]
> Tags :
> Languages : eng
> Published : 0101-01-01T00:00:00+00:00
> Identifiers : isbn:9781741730364,
> mobi-asin:22935293-0caa-4049-94d4-ed152bb49fa5
>
> I've tried setting the language to "", " ", "en", and "enm". None
> work.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1154351/+subscriptions
>

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: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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