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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-04-2018, 05:38 PM   #301
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: 9,517
Karma: 7875663
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Moderator Notice

@marm2017 - Please post in English - a Google translate of Spanish, French, whatever is normally adequate? See my my edit to post 300. The maintainer of the plugin may not understand Spanish.

Thanks

BR
BetterRed is offline   Reply With Quote
Advert
Old 01-04-2018, 06:07 PM   #302
Terisa de morgan
Wizard
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 4,605
Karma: 4850002
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Aura, Kobo Aura One, XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
The problem is how you define the language. You have to use the ISO 639-2 code (Spa for Spanish, Eng for English) instead of the label. In that way it works fine. So, the only problem is that the plugin discard a field that it doesn't know how to translate.

---

El problema es cómo defines el idioma. Tienes que usar el código ISO 639-2 (Spa para español, Eng para inglés) en lugar de la etiqueta. Así va bien. Por tanto, el único problema es que el plugin descarta un campo que no sabe cómo traducir.
Terisa de morgan is offline   Reply With Quote
Old 01-04-2018, 07:08 PM   #303
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,697
Karma: 22998798
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Quote:
Originally Posted by Terisa de morgan View Post
The problem is how you define the language. You have to use the ISO 639-2 code (Spa for Spanish, Eng for English) instead of the label. In that way it works fine. So, the only problem is that the plugin discard a field that it doesn't know how to translate.

---

El problema es cómo defines el idioma. Tienes que usar el código ISO 639-2 (Spa para español, Eng para inglés) en lugar de la etiqueta. Así va bien. Por tanto, el único problema es que el plugin descarta un campo que no sabe cómo traducir.
My notes when I released the language supporting version included the names as well as the code. But, it's likely that the names are simple versions without any accented characters, effectively longer codes rather than the names. It could just be that I am mishandling the input and normalizing it or something might fix it.

@marm2017: Can you post or PM the CSV file so that I can test it. I can't promise to fix this, but, I'll have a look.
davidfor is offline   Reply With Quote
Old 01-05-2018, 01:47 AM   #304
Terisa de morgan
Wizard
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 4,605
Karma: 4850002
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Aura, Kobo Aura One, XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by davidfor View Post
My notes when I released the language supporting version included the names as well as the code. But, it's likely that the names are simple versions without any accented characters, effectively longer codes rather than the names. It could just be that I am mishandling the input and normalizing it or something might fix it.
If I use as name "English" instead of "Inglés" it works but "Chino" (without accented characters) doesn't work. So, I'm afraid the problem is the language
Terisa de morgan is offline   Reply With Quote
Old 01-05-2018, 06:19 AM   #305
marm2017
Junior Member
marm2017 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2017
Device: Calibre
Quote:
Originally Posted by Terisa de morgan View Post
If I use as name "English" instead of "Inglés" it works but "Chino" (without accented characters) doesn't work. So, I'm afraid the problem is the language

Thanks for answering. I will keep trying.
marm2017 is offline   Reply With Quote
Old 01-07-2018, 08:38 AM   #306
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,697
Karma: 22998798
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Beta: Fix handling of languages

I've looked at the way the languages are being imported and realised that I had missed a case. This meant that it was not correctly handling language names in the local language. It was handling the two or three letter codes plus the English name for the language. This change will allow the language to be entered in the language used for the calibre interface.

For example, if using Spanish, any of the following can be used to set the book language to Spanish:

- Español
- esp
- es
- es-SP (and any other code like this)
- Spanish

I have tested this with the CSV file that marm2017 sent, with a few changes. Please test and tell me if it works properly.
Attached Files
File Type: zip Import List-beta.zip (117.7 KB, 9 views)
davidfor is offline   Reply With Quote
Old 01-07-2018, 06:12 PM   #307
marm2017
Junior Member
marm2017 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2017
Device: Calibre
Quote:
Originally Posted by davidfor View Post
I've looked at the way the languages are being imported and realised that I had missed a case. This meant that it was not correctly handling language names in the local language. It was handling the two or three letter codes plus the English name for the language. This change will allow the language to be entered in the language used for the calibre interface.

