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 11-27-2022, 12:09 AM   #1
qweqwe123456
Junior Member
qweqwe123456 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2022
Device: none
How to view the html source code of epub through calibre

Previously, I successfully clicked the button casually, but now I want to click it and forget the path of the function button.
Function introduction: click to view all html texts in epub

If you know, please tell me, thank you
qweqwe123456 is offline   Reply With Quote
Old 11-27-2022, 12:26 AM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,094
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
You have to use the "Edit Book" option.

Open the book and you will see the xhtml, css and other pages
Karellen is online now   Reply With Quote
Old 11-27-2022, 12:39 AM   #3
qweqwe123456
Junior Member
qweqwe123456 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2022
Device: none
Quote:
Originally Posted by Karellen View Post
You have to use the "Edit Book" option.

Open the book and you will see the xhtml, css and other pages
Thank you for your answer, but it is not the "Edit Book" function. There is a function button that can display all the html files in an epub book in a small window, similar to viewing html files in txt format
qweqwe123456 is offline   Reply With Quote
Old 11-27-2022, 01:41 AM   #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,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by qweqwe123456 View Post
Thank you for your answer, but it is not the "Edit Book" function. There is a function button that can display all the html files in an epub book in a small window, similar to viewing html files in txt format
It is in Edit book, viz:

Click image for larger version

Name:	Screenshot 2022-11-27 173619.jpg
Views:	1095
Size:	457.0 KB
ID:	198034

Make the window as big/small as you want.

Keyboard shortcuts

BR
BetterRed is offline   Reply With Quote
Old 11-27-2022, 11:53 AM   #5
retiredbiker
Addict
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 387
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
An epub is a zip archive. Is it possible you at some point had epub files set to "open with" an archive manager? That would give you a texty view of the contents.
retiredbiker is offline   Reply With Quote
Old 11-27-2022, 12:29 PM   #6
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,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Are you thinking of the View, File Browser button/setting available when editing a book?
phossler is offline   Reply With Quote
Old 12-03-2022, 08:17 AM   #7
qweqwe123456
Junior Member
qweqwe123456 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2022
Device: none
None of the above functions are what I want.
It took me about two weeks to find it. Which can directly view the epub and combine all the html texts for viewing
qweqwe123456 is offline   Reply With Quote
Old 12-03-2022, 10:41 AM   #8
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 997
Karma: 6417070
Join Date: Sep 2020
Device: Calibre E-book viewer
https://www.mobileread.com/forums/sh...d.php?t=178799

Comfy.n is offline   Reply With Quote
Old 02-28-2023, 03:47 PM   #9
Frometa
Junior Member
Frometa began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2022
Device: ninguno
Please, I'm interested, could you share the solution?
Frometa is offline   Reply With Quote
Old 02-28-2023, 06:16 PM   #10
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: 29,800
Karma: 54830978
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 qweqwe123456 View Post
None of the above functions are what I want.
It took me about two weeks to find it. Which can directly view the epub and combine all the html texts for viewing
Why do you want to make things harder than they need be?

The Editor shows both Code and preview views of each component (viewable text) as well as the CSS and OPF
The Editor allows you to add Images, HTML and CSS files

I find no valid reason for one huge Monolithic mess.
The S&R, spell check features work across all parts (selected by type).
You can drag the order of the sections
theducks is offline   Reply With Quote
Old 02-28-2023, 06:19 PM   #11
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: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What the OP wants is a really terrible way to do it and using the editor is the best way to do it.
JSWolf is online now   Reply With Quote
Old 03-01-2023, 09:58 AM   #12
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Maybe he meant the 'Inspector' (see the attached screenshot). I use the inspector a lot, but mostly inside the Editor. It is useful to find CSS conflicts.

To use it in the Viewer, just press 'Esc' to show the controls, and choose 'Inspector' at the bottom.

On the inspector window, you can hover the paragraphs and they are highlighted on the Viewer window.

P.S.: It is easier to use it inside the Editor, because the Viewer has a lot of extra HMTL/CSS. The book content is inside '#document'.
Attached Thumbnails
Click image for larger version

Name:	Inspector.png
Views:	89
Size:	491.1 KB
ID:	200039  
thiago.eec is offline   Reply With Quote
Old 04-06-2023, 11:36 AM   #13
qweqwe123456
Junior Member
qweqwe123456 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2022
Device: none
Quote:
Originally Posted by thiago.eec View Post
Maybe he meant the 'Inspector' (see the attached screenshot). I use the inspector a lot, but mostly inside the Editor. It is useful to find CSS conflicts.

To use it in the Viewer, just press 'Esc' to show the controls, and choose 'Inspector' at the bottom.

On the inspector window, you can hover the paragraphs and they are highlighted on the Viewer window.

P.S.: It is easier to use it inside the Editor, because the Viewer has a lot of extra HMTL/CSS. The book content is inside '#document'.
Thanks, your reply reminded me that you can quickly view part of the source code for EPUB in EDGE.
qweqwe123456 is offline   Reply With Quote
Old 04-06-2023, 11:42 AM   #14
qweqwe123456
Junior Member
qweqwe123456 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2022
Device: none
Quote:
Originally Posted by theducks View Post
Why do you want to make things harder than they need be?

The Editor shows both Code and preview views of each component (viewable text) as well as the CSS and OPF
The Editor allows you to add Images, HTML and CSS files

I find no valid reason for one huge Monolithic mess.
The S&R, spell check features work across all parts (selected by type).
You can drag the order of the sections
My goal is to quickly get the entire HTML source for the EPUB and convert it to Markdown. Opening the EPUB with an editor splits the entire text into multiple HTML files. Additionally, calibre's EPUB conversion Markdown plugin changes the name of the image at will.
And I don't know much about scripting plug-ins
At the end of 2023 March, I finally figured out where the function was. Can barely improve the efficiency of their access to HTML source
qweqwe123456 is offline   Reply With Quote
Old 04-06-2023, 02:14 PM   #15
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,156
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
No, the epub is usually ALREADY separate html files.
Also the HTML without the css file is broken.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre lose code block style on EPUB to HTML conversion phase mw-b Conversion 1 11-02-2018 02:56 AM
Help With Mobi HTML Source Code JeremyBenson Kindle Formats 1 02-01-2013 02:59 AM
Source code for converting html to mobi Thisiswhatiam Kindle Formats 10 06-04-2012 02:47 PM
Viewing the source code for converting html to mobi. Thisiswhatiam Development 3 05-23-2012 03:12 PM
HTML to epub displays munged source code haven Conversion 4 03-10-2011 10:08 PM


All times are GMT -4. The time now is 03:26 AM.


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