|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2016
Device: Kindle DXG 3.4.2
|
[File Type Plugin] FB2 Poetry Reflow
FB2 Poetry Reflow makes ordinary FB2 poetry easier to read on small screens.
When calibre converts an FB2 book, poems normally get a wide left margin. This plugin removes that extra margin and gives wrapped verses a hanging indent, making it easier to distinguish the continuation of a verse from the beginning of the next one. It runs automatically when converting from FB2 to formats such as EPUB or AZW3. The original FB2 file is not modified. Example Before: Code:
The evening wind carries
the sound of the sea
A small light waits at
the end of the quay
Code:
The evening wind carries the sound of the sea A small light waits at the end of the quay What it preserves
Limitations The source FB2 must identify the text as poetry. The plugin does not guess which ordinary paragraphs are poems, and it does not process existing EPUB or AZW3 files as input. Poems with detectable explicit styling, alignment, or deliberate spacing are skipped and left to calibre’s normal conversion. This is a conservative heuristic, so please preview books containing visual or unusually arranged poetry. For zipped FB2 files, extract the .fb2 before converting. Compatibility Tested with calibre 9.13 on Linux, producing EPUB and AZW3. The result has also been checked on a physical e-reader. The plugin allows installation on calibre 5.0 and newer, but versions 5–8 are unverified. Windows and macOS are supported platforms; full conversion testing so far has been on Linux. Installation
Usage Convert a book normally, making sure the input format is FB2. There is no additional button or configuration step. To disable it, go to Preferences → Plugins → File type plugins → FB2 Poetry Reflow. Reconvert from the original FB2 to obtain calibre’s default output. Source and license Source code and README GitHub releases License: MIT. Version History Spoiler:
Feedback is welcome. When reporting a problem, please include your calibre version, output format, and reader model or application. A small example that you have permission to share is especially helpful. |
|
|
|
|
|
#2 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,808
Karma: 153788249
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is there any advantage to using FB2?
|
|
|
|
|
|
#3 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Unlike EPUB, it supports headings, epigraphs, footnotes, and poetry.
|
|
|
|
|
|
#4 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,808
Karma: 153788249
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#5 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,948
Karma: 64187770
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Agree with Jon
It is called an 'outdent' You set a wider margin: Code:
margin-left:2em; text-indent: -2em; |
|
|
|
|
|
#6 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 2268308
Join Date: Nov 2015
Device: none
|
With FB2, you are not limited to hanging indents. You can have proper right justification for the wrapped part.
|
|
|
|
|
|
#7 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,290
Karma: 182161621
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
With the correct CSS, you can do pretty much anything in an ePub. Once you have created the needed CSS, it just becomes a matter of copy/paste. I have multiple sets for headings, chapter headers, epigraphs, poetry, screen plays and even footnotes in ePub2 or ePub3 when I'm not looking for backwards compatibility.
OTOH, IMNSHO, this is much like any other conversion tool for those who are not willing/able to down and dirty with the internals of an ePub file. It may not be the prettiest but it works in translating FB2's poetry tags (<poem>, <stanza>, <v> and likely others that I am not aware of) which have no direct equivalents in ePub. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New file type plugin - Issue with metadata | mfsav2 | Development | 5 | 10-22-2025 08:22 AM |
| [File Type Plugin] Auto Multi-Convert | Squiffers | Plugins | 1 | 06-26-2025 10:46 PM |
| [File Type Plugin] Extract RIS Citations | DaltonST | Plugins | 26 | 03-10-2023 04:20 PM |
| [File Type Plugin] Zip to cbz | Saumee | Plugins | 2 | 07-29-2018 03:38 PM |
| PDB to PMLZ File type plugin | pdurrant | Plugins | 18 | 02-20-2010 02:19 PM |