ensan-hcl/CustardKit

Make internal utility-functions/lists/etc public for the convenience and reusability

shundroid opened this issue · 1 comments

In this repository, many reusable functions, lists, or keys are used in the examples, but they are all internal.
I think the users of this kit want to use them in their custards too.

i.e.

  • makeKey function in Japanese keyboard example
  • delete key seen in many examples, which has the variations of smartDeleteDefault, smartMoveCursor(backward) and smartMoveCursor(forward)
  • the targets of smartMoveCursor in the delete key above: ["、","。","!","?",".",",",".",",", "\n"]
  • the key of "空白"

I think that many custards made by users also have such functions, lists, or keys, so if you make them public, it will be beneficial.

Benefits:

  • Standardization: Slight differences between keyboards are likely to be reduced. i.e. the difference of the variation of delete key
  • Easier to write custard: They do not have to make delete button or あ,い,う button from scratch.
  • Make use of the toolkit: Now, your toolkit is just converting swift/python codes to json. By implementing this, your toolkit can perform better by providing utility library. It will make swift/python codes less redundant compared to raw json files.

(Reference ) my comment relating to this issue: @ensan-hcl in #1 (comment)_