Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2020, 10:21 AM   #1
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Creating Catalog

Hi.

I've been looking all over but can't find anything in regards to how I change the seperator between columns when I create a new catalog. I tried looking in the settings folder, but can't find anything there.

I don't know if it makes any difference, but I'm trying to create a catalog where I need to include a comments column where what's added has retained html-features like links and so on.
Tanjamuse is offline   Reply With Quote
Old 02-18-2020, 03:35 PM   #2
BetterRed
null operator (he/him)
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: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Use calibredb list with a --separator argument set to e.g. @.

BR

Last edited by BetterRed; 02-18-2020 at 03:37 PM. Reason: bold snail
BetterRed is offline   Reply With Quote
Old 02-27-2020, 04:00 PM   #3
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
I tried figuring out what you suggested, but didn't understand much of it.

I've also discovered something very weird. It only happens with books from one site and not from another.

I've looked it over in the "HTML Source" section of the comments column in the normal metadata, but I can't see any differences in there.

Here's the 2 versions of what's there, complete in the HTML Source format:

The One that acts normal:

Code:
<div>
<p>The respite didn't last long. Soon Sydney would have to adjust to a new way of life, massive responsibility, a grueling campaign trail, and a major shock, all the while keeping the personal aspects of her life as private as possible.</p></div>
This one makes the catalog produce over 5.000 commas in a column:

Code:
<div>
<p>The respite didn't last long. In the months after the State of the Union, Sydney would have to adjust to a new way of life, massive responsibility, a grueling campaign trail, and an unexpected major shock. It's all worth it, but she still wants to keep the personal aspects of her new life as private as possible. </p></div>
When I remove the comments column from the columns selected in creating the catalog it acts normal.

I've attached both versions of the catalog in a zip.
Attached Files
File Type: zip Catalog Test.zip (1.1 KB, 110 views)
Tanjamuse is offline   Reply With Quote
Old 02-27-2020, 05:55 PM   #4
BetterRed
null operator (he/him)
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: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
How are you viewing the CSVs you posted?

When I look at the one with Comments in Excel (2019) I don't see lots of commas. Some are shown as a very long line. Other's have a lot of preceding white space and then the text, wrapped according to the Excel column width.

In my experience that is the way of downloaded "Comments". The HTML is inconsistent at best, but just as often it's a shambles. I've never found a 'foolproof' way to make them consistent other than:
  • copy the HTML to clipboard,
  • clear the Comments (Ctrl+A, Del),
  • paste clipboard into Notepad++,
  • fix the HTML to be consistent & simple (I start by removing most of the tags),
  • test in a browser,
  • copy and paste from Notepad++ back into Comments.
But that's probably not a viable option if one is dealing with zillions of books

BR

Last edited by BetterRed; 02-28-2020 at 01:33 AM.
BetterRed is offline   Reply With Quote
Old 02-28-2020, 01:21 AM   #5
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none


Well that's just plain weird. When I open it in LibreOfficeCalc it doesn't create all those commas.



They were there, the last time I opened it in LibreOfficeCalc.

Any suggestions for how to convert the CSV to a database like sqlite?
Tanjamuse is offline   Reply With Quote
Old 02-28-2020, 01:29 AM   #6
BetterRed
null operator (he/him)
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: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Tanjamuse View Post


Well that's just plain weird. When I open it in LibreOfficeCalc it doesn't create all those commas.



They were there, the last time I opened it in LibreOfficeCalc.
Stuff happens - maybe LibreOffice installed a new version of itself - it's called AI.

Quote:
Originally Posted by Tanjamuse View Post
Any suggestions for how to convert the CSV to a database like sqlite?
Have you tried DB Browser.

File->New Database, then File->Import->CSV File

BR
BetterRed is offline   Reply With Quote
Old 02-28-2020, 01:44 AM   #7
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Thanks so much, I'll have a look at DB Browser.
Tanjamuse is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error creating catalog quini Library Management 5 02-09-2020 03:14 PM
Problem with creating catalog Jade Aislin Library Management 2 07-03-2013 05:36 PM
Example of creating a catalog in batch Willum Library Management 9 02-07-2013 01:54 PM
Problem creating catalog beckywc Library Management 10 12-05-2012 03:27 PM


All times are GMT -4. The time now is 10:35 AM.


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