Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2014, 04:34 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Q2: (Bug?) Import Style sheets

If I import style sheets, and then Link with [Replace Existing] checked, it seems that the href file name is correct, but the rest of the part is not

After manual editing, it's then OK

Paul
Attached Thumbnails
Click image for larger version

Name:	Three.JPG
Views:	533
Size:	63.3 KB
ID:	117448  
phossler is offline   Reply With Quote
Old 01-01-2014, 09:45 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I see nothing incorrect there. Presumably the html file is in a different folder from the imported css file.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-01-2014, 11:29 PM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
I was having issues trying to use Calibre Editor and force fit it into a Sigil folder structure

I believe that I should follow your earlier suggestions and

1) Remember that this is not Sigil and I need to un-learn things, and

2) Epubs don't care about the internal folder structure so stop fighting it

Thanks, and please keep up the development efforts

Paul
phossler is offline   Reply With Quote
Old 01-01-2014, 11:43 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You can always right-click and rename any file; if you include "/" it will recognize that as a folder structure. "Styles/stylesheet.css" will put stylesheet.css into the Styles folder.
eschwartz is offline   Reply With Quote
Old 01-02-2014, 05:39 PM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by eschwartz View Post
You can always right-click and rename any file; if you include "/" it will recognize that as a folder structure. "Styles/stylesheet.css" will put stylesheet.css into the Styles folder.
Kovid had recommended that earlier, but I was not doing it correctly

Eventually I 'renamed' 6 files into folders. It worked, but was a little tedious but it worked

The other thing that I was struggling with was the CSS with @font-face url's. I had to un-learn some Sigil and change the url's below

Code:
/* ----------------------------------------------*/
/* Style sheet to use Charis fonts --------------*/
/* ----------------------------------------------*/

@font-face {
    font-family: 'Charis SIL ModifiedLarger';
    font-weight: normal;
    font-style: normal;
    src: url('../Fonts/CharisSIL-R.ttf');
}

@font-face {
    font-family: 'Charis SIL ModifiedLarger';
    font-weight: bold;
    font-style: normal;
    src: url('../Fonts/CharisSIL-B.ttf');
}

@font-face {
    font-family: 'Charis SIL ModifiedLarger';
    font-weight: normal;
    font-style: italic;
    src: url('../Fonts/CharisSIL-I.ttf');
}

@font-face {
    font-family: 'Charis SIL ModifiedLarger';
    font-weight: bold;
    font-style: italic;
    src: url('../Fonts/CharisSIL-BI.ttf');
}

html, body {
	height: 100%;
	margin: 0;
	padding:0;
	border-width: 0;
	font-family:"Charis SIL ModifiedLarger",serif;
}

@page {
	margin: 5pt;
}

Paul
phossler is offline   Reply With Quote
Advert
Old 01-02-2014, 07:47 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
What we need is an option/plugin to "sort resources into folders".
eschwartz is offline   Reply With Quote
Old 01-05-2014, 03:12 PM   #7
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
Quote:
Originally Posted by eschwartz View Post
What we need is an option/plugin to "sort resources into folders".
Even one to just flatten them all into the root would be a help. When I encounter an existing book with a muddled structure I find myself just opening and saving it in Sigil so it is in a known structure to work from.
AnotherCat is offline   Reply With Quote
Old 01-06-2014, 06:10 AM   #8
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
I think one of the slightly confusing things about the editor is that the "Book Browser" pane appears to show files within a folder structure, and if the book was edited with Sigil everything fits nicely. However the Editor's Book Browser is displaying by function not by location.

It takes a bit of getting used to - the only way I have discovered to work out just what is stored where is by hovering over the files and looking at the status line.

A useful option would be to allow the Book Browser to display by location or by function according to the user's preference.

BobC
BobC is offline   Reply With Quote
Old 01-06-2014, 10:52 AM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,020
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BobC View Post
I think one of the slightly confusing things about the editor is that the "Book Browser" pane appears to show files within a folder structure, and if the book was edited with Sigil everything fits nicely. However the Editor's Book Browser is displaying by function not by location.

It takes a bit of getting used to - the only way I have discovered to work out just what is stored where is by hovering over the files and looking at the status line.

A useful option would be to allow the Book Browser to display by location or by function according to the user's preference.

BobC
Good point!

If the files are not required to be by structure, then the default should be Not Shown as IF they were.
Just stick with the OS default file/folder display. Both Windows and Linux offer a right click option to Arrange by Type or Name

By common usage: folders are shown to the LEFT (with content indented in tree view)
Windows has a Group by: There is NO ICON for the grouping description and the list is not indented (I also assume that only a List will be allowed, since list order is important). Ubuntu also has a

