![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 186734
Join Date: Jun 2013
Device: Samsung Galaxy Tab A9+
|
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 |
![]() |
![]() |
![]() |
#2 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
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 | |
|
![]() |
#3 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 186734
Join Date: Jun 2013
Device: Samsung Galaxy Tab A9+
|
Quote:
Jeff |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
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. |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
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 | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
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
|
![]() |
![]() |
![]() |
#7 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
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 ? |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
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. |
![]() |
![]() |
![]() |
#9 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
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. |
||
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
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.
|
![]() |
![]() |
![]() |
#11 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,934
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
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. |
![]() |
![]() |
![]() |
#12 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
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. |
||
![]() |
![]() |
![]() |
#13 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 186734
Join Date: Jun 2013
Device: Samsung Galaxy Tab A9+
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,934
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
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. |
|
![]() |
![]() |
![]() |
#15 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
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 |
|
![]() |
||||
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 |