![]() |
#16 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Nov 2012
Location: Bellow the Sky
Device: Laptop
|
Quote:
so my book have this one exact line of chapters e g <p>Chapter One: introduction</p> <p>Chapter Two: what is learning</p> <p>Chapter Three: how to start </p> i want to use this tag in all these lines <h3> </h3> so can you please write here exact code which will find out all chapter block lines and put that tag on it |
|
![]() |
![]() |
![]() |
#17 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
Join Date: Jul 2021
Device: N/A
|
You can put the cursor on the line you want to transform and hit Ctrl-3
Or you can make a search: <p>(Chapter\s[^<]+)</p> replace: <h3>\1</h3> If you choose "replace all", check the result at the end. All paragraphes begining with <p>Chapter will be targeted. If that's a problem, it is possible to refine and target the latter but with a colon inside the text: <p>(Chapter\s[^:]+:[^<]+)</p> As advised, you probably want to learn the basis of the regexes, then you'll be able to create your own searches, it's very usefull. This one, for example, is a very basic one with no special difficulties. Last edited by lomkiri; 01-11-2022 at 07:24 AM. |
![]() |
![]() |
![]() |
#18 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Nov 2012
Location: Bellow the Sky
Device: Laptop
|
Quote:
is that possible to add some css code related to this and all these lines will be in h1 tag if its possible then what code i have to add in css file ? |
|
![]() |
![]() |
![]() |
#19 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,905
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:
you don't NEED a CSS entry IF you are willing to accept the (devices) default for H3 (or any other block type tag) The Middle S is STYLE (as in YOUR preference) And FWIW my original answer was 95% there. You just needed to wrap the search pattern in <p> tags |
|
![]() |
![]() |
![]() |
#20 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Hi Lonly,
I don't mean to be rude, but I feel I need to be a little blunt, not just for you, but for others on MR who have the same types of questions as you. There are MANY people here who are more than happy to help you when you get stuck on a particular aspect of making eBooks. But the idea is to help YOU to learn to do it. It is not to do it FOR you. If you want someone to do it for you because you are unwilling or unable to do it, then there are also professional eBook makers you can take your project to. When you ask for specific steps to fix one minor issue - multiple times - it seems that you are just asking for us to do the work for you. There have been several recommendations on how/where you can educate yourself on the whole process: * Learn html/css * Learn regex * Read the Calibre users guide / or the Sigil users guide There are some decent tutorials on MR's Wiki page, although they may be slightly old. It really doesn't take more than a few hours to get a basic grasp of the items listed above...once you understand the basics it's much easier to understand how to apply the answers that you've already been given. Cheers! ![]() |
![]() |
![]() |
![]() |
#21 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Nov 2012
Location: Bellow the Sky
Device: Laptop
|
Quote:
thanks for your advise Dear a lot of things i learn myself but if i stuck anywhere i spend many hours to learn myself and trying to fix but if i cannot get success then i ask help here and if someone help me here that doesn't mean i am not learning from his/her help. my first priority is always to learn myself |
|
![]() |
![]() |
![]() |
#22 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
We've all been there; we all taught ourselves. Don't bullshit the bullshitters. Hitch |
|
![]() |
![]() |
![]() |
#23 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,905
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:
No REGEX (OMG it was so confusing) No CSS (HTML3 did not have that. You took what you got). With the help of pointers, tutorials, I started . As to CSS, I created a 'Sampler' of things (effects) to do (mostly to make headings less plain) to learn what does what (and what you can't do ![]() Then, listening to the folk who do this for a living, what should NOT be done, because it LIMITS your market only to devices that support that mode. ![]() |
|
![]() |
![]() |
![]() |
#24 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I learned a lot by diving into ePub code and using the Internet to look things up, asking some questions here, and taking note of some things I've read here. Most of what I've learned, I did so on my own.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editing epub in Calibre | milest | Editor | 6 | 09-17-2021 01:49 PM |
Editing an epub file | steveredshaw | Workshop | 3 | 12-29-2019 11:56 AM |
Editing ePub | rajadevotta | Editor | 3 | 06-18-2015 11:56 AM |
Editing epub's style.css when converting to epub | Pros | Calibre | 0 | 02-02-2012 01:13 PM |
ePub editing tool | cyberbaffled | ePub | 22 | 10-16-2009 12:16 PM |