Since Folders are allowed: New Folder should allow for a usage choice that provides a folder with the appropriate Icon (and maybe some sort of internal tracking for managing 'actions' use). They also may need to allow nesting (omnibus built by just combining books , no common styles/images/ (can/should NCX, OPF, fonts, be shared?)
theducks is offline   Reply With Quote
Old 01-06-2014, 11:04 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Nope. They are not shown as if by structure. They are shown by file type. People coming from Sigil assume they are shown by structure because it looks like Sigil's file browser. I am not going to cripple ebook edit just to conform to expectations of ex-Sigil users.

There will be a tool to automatically re-arrange the files in whatever folder structure you like so you can normalize the structure when starting work on a book. Other than that, I really have no interest in adding more UI for managing meaningless inside book folder structures. For the *vast* majority of books putting files in folders is utterly pointless. For the few where it might have a legitimate use, edit book actually allows you to put files in whatever folders make sense *to you*.
kovidgoyal is offline   Reply With Quote
Old 01-06-2014, 11:45 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,020
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by kovidgoyal View Post
Nope. They are not shown as if by structure. They are shown by file type. People coming from Sigil assume they are shown by structure because it looks like Sigil's file browser. I am not going to cripple ebook edit just to conform to expectations of ex-Sigil users.

There will be a tool to automatically re-arrange the files in whatever folder structure you like so you can normalize the structure when starting work on a book. Other than that, I really have no interest in adding more UI for managing meaningless inside book folder structures. For the *vast* majority of books putting files in folders is utterly pointless. For the few where it might have a legitimate use, edit book actually allows you to put files in whatever folders make sense *to you*.
I am doing my usual poor job of conveying things.
I am not advocating Sigil type Structure.

I am simply requesting a slight change on how you display the CURRENT used grouping to avoid confusion

Group type label (only)
<type icon> filename
<type icon> filename
<type icon> filename

Group2 type label (only)
<type icon> filename
<type icon> filename
<type icon> filename


No icons on group labels so they can't be mistaken for hierarchical structure.
No indent unless there is a folder where these files are located
theducks is offline   Reply With Quote
Old 01-06-2014, 12:06 PM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Replicating the same icon on every file of the same type is redundant. It also makes it impossible to use the current emblems for indicating covers/opf/ncx files etc. In other words, it restricts the functionality of the files browser to cause less confusion for people that expect it to reflect a folder structure. I could certainly remove the indents, but then that will run counter to how every tree structure in every application works, potentially confusing far more people.

These are expectations that have built up over years of using Sigil. Just give it time, those expectations will dissolve. There is always some friction when migrating between similar but somewhat different software. That is inevitable.

One of my principles is to not restrict edit book to conform to UI expectations from Sigil, that is a long term losing proposition. Because once you choose a particular UI changing it in the future carries very high migration costs for software as popular as calibre.
kovidgoyal is offline   Reply With Quote
Old 01-06-2014, 01:09 PM   #13
elibrarian
Imperfect Perfectionist
elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.
 
elibrarian's Avatar
 
Posts: 649
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
Fwiw, I have a particularly nasty example of the consequenses of Calibres editor not showing the file structure. The file is a merge of five books to one, using Calibres plugin to merge epubs. The files are all jumbled in the editor's browser, but opening the same file in 7zip showed that it was actually quite well structured, with each book in a separate folder. (And to be just, Sigil didn't like it either, so I ended up doing the merge "by hand" so to speak.)



Regards,

Kim
Attached Thumbnails
Click image for larger version

Name:	calibre-editor.png
Views:	437
Size:	19.4 KB
ID:	117654   Click image for larger version

Name:	zip.png
Views:	436
Size:	19.9 KB
ID:	117655  
elibrarian is offline   Reply With Quote
Old 01-06-2014, 04:48 PM   #14
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
From my own selfish point of view what is being proposed is great.

@elibrarian:

Experiences with the epubmerge plugin with the multitude of folders it creates (including separate folders with files of duplicate content in them, such as when merged books have stylesheets some or all of which have the same content) is one of the reasons I suggested being able to flatten the folder structure. As I see it, what is proposed makes much of the workload I encounter in rationalising matters such as those go away as in most cases there does not seem to be any justification for a folder structure in a finished book merged from others.
AnotherCat is offline   Reply With Quote
Old 01-06-2014, 10:16 PM   #15
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@elibrarian: Your screenshot shows the files being listed in spine order. To me that is far more useful than showing them in a folder structure. Suppose the folders in the zip file were in the order 3 4 5 2 1 instead of 1 2 3 4 5 (the order of folders in a zip file is essentially random, it comes from when the folders were created inside the file). You would have a hard time doing the most basic task, advancing from one html file to the next, in order.

Furthermore, you can use the bulk rename tools to easily give the files better names, like book1-1-10.html book2-1-15.html and so on... That will take a couple of minutes and remove any advantage of the folder view or the files browser.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple style sheets for different languages djstormer ePub 5 11-16-2012 01:42 AM
Style Sheets in Calibre jerrywat Conversion 1 09-07-2012 01:35 PM
SVG style sheets in EPUBs Chang ePub 11 02-24-2012 09:41 AM
style sheets bramwell1922 Sigil 11 11-16-2011 03:05 PM
Sigil Style Sheets crutledge Sigil 3 10-06-2010 08:48 AM


All times are GMT -4. The time now is 02:12 PM.


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