Can not type Japanese space in caption field
See original GitHub issueThis is the Japanese space character:
It is wider than the non-Japanese space character.
While not used as often, it can still be useful to separate expressions.
When uploading a picture with the app, this character can not be typed into the caption field. When I type the space character on the phone’s keyboard, nothing happens. Pasting it does not work either, the character is removed from the pasted text.
With the Commons website I can enter Japanese spaces in the filename, caption, description fields. After pressing “Publish”, the Japanese space of the filename field is converted to a non-Japanese space. Example: https://commons.wikimedia.org/wiki/File:広尾_キラキラダンプカー.jpg
How about doing like the web UI?
- Allow the Japanese whitespace in fields.
- Transform it into a non-Japanese whitespace before uploading.
I am pretty sure we still have a method somewhere that sanitizes a few “bad” characters before upload. We could stop blocking these few characters in UploadMediaDetailInputFilter.java
.
If you notice any other character that has the same issue, please comment below, thanks!
Context: https://github.com/commons-app/apps-android-commons/pull/4955
Issue Analytics
- State:
- Created a year ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
hi,I think maybe I can try this bug, could you assign it to me?
thanks for your question. q1:At first I created the method to convert Japanese space to English space, but it seems that the problem is not this, the problem is that the software only allows input in the language you set. so in fact, you just need to manually switch to the Japanese input method. just ignore this code( we don’t need it now)
q2:yes it was a bug, I added one less “;”, if you want it to work, just add it manually