For example, if using Spanish, any of the following can be used to set the book language to Spanish:

- Español
- esp
- es
- es-SP (and any other code like this)
- Spanish

I have tested this with the CSV file that marm2017 sent, with a few changes. Please test and tell me if it works properly.
Problem solved. Now it works perfectly.
Thank you very much.
Happy 2018
marm2017 is offline   Reply With Quote
Old 01-12-2018, 01:14 AM   #308
Terisa de morgan
Wizard
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 4,605
Karma: 4850002
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Aura, Kobo Aura One, XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
I have a question about this plugin. I want to import some data to columns of type "Text, fixed set of values" (excuse the wording, I use the Spanish interface, it's like an enumerated column), but they don't appear in the list of fields I want to import. Is that right?

Last edited by Terisa de morgan; 01-12-2018 at 01:17 AM. Reason: typo
Terisa de morgan is offline   Reply With Quote
Old 01-12-2018, 01:33 AM   #309
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,697
Karma: 22998798
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Quote:
Originally Posted by Terisa de morgan View Post
I have a question about this plugin. I want to import some data to columns of type "Text, fixed set of values" (excuse the wording, I use the Spanish interface, it's like an enumerated column), but they don't appear in the list of fields I want to import. Is that right?
I had to look at the code. Not, it doesn't display these types of columns. I'm not sure why. It's probably because there is no way to ensure the input is in the set of values. I think the only thing you could do would be to reject the value and not set it if it isn't valid. Which is effectively what happens with the language.

I'll try and have a look over the weekend. If doing the above isn't hard, I'll add it.
davidfor is offline   Reply With Quote
Old 01-12-2018, 01:38 AM   #310
Terisa de morgan
Wizard
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 4,605
Karma: 4850002
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Aura, Kobo Aura One, XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by davidfor View Post
I had to look at the code. Not, it doesn't display these types of columns. I'm not sure why. It's probably because there is no way to ensure the input is in the set of values. I think the only thing you could do would be to reject the value and not set it if it isn't valid. Which is effectively what happens with the language.

I'll try and have a look over the weekend. If doing the above isn't hard, I'll add it.
Thank you very much!
Terisa de morgan is offline   Reply With Quote
Old 01-13-2018, 01:42 AM   #311
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,697
Karma: 22998798
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Beta: Support enumeration columns

It turned out the change to handle enumeration columns or "Text, but with a fixed set of permitted values" was simple. So here is a beta that does this.

This will add the "Text, but with a fixed set of permitted values" columns to the list of fields that can be selected when importing. But, it makes no attempt to validate the values. If the value in the import file is in the list of permitted values, it will be used. If it isn't, then it will be ignored. No error will be shown. This is similar to the languages column.

I have done a little testing with my one-and-only column of this type. It seems to work. Tell me if there are any problems. If I hear everything is OK, I'll release this properly next week.
Attached Files
File Type: zip Import List-beta.zip (117.8 KB, 4 views)
davidfor is offline   Reply With Quote
Old 01-13-2018, 05:28 AM   #312
Terisa de morgan
Wizard
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 4,605
Karma: 4850002
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Aura, Kobo Aura One, XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Thank you!, it works totally fine for me (two columns from my side, with right values, I haven't tested wrong values).
Terisa de morgan 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
[GUI Plugin] Reading List kiwidude Plugins 774 12-23-2017 11:10 AM
[GUI Plugin] Manage Sony x50 Reader Book List kpw Plugins 170 10-02-2014 09:23 PM
Import List plugin idea thread kiwidude Development 45 08-13-2012 07:05 AM
[GUI Plugin] WebOS Kindle-Import CranstD Plugins 0 01-24-2012 04:36 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 01:38 PM.


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