02-25-2023, 01:32 PM | #1 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Jun 2013
Device: Samsung Galaxy Tab A 8"
|
Calibre Feature Request
Would love to see visible non-breaking spaces, narrow non-breaking spaces and zero-width non-breaking spaces in the editor, without having to use unicode or HTML.
Even MS Word has the option. Thanks, Jeff |
02-25-2023, 01:45 PM | #2 |
Zealot
Posts: 136
Karma: 1000102
Join Date: Jul 2021
Device: N/A
|
In the menu "Edit", you have access to a table of special chars. You can rearrange your favorite chars in the beginning of this table. You may set a shortcut to this table for quick access.
@ Kovid : BTW, in linux, Ctrl-Shift-u + nnnn writes the char \unnnn. But this doesn't work in the editor. Would it be possible to activate this very practical feature ? |
Advert | |
|
02-25-2023, 02:13 PM | #3 | |
Enthusiast
Posts: 46
Karma: 10
Join Date: Jun 2013
Device: Samsung Galaxy Tab A 8"
|
Quote:
Jeff |
|
02-25-2023, 02:21 PM | #4 |
Wizard
Posts: 1,164
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Like enabling "Toggle Formatting Marks" in LibreOffice Writer and the equivalent in MS Word.
Yes that would be a helpful option. |
02-25-2023, 06:13 PM | #5 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Maybe have a look at Edit > Preferences > Editor settings > Colour scheme The 'SpecialCharacter' entry is the one you need to set. As spaces are involved make sure you set its Background colour to one which shows up well against the main background colour. |
|
Advert | |
|
02-25-2023, 09:02 PM | #6 |
creator of calibre
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
They are already visible, as jackie_W pointed out. @lomkiri you can enter unicode chars using hex codes already, see https://manual.calibre-ebook.com/edi...ial-characters
|
02-26-2023, 05:04 AM | #7 |
Zealot
Posts: 136
Karma: 1000102
Join Date: Jul 2021
Device: N/A
|
Thank you, Kovid, I didn't know this trick. The restriction is that :
— it doesn't work in the search/replace fields — it doesn't work if typed after a hexanum char, ex (saying I want a narrow no break space): - I go there2027 + alt-x → I go ther\uE2027 - 11202f + alt-x doesn't make any transformation (I wanted to type 11 111) So one would have to insert this sequence : space, 202f, alt-x, left-arrow, bkspace, right-arrow. … or to use the table of special chars ;-) The ctrl-shift-u technique would solve those cases, being furthermore a widely known trick for linux' users. Is it a Qt restriction ? |
02-26-2023, 05:12 AM | #8 |
creator of calibre
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
narrow non break space is 202f and typing 202f and then alt+x works fine
1f408 is cat and typing that and alt+x again works fine so not sure what your issue is. Yeah it doesnt work in all text fields, but that would be true regardless what shortcut is used. I dont know what ctrl+shift+u on your linux box is doing, it doesnt do anything on mine. I am guessing it is triggerring a unicde char picker via IME. IME may or may not work with Qt depends on plugin versions/ABI compatibility, display backend, etc. |
02-26-2023, 05:48 AM | #9 | ||
Zealot
Posts: 136
Karma: 1000102
Join Date: Jul 2021
Device: N/A
|
Quote:
Quote:
(and yes, it's a picker, it displays u and wait for the unicode number; <enter> closes the sequence). Not a big deal anyway, I can easily leave without it :-). Thanks a lot anyway! Last edited by lomkiri; 02-26-2023 at 05:55 AM. |
||
02-26-2023, 06:32 AM | #10 |
creator of calibre
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If that's an issue for you then type   when you finish typing it the editor will automatically make it a narrow non-break space.
|
02-26-2023, 07:29 AM | #11 |
the rook, bossing Never.
Posts: 11,656
Karma: 87654321
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I'd never used Cntrl Shift U, as my keyboard map has all common and Compose has rarer (you can add to Compose). I did have an issue with aspects of Compose not working in QT and some programs. I have an .Xcompose but
Code:
include "/usr/share/X11/locale/en_US.UTF-8/Compose" Suits all western Locales, there is none for other en_ as the whole point is that it adds all Latin/Roman/Western non-English characters, e.g. óþł§ßĸðç etc Compose ~ n gives ñ Some of my Linux systems needed this executed in the Console/terminal/command line for QT applications to work properly. Code:
im-config -n ibus I just tested Cntrl Shift U 256 Return in Calibre Editor: the main HTML edit window, find and replace boxes. Shows u digits and then when return hit gives ɖ Linux Mint 20.1, Mate Desktop, Server2003 theme, XP Metallic window frame and Window Manager = Marco +Compositing (Marco +Compositing allows transparency so drag & drop in programs like Thunderbird lets you see text on destination folder) My custom .XCompose in Home (~) has Greek via Compose g and Compose G, prime ′ and double prime ″ (feet, inches or minutes, seconds) using Compose 0 ' and Compose 0 " I've not tried adding all the special spaces to Compose. At least one is on Space Bar. Alt Space is Title bar menu as in Windows. .XCompose Spoiler:
Last edited by Quoth; 02-26-2023 at 07:39 AM. |
02-26-2023, 08:56 AM | #12 | ||
Zealot
Posts: 136
Karma: 1000102
Join Date: Jul 2021
Device: N/A
|
Quote:
Quote:
(My compose key is Meta-left. Like you, I use it a lot!) Last edited by lomkiri; 02-26-2023 at 09:04 AM. |
||
02-26-2023, 11:52 AM | #13 | |
Enthusiast
Posts: 46
Karma: 10
Join Date: Jun 2013
Device: Samsung Galaxy Tab A 8"
|
Quote:
|
|
02-26-2023, 12:14 PM | #14 | |
the rook, bossing Never.
Posts: 11,656
Karma: 87654321
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Caps Lock Behaviour: (*) Caps Lock is disabled Miscellaneous compatibility options: [/] Both Shft together enable Caps Lock; one Shift key disables it Position of Compose Key [/] Caps Lock (Only works reliably if disabled above) My Windows Logo Key: Go Window Preferences -> Behaviour > Movement Key (*) Super (or Windows logo) I've one laptop/PC ever where that doesn't work (Center and Snap are off on Placement). Not edited Xmodmap for years. The .XCompose in home: It works immediately when first created, but subsequently you need to log out and log in to test changes (ideally in Xed, not KATE or any QT based program in case there is a QT issue). There is also an option in IBus preferences -> General: [/] Embed preedit text in application window This means you can see a mistyped Compose string and Backspace to edit. IBus preferences -> Input Method Should be the Keyboard in Hardware > Keyboard Also IBus must be the option in Look and Feel > Input Method All distros should have all these settings somewhere. Avoid Wayland and Gnome 3? Last edited by Quoth; 02-26-2023 at 12:17 PM. |
|
02-26-2023, 01:49 PM | #15 | ||
Zealot
Posts: 136
Karma: 1000102
Join Date: Jul 2021
Device: N/A
|
Quote:
Quote:
I have nothing against Wayland, but I won't use Gnome for sure. Each one makes his own choices ;-) |
||
Tags |
calibre, editor, nbsp, zwsp |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feature Request in Calibre Viewer | Enterio | Calibre | 0 | 10-09-2019 02:37 AM |
Calibre Companion Feature Request | SpiritualMadMan | Calibre Companion | 4 | 04-07-2019 05:23 AM |
Calibre 64bit Feature Request | wjBLqf-_9 | Calibre | 1 | 10-14-2018 05:25 AM |
calibre-server feature request | Dan__ | Library Management | 3 | 06-13-2017 12:32 PM |
Calibre Server Feature Request | xcllcx | Calibre | 3 | 06-23-2012 02:28 AM |