We have moved to a new Sailfish OS Forum. Please start new discussions there.

[bug] Behaviour of the spacebar in stock Chinese Pinyin/stroke keyboard [released]

asked 2014-03-27 06:54:52 +0300

gexc gravatar image

updated 2015-08-28 13:41:35 +0300

molan gravatar image

as the title, it creates a space only in symbols mode. It should work as space key in both modes.

It seems that I got it wrong. The space key in the normal mode of the Pinyin keyboard actually behaves as an input-the-first-entry-in-the-word-list-key. And the first predicted word after [any symbol] is [comma], so we will have a comma while typing space after inputting any symbol.

The spacebar as a shortcut for choosing the first entry in the word list is nice, but only for typing the word directly. After a word has been inputted (either by hitting the spacebar or manually selected from the list), the spacebar should just create a space if hit again, since a chain of auto-predicted-words does not make sense in most cases.

Maybe setting the space as the default (maybe hidden) predicted word could solve this? The user could always select the word manually if it appears in the predicted-word-list.

Edit: Same behaviour in the stroke IM as well :-/

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by gexc
close date 2014-10-25 04:58:36.916871


Just to clarify, it makes a comma in "normal" mode and a space in symbols mode? It isn't entirely clear from the question, so you should consider rephrasing it.

Mohjive ( 2014-03-27 07:06:32 +0300 )edit

okay, edited :)

gexc ( 2014-03-27 07:20:43 +0300 )edit

Jolla should really fix this if the device is going to launch to native Chinese speakers.

Waxberry ( 2014-06-22 18:48:51 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-08-29 11:03:22 +0300

gexc gravatar image

Solution: Modify the input handler file so the spacebar only sends the first candidate if only xt9CpModel.inputString.length > 0

The patches (with other improvements) can be found at openrepos

Pinyin: https://openrepos.net/content/gexc/pinyin-prime-pin-yin-jian-pan

Stroke: https://openrepos.net/content/gexc/stroke-b-bi-hua-jian-pan-b

edit flag offensive delete publish link more


Fixed in 1.1.0

gexc ( 2014-10-25 04:59:08 +0300 )edit

Question tools

1 follower


Asked: 2014-03-27 06:54:52 +0300

Seen: 238 times

Last updated: Aug 29 '14