06-29-2024, 02: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, 03:05 PM | #2 |
Well trained by Cats
Posts: 30,441
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)?
|
06-29-2024, 03:42 PM | #3 |
Bibliophagist
Posts: 40,391
Karma: 156982136
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, 09:48 PM | #4 |
creator of calibre
Posts: 44,499
Karma: 24495778
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-29-2024, 11:54 PM | #5 |
null operator (he/him)
Posts: 20,987
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 12:27 AM. Reason: Better screenshot, put a border around menus |
06-30-2024, 12:12 AM | #6 | |
Bibliophagist
Posts: 40,391
Karma: 156982136
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, 02:03 AM | #7 |
creator of calibre
Posts: 44,499
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
06-30-2024, 12: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, 06:58 AM | #9 |
the rook, bossing Never.
Posts: 12,326
Karma: 90943357
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, 07: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, 04:16 PM | #11 |
the rook, bossing Never.
Posts: 12,326
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
07-02-2024, 05:45 PM | #12 |
Resident Curmudgeon
Posts: 76,316
Karma: 136006010
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, 02: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 06:35 PM |
How to enable Word Wrap in the Editor? | Entry20 | Editor | 4 | 10-02-2018 12:03 PM |
Why does log not show if unwrap lines has been triggered ? | nwpsys | Conversion | 7 | 06-19-2011 04:38 AM |
possible bug about.pdf Unwrap | zambosky | Calibre | 5 | 06-20-2010 09:53 AM |
PDF line unwrap | miquel | Calibre | 15 | 05-26-2010 05:35 PM |