06-29-2024, 03:30 PM | #1 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
|
Wish keystroke to Wrap/Unwrap lines in the editor
Dear Kovid
Could you add this feature to Calibe editor ? I know that switch exists in Preferences > Editor properties, but it is a bit complicated to access to it. So it would be very pleasant to be able to swap, by a keystroke, wrapping of long lines. TIA and cheers for your masterpiece. JJK |
06-29-2024, 04:05 PM | #2 |
Well trained by Cats
Posts: 30,454
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Have you tried Beautify (the flower icon)?
|
Advert | |
|
06-29-2024, 04:42 PM | #3 |
Bibliophagist
Posts: 40,631
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I suspect the OP wants to be able to enable/disable long lines much like enabling/disabling word wrap in a text editor. As mentioned wrap long lines is currently an option in the editor preferences but the OP seems to want a hot key.
Personally, I prefer wrapping lines so I can see the entire line and I see little need for not wrapping lines other than a desire to make seeing the entire line a pain. |
06-29-2024, 10:48 PM | #4 |
creator of calibre
Posts: 44,572
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I dont see a use case for a dedicated shortcut for this. Why do you want to change wrapping often?
|
06-30-2024, 12:54 AM | #5 |
null operator (he/him)
Posts: 21,009
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FWIW - I use the Toggle Line Wrap Mode option in Sigil's CV context menu when I want to see the structure of the code and how that represents in Preview.
BR Last edited by BetterRed; 06-30-2024 at 01:27 AM. Reason: Better screenshot, put a border around menus |
Advert | |
|
06-30-2024, 01:12 AM | #6 | |
Bibliophagist
Posts: 40,631
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
<p class="paran">As she reached for it, her gaze snagged on the last one in the row, a beautiful blue-green oval with tiny red veins. She’d never seen a gem like it, nor had she seen a carving as…arrogant—that was the word that sprang to mind—as this one held. It featured a dragon, its wings spread and its tail curling around to the back of the gem. Was it meant to portray one of the founder dragons? Or simply one of the wild lesser ones remaining in the world today? Who would have believed themselves worthy of wearing such a gem? What master would have carved it? And what would it <i>do</i>?</p> |
|
06-30-2024, 03:03 AM | #7 |
creator of calibre
Posts: 44,572
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
06-30-2024, 01:43 PM | #8 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
|
Thank you, Kovid. That is all I wished. So I will be able to change wrapping on the fly.
That is because I often have to modify epub resulting by export from Indesign, and I want to beautify, to clean the ugly code got by Indesign. Often classes or other attibutes are in the beginning of <p> tags, and so the text I want to clean is at the beginnig of each line. When wrap is on I see all the <p> text but the structure of the file is hide, when it is off I see only the text I want to clean, and file structure is visible. Still thank you. |
07-02-2024, 07:58 AM | #9 |
the rook, bossing Never.
Posts: 12,386
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Ah, the Elephant in the room. Real solution is to ditch Indesign and use docx input.
|
07-02-2024, 08:01 AM | #10 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
|
@Quoth : Yes, I agree, but it is not my choice. Indesign is my only source.
|
07-02-2024, 05:16 PM | #11 |
the rook, bossing Never.
Posts: 12,386
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
07-02-2024, 06:45 PM | #12 |
Resident Curmudgeon
Posts: 76,521
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've edited plenty of InDesign sourced eBooks. It's not that difficult to fix them.
|
07-12-2024, 03:16 PM | #13 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
|
7.14 installed. Thanks Kovid.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF to ePub - impossible to unwrap line breaks on this file? | barbiedolphin | Conversion | 4 | 05-19-2024 07:35 PM |
How to enable Word Wrap in the Editor? | Entry20 | Editor | 4 | 10-02-2018 01:03 PM |
Why does log not show if unwrap lines has been triggered ? | nwpsys | Conversion | 7 | 06-19-2011 05:38 AM |
possible bug about.pdf Unwrap | zambosky | Calibre | 5 | 06-20-2010 10:53 AM |
PDF line unwrap | miquel | Calibre | 15 | 05-26-2010 06:35 PM |