|
|
#1 |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2026
Device: Lenovo J607F (SD750g)
|
Any ways to auto indent on only wanted lines
I created text-only ODT files from LibreOffice Writer. Then, convert it into epub. I use tabs for indents and they are gone when converted to epub. Any things I can do inside Libre Writer, to designate the lines I want indented and will be preserved after the conversion?
|
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,846
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
What are you using the tabs for? Is it to indent paragraphs, or are you using them to create faux columns?
Depending on your answer, it would be easier to to fix the indent in the epub. |
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2026
Device: Lenovo J607F (SD750g)
|
Quote:
For now, I'm doing it the manual way. After conversion, duplicate & rename a css entry, add text.indent. Then back in the body html, find the lines I want, and manually rename their p tags. But that really takes time and it repeats everytime I change the content and convert.
Last edited by Taccess; 06-12-2026 at 08:46 AM. |
|
|
|
|
|
|
#4 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83,741
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#5 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 3972002
Join Date: May 2013
Location: Ontario, Canada
Device: Pop_Os!, Kobo Forma
|
Quote:
I have a Writer template file with styles to match 95% of what I need in an epub novel. I use this file as a starting point to style text output from OCR, for example. Then it goes into Sigil with virtually no further editing needed. Similar will work in Calibre, if not as smoothly. |
|
|
|
|
| Advert | |
|
|
|
|
#6 | |||
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2026
Device: Lenovo J607F (SD750g)
|
Quote:
Quote:
Quote:
|
|||
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,846
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
I'm not familiar with r/l and t/b writing modes.
But from your code examples, you have no indent specified. You need to modify the <p> code and add another class as follows: p { display: block; margin-top: 0; margin-bottom: 0; text-indent: 1em; } which will indent all paragraphs using the <p> tag. Adjust the indent size to your liking. and add... .noindent { text-indent: 0; } which will remove the indent on selected paragraphs. eg... <p class="noindent">This is a paragraph that is not indented</p> Also, what is that line height? There is no class specified for it. |
|
|
|
|
|
#8 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83,741
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Whatever that line-height is, it's way too large to be useful for anything.
|
|
|
|
|
|
#9 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52,419
Karma: 180944990
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Jon, try to remember the OP is not using an English style left to right top to bottom language with Latin characters.
|
|
|
|
|
|
#10 | |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2026
Device: Lenovo J607F (SD750g)
|
Quote:
Then, it seems no automation? If possible, how do I tag and tell the converter, which paragraph is the one I want indented without manual editing afterwards? |
|
|
|
|
|
|
#11 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,815
Karma: 64144480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Pattern matching. Indented always follow this block or symbols (to be removed) Do not lock your work flow thinking into just Conversion only. A simple editor session using a previously 'saved search' (change the class in the next <p> following 'xyzfoo' (and remove the 'xyzfoo' mark) Wham Bam, now convert (or post process after a basic Convert) |
|
|
|
|
|
|
#12 | |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2026
Device: Lenovo J607F (SD750g)
|
Quote:
Thank you all!
|
|
|
|
|
|
|
#13 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,815
Karma: 64144480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
, so no real need for NPP (just for this task)
|
|
|
|
|
|
|
#14 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52,419
Karma: 180944990
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For what it may be worth, I use Sigil for most of my ePub editing tasks partially because I make quite a bit of its ability to save search/search & replace in groups. Click on the search group and watch the searches run. No typing, no typos during the typing, just the computer doing repetitive tasks.
|
|
|
|
|
|
#15 |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2026
Device: Lenovo J607F (SD750g)
|
Just found this out, I used style in Libre Writer to effectively tag all lines I want into one group. Then, the converter will generate a new p tag name for each group. Then I simply add "text-indent: 1.5em;" to the css of the desired p tag. Done! Not even find&replace is needed. Even faster! Smaller room for error.
Thank you for all the help again!
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EPUB to PDF: hyperlinks that span lines make all of both lines clickable | metallserge | Conversion | 4 | 09-23-2021 06:39 AM |
| noindent first line, indent all other lines, same paragraph, possible? | patrik | ePub | 3 | 02-15-2016 11:36 AM |
| Dashed lines auto removed if output type is mobi | flyingfoxlee | Recipes | 3 | 05-20-2013 09:08 AM |
| WTB: Ability to change indent without ticking 'remove spaces between lines' | gweminence | Calibre | 9 | 08-27-2011 09:05 AM |
| Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) | David Derrico | Calibre | 5 | 08-04-2010 12:13 AM |