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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-13-2021, 02:09 AM   #16
The_book
Connoisseur
The_book began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Aug 2019
Device: none
Quote:
Originally Posted by davidfor View Post
So why don't you want any CSS in the epub? Calibre won't convert a book without generating a basic CSS. But, you can remove or replace it. If you remove it, you are completely dependent on how what you are reading it with decides to style the tags.
Thanks. I just want the file to contain only the features I want. Css and Class are not the functions I want, and they cause some interference when editing files.
The_book is offline   Reply With Quote
Old 05-13-2021, 02:58 AM   #17
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: 22,114
Karma: 40026751
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by The_book View Post
Thanks. I just want the file to contain only the features I want. Css and Class are not the functions I want, and they cause some interference when editing files.
Sorry, but that doesn't make sense. The CSS is what sets how each tag is displayed. And the class attribute defines which class to use in the styleheet when you don't want the standard for that tag.

And from the point of view of editing an epub, most of my time is spent getting the styles correct. Editing of the actual text should be done elsewhere and then converted to appropriate publishing formats. Then those are tweaked to solve problems that the conversion cannot handle.

Maybe the question I should have asked was: What are you actually trying to achieve?
davidfor is online now   Reply With Quote
Advert
Old 05-13-2021, 04:02 AM   #18
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,221
Karma: 18779449
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by The_book View Post
Because I want the toc in the Epub.
pure txt do not have toc. markdown support toc, but I haven't find a book reader support reading markdown files
Shameless plug: if you're trying to convert a single Markdown file, you might find my Markdown Sigil plugin helpful.
It is not as sophisticated as the Calibre text filters, but it won't add any styles to the epub.
However, it won't automatically generate a TOC, but if you used the proper Markdown heading syntax, all you have to do is select Tools > Table of Contents > Generate Table Of Contents.
Doitsu is offline   Reply With Quote
Old 05-13-2021, 05:20 AM   #19
Sarmat89
Addict
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 278
Karma: 2134102
Join Date: Nov 2015
Device: none
Just convert to EPUB, delete the CSS file, and use "Cleanup CSS function" - it should remove useless "class" attributes.
Sarmat89 is offline   Reply With Quote
Old 05-13-2021, 06:29 AM   #20
The_book
Connoisseur
The_book began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Aug 2019
Device: none
Quote:
Originally Posted by davidfor View Post
Sorry, but that doesn't make sense. The CSS is what sets how each tag is displayed. And the class attribute defines which class to use in the styleheet when you don't want the standard for that tag.

And from the point of view of editing an epub, most of my time is spent getting the styles correct. Editing of the actual text should be done elsewhere and then converted to appropriate publishing formats. Then those are tweaked to solve problems that the conversion cannot handle.

Maybe the question I should have asked was: What are you actually trying to achieve?
I think I have said it before. I want the toc function of epub. The directory analysis of txt files by e-book reading software cannot meet my needs, and markdown files are not yet supported by most reading software (in fact, I have switched to markdown to store and read e-books on my computer) .
The_book is offline   Reply With Quote
Advert
Old 05-13-2021, 09:16 AM   #21
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: 22,114
Karma: 40026751
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by The_book View Post
I think I have said it before. I want the toc function of epub. The directory analysis of txt files by e-book reading software cannot meet my needs, and markdown files are not yet supported by most reading software (in fact, I have switched to markdown to store and read e-books on my computer) .
Which doesn't actually answer my question. Or at least not clearly. What it says is that you do not believe that ePub is a good format but are forced to use it in certain circumstances. So, why are you worried about removing the CSS? You are planning to read the book and the delete it. What you should be doing is creating a stylesheet that matches the styles used by whatever reader you are using for your markdown versions, putting that in the epub so that when read on the device you get your preferred experience.

And as to "markdown files are not yet supported by most reading software", that is because it doesn't do a lot of the things people want. Which you clearly know as you want the ToC that epubs do deliver.
davidfor is online now   Reply With Quote
Old 05-13-2021, 09:30 AM   #22
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 63,658
Karma: 103414487
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by Sarmat89 View Post
Just convert to EPUB, delete the CSS file, and use "Cleanup CSS function" - it should remove useless "class" attributes.
When you convert to ePub, you don't get any unused CSS. CSS is not useless. Without it, I would not be reading eBooks as I do not like the format I get from just the defaults.
JSWolf 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
Converting ePub to Mobi reducing margin-top on CSS class battle_brother Conversion 4 06-20-2019 08:31 AM
Convert Several Html and Css files into one Epub File? MarjaE Editor 3 04-04-2017 03:20 PM
add css file to epub conversion VICTORSJG Calibre 0 09-21-2011 07:38 AM
epub.css file in OpenInkpot cloggy OpenInkpot 1 11-09-2010 07:28 PM
How can i convert HTML or txt file to EPUB file ? guguqiaqia ePub 7 05-28-2010 09:15 PM


All times are GMT -4. The time now is 07:04 AM.


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