rime / rime-prelude

Essential files for building up your Rime configuration
GNU Lesser General Public License v3.0
58 stars 24 forks source link

Symbols: add more Latin characters according to Unicode Charts. #1

Closed wzy9607 closed 7 years ago

wzy9607 commented 7 years ago

Some characters in Unicode Latin blocks are difficult to classify so aren't added.

lotem commented 7 years ago

This is an exciting pull request. Sth + da isn't found in existing code for symbols. There's sth+ d where sth being also pinyin initials. Personally I prefer /A, more intuitive and easier to type. What made you change your mind?

wzy9607 commented 7 years ago

/A doesn't work on my computer.

lotem commented 7 years ago

To use /A for capital letters, you also need to change this pattern in your schema: https://github.com/rime/rime-luna-pinyin/blob/master/luna_pinyin.schema.yaml#L109 to '^/([0-9]0?|[A-Za-z]+)$'. For now this has to be done in every .schema.yaml file that imports symbols. How about we add a comment in symbols.yaml:

# patch your Rime schema to enable /x symbols:
# patch:
#   recognizer/patterns/punct: '^/([0-9]0?|[A-Za-z]+)$'

I soon will create a solution for sharing code snippets in the rime library.

wzy9607 commented 7 years ago

The comment is added. And I also provided an example file.

lotem commented 7 years ago

Thanks. It works perfectly.