03-19-2021, 08:38 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Mar 2021
Device: sigil, calibre, erareader
|
I need help!
Hey, newbie here
So I have been trying to edit this epub on sigil but I'm having trouble with one thing... So basically I have my "style" setteled down but on each paragraph so that's not a problem but i gotta do this "<p> ... </p>" by hand everytime and if you consider that there is over 5000 paragraphs its quite the hussle to do each one of them by hand Can I automize this whole process? |
03-20-2021, 04:57 AM | #2 |
Well trained by Cats
Posts: 29,812
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
It is called a (linked) 'stylesheet'
p{ your style stuff here } What that says is apply that to ALL 'p' tags Now this is real basic and you will probably want more, but get OUT of the habit of inline style="blahblah' coding. You will end up with a nightmare if you want to change, whereas there is ONE place to make a change with a stylesheet. Take a ebook you like and look at the stylesheet click once on the tag for a paragraph, then right click: Go to link or style. Sigil will normally take you right there |
Advert | |
|
03-20-2021, 06:09 AM | #3 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil itself is not really the tool to help you take plain text and turn it into html (though there might be some plugins to help in that regard). Sigil is most commonly used to take html exported from another source and use it to create an epub (though I understand some have some success pasting small amounts of rich text into Sigil's Code View). But if I understand you correctly, Sigil's not really the right tool to help you wrap 5000 paragraphs of plain text with individual p tags.
|
03-20-2021, 08:27 AM | #4 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
BTW, Calibre will automatically convert: Spoiler:
to: Spoiler:
(To customize the epub output select, Preferences > Input options > TXT input.) |
|
03-20-2021, 02:37 PM | #5 |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
On import of text files, Sigil will use double newlines to mark paragraph boundaries and wrap them in p tags when imported.
|
Advert | |
|
03-20-2021, 11:38 PM | #6 | |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
I feel like I may be totally misunderstanding things here, but just in case this is useful ...
Quote:
(Again, I may be misunderstanding the goal here since Doitsu recommended Calibre instead of mentioning his plugin ) I'm sure I'm doing or thinking something stupid, but when I use Add Existing to import a text file, I don't get any p tags ... |
|
03-21-2021, 04:50 AM | #7 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
|
03-21-2021, 12:39 PM | #8 |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
|