Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2024, 03:30 PM   #1
jjk
Enthusiast
jjk began at the beginning.
 
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
jjk is offline   Reply With Quote
Old 06-29-2024, 04:05 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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)?
theducks is offline   Reply With Quote
Advert
Old 06-29-2024, 04:42 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 06-29-2024, 10:48 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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?
kovidgoyal is offline   Reply With Quote
Old 06-30-2024, 12:54 AM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
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.

Click image for larger version

Name:	Screenshot 2024-06-30 134317.jpg
Views:	563
Size:	903.4 KB
ID:	209282

BR

Last edited by BetterRed; 06-30-2024 at 01:27 AM. Reason: Better screenshot, put a border around menus
BetterRed is offline   Reply With Quote
Advert
Old 06-30-2024, 01:12 AM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,631
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by BetterRed View Post
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.
I generally find that I need to see the entire line which requires either scrolling left/right or wrapping long lines. If there was a guarantee that nothing past the part of the line that is visible in the CV windows contained any modifiers, my opinion might be different but for now, seeing the entire line is pretty much a necessity, IMHO. For instance in the sentence below to see the italic at the end of the paragraph/line.

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>
DNSB is offline   Reply With Quote
Old 06-30-2024, 03:03 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,572
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...e8644970712313
kovidgoyal is offline   Reply With Quote
Old 06-30-2024, 01:43 PM   #8
jjk
Enthusiast
jjk began at the beginning.
 
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.
jjk is offline   Reply With Quote
Old 07-02-2024, 07:58 AM   #9
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
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.
Quoth is offline   Reply With Quote
Old 07-02-2024, 08:01 AM   #10
jjk
Enthusiast
jjk began at the beginning.
 
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.
jjk is offline   Reply With Quote
Old 07-02-2024, 05:16 PM   #11
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,386
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by jjk View Post
@Quoth : Yes, I agree, but it is not my choice. Indesign is my only source.
You have my sympathy!
Quoth is offline   Reply With Quote
Old 07-02-2024, 06:45 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is offline   Reply With Quote
Old 07-12-2024, 03:16 PM   #13
jjk
Enthusiast
jjk began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
7.14 installed. Thanks Kovid.
jjk is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 01:06 PM.


MobileRead.com is a privately owned, operated and funded community.