-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
U+2384 "COMPOSITION SYMBOL" unnecessarily affects text layout #2058
Comments
The key "⎄" expresses Multi_key. The feature let invisible characters visible. |
CC'ing @ariasuni |
The feature is generally useful overall, but I think some aspects of the implementation are a bit confusing.
As the XCompose/Multi-key approach is for fixed combinations defined in a config then it feels like a better match to an Anthy-style input with no pre-edit prefix but just an underlined "pre-edit" text showing all typed symbols. [Edit] I've just found that "Multi o" doesn't show the Composition Symbol, so it isn't reliably "all letters and numbers". I believe this is because I've got a "o_0" emoji shortcut and emoji results are the only consistent thing that I've seen for shortcuts using a single Multi_key to not use pre-edit. |
This is funny because I started thinking about it and went to the same conclusion, then saw your comment. Yeah, it’s probably easier to understand this way/less weird, and also simple to enough to think of it as a good solution. |
OK, there is a bug not to update the preedit with custom compose file. |
Now I'm back to the old behaviour (no pre-edit text) and a warning from ibus-daemon of:
I use the right Windows key as my Compose key, if that makes a difference. |
I cannot reproduce your problem with the latest ibus. |
Sorry, I took that patch and applied it to 1.5.19. I'm trying to rebuild and test [Edit] Sorry, I've been fighting the build process a bit and ran out of time tonight. I'm going to have to try and test this on Friday evening (GMT). It looks like that warning was my fault, though. |
I've had an unexpected chance to test the code. fujiwarat/ibus@f13a85d seems to give me the same behaviour as before, though - most letters show the Composition symbol and pre-edit text, punctuation/"accent" symbols (like quote for umlaut, apostrophe and backtick for grave and acute, full stop for dot, comma for cidilla) show the Composition symbol and pre-edit text, other symbols (exclamation mark, brackets, etc) don't show any pre-edit text and don't write anything until a perfect match, BUT some numbers and letters (which start my custom XCompose) don't show pre-edit text (e.g. "Multi 8 o" for 😨 or "Multi B A" for 𝔸) I'm actually wondering whether it's not specific character types (such as emoji output) but still a problem with my custom XCompose vs the system one? |
Can you give example steps to reproduce it with detail?
I think those cases show pre-edit. If you type Muti_key, "⎄" is shown as pre-edit and if type "8", "⎄8" is shown as pre-edit and if type "o", 😨 is matched only and output. "Multi B A" is the same behavior. |
I'm using this XCompose: https://dev.ibboard.co.uk/repos/other/linux/file/3552d0014202/XCompose
I'll keep testing and debugging at my end in case it's something that I've done/not properly restarted/etc (although I've rebooted several times, so it should be restart issues!) [Edit] Okay, that seems to work if I do a local build and adjust LD_LIBRARY_PATH etc, but it wasn't working for the custom build that I had on the Open Build Service (there was a point that I couldn't build it locally) I still think it would be better if it was more Anthy-like and didn't have the ⎄ symbol in normal usage, but I don't know what the solution would be to indicate "Multi Multi" shortcuts. |
Okay, I've managed to test it properly now and it seems to work. I'm consistently seeing the composition character and what I type across all of the examples in my last comment. I think I did something stupid with my OBS build. The only problem I've found (which might be a separate issue rather than part of this change) is that you can't use backspace to go back and insert an earlier match with fewer characters. For example:
Happy to report it as a separate issue if it's not directly related to this change (which looks simple enough that it shouldn't have triggered it). Thanks! |
In case anyone is interested, I've posted my custom behaviour patch to remove the Composition Symbol from the start. https://gist.github.com/IBBoard/ec1c040763f91fd4620678d6c909be0c Behaviour is:
It's not perfect, because you can't differentiate "Multi" from "Multi Multi", but I prefer it to seeing "⎄" all the time (and having it move my text in several situations). I only use the Multi key and none of the other "dead" keys, though, so I don't know what impact it would have on anyone who uses them. |
I think When you type "Multi B", "⎄B" is shown. The preedit also is shown correctly in other test cases.
When you type "Multi_key 1 2", "½" is output, which is loaded from /usr/share/X11/locale/en_US.UTF-8/Compose
OK, I hope the preedit is shown in your box.
Thank you for reporting it.
Currently I'm still not sure hiding "⎄" is so useful. Probably I need more feedback later. |
All of those problems of things not showing are fixed now. It was my fault - I managed to make builds without the right patches included. Thanks for pointing out the completion for "Multi 1" - I hadn't thought of that one! I'll check the update and report back. As for my "don't show ⎄", I know the behaviour isn't perfect because your current input status isn't clear, but IMO the "show ⎄" is also confusing. Ctrl+Shift+e and Ctrl+Shift+u have context for why they have an "e" or "u" prefix in pre-edit, but I don't expect 99.99% of users to know what the "⎄" symbol is! Hopefully other people can give their opinions and feedback. |
While you refer ibus-anthy several times, I'd clarify the difference.
So I don't think the status is not clear at the moment. The start key is not
I'm also not sure which character is the best for Multi_key but regarding to #1935, the character is used for Multi_key in Mac OS and I think using it makes sense now. If you don't find any other issues at the moment, I will integrate the patches in the compose-tentative branch to master. |
I must admit that I'm not hugely familiar with Anthy. I was just basing it on the impression that I got from various videos of how it works. Some of the initial "not enough like Anthy" was probably due to the bug that you fixed.
I did think about that side of it. As an English user with a standard UK keyboard then I'm only familiar with the Multi_key for composition. I imagined there would be some oddities that I hadn't accounted for, which is why I just posted my custom patch for others to use if they chose to rather than suggesting it as a pull request or anything.
I'd agree that the status is clear after the fix to make the behaviour correct and consistent, but the presentation of the characters due to that status is unfamiliar. I guess part of what I'm questioning is whether that's enough of a problem, or whether users of composition sequences are already considered "power users" who can accept a rarely known character.
I think part of the original problem is that while I have that font, it's not the same font (because it's such an uncommon character) and so everything shifts. The odd thing is that I'm using Noto Sans, which should have REALLY good font coverage. I'm going to try building and testing the latest update now. Thanks. |
Just to confirm that the α/⚛ example that I posted seems to work now - I can happily "Multi Multi a" and then hit "t" and backspace over and over and it swaps between "α" and "at" in pre-edit mode. Thanks! |
I updated https://github.com/fujiwarat/ibus/commits/compose-tentative |
I've not been able to test this yet, but isn't this going to get us back to a "How do I press backspace and get back to 'α' without deleting the 'a' and re-typing it" situation? [Edit] I can see how this makes sense in some ways, but I'm not entirely convinced that the behaviour is always clear.
Clear enough so far, but then:
From here, I can't get back to "α" without either deleting and re-typing "a" or typing and deleting a character from a longer match (like "t"). But if I get the character wrong at this point and type something that isn't in a sequence before I backspace again then it cancels the entire pre-edit (which may or may not be desired behaviour anyway, but that's a separate question). IMO, the previous behaviour is more consistent to work with. |
Seems I didn't get your request yesterday and I reverted the last commit; https://github.com/fujiwarat/ibus/commits/compose-tentative Do you have no other issues? |
No, that seems to work now. Thanks! |
IBusEngineSimple is fixed for custom compose files - Show preeedit with custom compose file - Tentative compose preedit can be deleted by Backspace BUG=#2058
The preedit fix is integrated in master. |
I'd close this issue with some feedback. |
Which distribution and version?:
openSUSE Tumbleweed
Which desktop environment and version?:
Gnome 3.30
Which session type?:
X11
Which application and version?:
All (gEdit, Geany, Tilda, Firefox, Thunderbird, Corebird)
IBus version?:
1.5.19
Issue description:
Since 1.5.19, when using the compose key then it shows the keys you've typed, prefixed with "⎄" (U+2384 "COMPOSITION SYMBOL"). Showing what you've typed is helpful, but the composition character a) unnecessarily moves things to the right and b) sometimes affects the entire text position.
This looks like it might be because of #1935, which (as I understand it) introduced the pre-edit text for compose combinations. The composition symbol seems unnecessary when the pre-edit content is already underlined.
I've tried to change this myself, but I've not been able to work out how to patch my own builds (I've put in logging and not even seen any output, so I'm clearly missing something somewhere!)
Steps to reproduce:
Text:
Start composing:
(Difference)
Finish composing:
Can you reproduce your problem when you restart ibus-daemon? (yes / no):
Yes
Do you see any errors when you run ibus-daemon with the verbose option?:
No (I don't actually get any output)
Can you reproduce your problem with a new user account instead of the current your account? (yes / no):
TBC
The text was updated successfully, but these errors were encountered: