Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Change default position of Chinese language candidate selection bar

  1. #11
    Join Date
    Jul 2015
    Location
    Essex, UK
    Beans
    580
    Distro
    Xubuntu

    Re: Change default position of Chinese language candidate selection bar

    I will read up on those but in the meantime, yes the link does not show the popup going to the bottom, it shows where I would like it to be. However the software they use is not available to me on Linux.

    The link was to show you the popup in use only and why it is necessary.

    Later I will get to the machine on which the Chinese language is used and will post a screenshot together with the software information in use.
    Last edited by makem2; September 18th, 2020 at 12:40 PM. Reason: Duplicate post

  2. #12
    Join Date
    Jul 2015
    Location
    Essex, UK
    Beans
    580
    Distro
    Xubuntu

    Re: Change default position of Chinese language candidate selection bar

    Quote Originally Posted by dragonfly41 View Post
    In that tutorial link I do not see an example of your "lower left screen drop box with 5 choices".

    Meanwhile read here.

    and here (from above thread).

    If these threads do not help there are UI manipulation ways of bringing your multi choice box nearer your target data field.
    But that should not be necessary in a well designed UI.

    Also perhaps research Pinyin concordance tools (linguistics tools).

    [P.S] Further tips ..

    research in google .. "Figma near Pinyin"

    and .. "Pinyin NEAR SVG typography"

    https://webdesign.tutsplus.com/artic...nts--cms-23444
    I have looked at your suggested reading but it relates to fonts and input methods.

    I have the correct fonts and input method, I just want to move a window which has focuss to a place on the screen and lock it there until cancelled.

    I should have time tomorrow to use the mandarin based computer and will find more detail which may be helpful. I think it is a bug in the Linux version of the input software and I need to research whether this has been noticed previously.

  3. #13
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Change default position of Chinese language candidate selection bar

    I have the correct fonts and input method, I just want to move a window which has focuss to a place on the screen and lock it there until cancelled.


    One of the first tips posted above was to try X-tile which positions (tiles) multiple windows on your screen. If you produce a url which displays your pinyin 5 choice then this method repositioning of windows can be tested. Another tool is xdotool.
    sudo apt install xdotool
    xdotool --help



  4. #14
    Join Date
    Jul 2015
    Location
    Essex, UK
    Beans
    580
    Distro
    Xubuntu

    Re: Change default position of Chinese language candidate selection bar

    Quote Originally Posted by dragonfly41 View Post
    One of the first tips posted above was to try X-tile which positions (tiles) multiple windows on your screen. If you produce a url which displays your pinyin 5 choice then this method repositioning of windows can be tested. Another tool is xdotool.
    sudo apt install xdotool
    xdotool --help


    [/COLOR]
    I looked into X-tile and it did not appear suitable. I will check your other suggestion.

    I have taken a screenshot showing the choice window in two positions.

    1. If a web page is opened for the first time on this machine it defaults to top left of the screen. If the language is set to mandarin then as soon as you type the choices window appears as shown here:

    https://www.dropbox.com/s/xfcdp0djpme7362/1.png?dl=0

    After entering a space and then typing the next pinyin character the choices window moves to the position shown here:

    https://www.dropbox.com/s/vx6uh2avmpq2u16/2.png?dl=0

    The window will stay in that position, opening and closing as each character is chosen.

    2. If a web page is opened for the first time on this machine it defaults to top left of the screen. If the active window is moved or if it loses focus, even if the language is set to mandarin then as soon as you type the choices window appears as shown here:

    https://www.dropbox.com/s/vx6uh2avmpq2u16/2.png?dl=0

    The window will stay in that position, opening and closing as each character is chosen.

    3. If a web page is opened for the first time on this machine it defaults to top left of the screen. If the language was english and it is changed to mandarn then as soon as you type the choices window appears as shown here:

    https://www.dropbox.com/s/vx6uh2avmpq2u16/2.png?dl=0

    The window will stay in that position, opening and closing as each character is chosen.

    The ideal input program would be shou xin shu ru fa (Palm input method) but this is not available for Linux. The Chinese user uses Windows 10 so this program is available and preferred. It's choices window is tied relative to the cursor as far as i can see.

    I am trying to wean the Chinese user away from windows especially where more security is needed. If I can get a good input method working well then I will be 99% able to go solely to Linux.

    The software being used at the moment is Sogou:

    https://pinyin.sogou.com/linux/?r=pinyin

    The input method used is IBus from a choce of IBus, fcitx and XIM methods.

    It occurs to me that I should check which input method is used in shou xin shu ru fa. This may be a little difficult as the machine is set to Chinese but worth a try.

    Thank you for your interest @dragonfly41
    Last edited by makem2; September 19th, 2020 at 04:24 PM.

  5. #15
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Change default position of Chinese language candidate selection bar

    Not easy to get a handle on this so I suggest the following:
    Run these commands:


    Code:
    sudo apt update
    sudo apt install xdotool autokey

    Read here for tips ..
    https://askubuntu.com/questions/5378...e-mouse-cursor


    Code:
    watch -n 0.1 "xdotool getmouselocation"

    Run the above command in a small terminal window.


    Hover cursor over top url field where you need to type characters.
    Take a note of x:nnn y:nnn coordinates.


    Hover cursor over bottom box where you need to refer to 5 PinYin choices
    Take a note of x:nnn y:nnn coordinates.


    Post these two pairs of coordinates (x1:y1, x2:y2) here and I will suggest an AutoKey script which hops between top and bottom
    when you press a hot key (I suggest Num+Enter which is at far right of keyboard).


    [P.S.] I was able to get a better view by opening each image full screen. Dropbox has an overlay box hiding the bottom.

    You might also explore Firefox extensions which can reposition popups.

    https://addons.mozilla.org/en-US/fir.../popup-to-tab/

    Thank you for your interest ..
    I view these as UI juggling problems and often I find myself hopping between windows and menus. But your app should be more consistent in its workflow. Perhaps a word with the developer might bear fruit.
    Last edited by dragonfly41; September 19th, 2020 at 06:42 PM. Reason: Further research . firefox extensions

  6. #16
    Join Date
    Jul 2015
    Location
    Essex, UK
    Beans
    580
    Distro
    Xubuntu

    Re: Change default position of Chinese language candidate selection bar

    Ibus Reference Manual

    https://ibus.github.io/docs/ibus-1.5/index.html

    I came across this as a way to find how to deal with the wndow position.

  7. #17
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Change default position of Chinese language candidate selection bar

    So is it solved?

  8. #18
    Join Date
    Jul 2015
    Location
    Essex, UK
    Beans
    580
    Distro
    Xubuntu

    Re: Change default position of Chinese language candidate selection bar

    Quote Originally Posted by dragonfly41 View Post
    So is it solved?
    No I am afraid not.

    I researched Sogou setup and decided to follow fcitx instead of Ibus.

    I decided to uninstall both input methods as I saw a suggestion that there could be conflicts.

    I have Sogou reinstalled and have used fcitx from the repos, fixing all the missing dependencies.

    I now have Chinese input ability but cannot connect Sogou as one of the Chinese options.

    I have the choices window in the correct place.

    So, have made a step in the right direction. That step will probably make easier passage to a complete solution rather than adding scripts.

    Once again thank you for your input, it is much appreciated.

  9. #19
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Change default position of Chinese language candidate selection bar

    Sounds a good plan. The Ibus route seems to have had issues with Ubuntu .. read here.

    Nothing more I can add.

  10. #20
    Join Date
    Jul 2015
    Location
    Essex, UK
    Beans
    580
    Distro
    Xubuntu

    Re: Change default position of Chinese language candidate selection bar

    Code:
    $ su makem
    Password: 
    makem@ssdTOSH:/home/han$ sudo apt install fcitc-ui-qimpanel
    [sudo] password for makem: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Building dependancy tree
    Reading state information... Done
    The following packages will be removed
        sogoupinyin
    The following NEW packages will be installed
        fcitc-ui-qimpanel
    REMOVE sogoupinyin!!!!!!

    It appears there is a conflict between fcitc-ui-qimpanel and sogoupinyin

    I found this when I had fixed sogupinyin which worked correctly and wanted to change the ugly fcitx icon using fcitc-ui-qimpanel:

    https://leimao.github.io/blog/Ubuntu...Chinese-Input/

    Edit:
    I tried such suggestions as the link below and something I did appears to have flicked a switch, turning sogoupinyin on in the input management system:

    https://stackoverflow.com/questions/...in-input-metho

    'd' is not missing from the end of my link, it was missing initially.
    Last edited by makem2; September 20th, 2020 at 12:12 PM. Reason: Trying to suggest why it is now working

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •