Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font issues #1

Closed
jnpoJuwan opened this issue Jan 1, 2024 · 7 comments
Closed

Font issues #1

jnpoJuwan opened this issue Jan 1, 2024 · 7 comments

Comments

@jnpoJuwan
Copy link

jnpoJuwan commented Jan 1, 2024

to start, this is really great work! :)
I wanted to ask you, but you don't have any other social media listed on your profile, so there will do

even tho, I have donwloaded Nishiki-teki font (and also Fairfax HD) but trying to use either of them doesn't work, just ends up as tofu text. other question (probably silly) is how can I restart a new instance of the keyboard without having to restart my PC every time

@dec32
Copy link
Owner

dec32 commented Jan 1, 2024

Most likely the texts are not represented in the correct font. Try copy them into Notepad and set the font to Nishiki-teki.

I am not so sure about what you mean "restart a new instance of the keyboard", but if you mean to type with it elsewhere, just press WIN+SPACE to switch to the IME (and press again to switch back to ASCII if you want).

@dec32 dec32 self-assigned this Jan 1, 2024
@jnpoJuwan
Copy link
Author

jnpoJuwan commented Jan 1, 2024

not the characters on the program that receives it, I mean on the IME itself

image
image

@jnpoJuwan
Copy link
Author

I am not so sure about what you mean "restart a new instance of the keyboard", but if you mean to type with it elsewhere, just press WIN+SPACE to switch to the IME (and press again to switch back to ASCII if you want).

say, I change a bit of the source program and I want to see how it changed, do I have to restart by PC or is there another way

@dec32
Copy link
Owner

dec32 commented Jan 1, 2024

not the characters on the program that receives it, I mean on the IME itself

Checkout C:\Users\{YOUR_ACCOUNT}\AppData\Roaming\Rime\weasel.custom.yaml and make sure the value of "style/font_face" is "Nishiki-teki", or simply use https://github.com/dec32/Ajemi/blob/master/weasel.custom.yaml to overwrite the whole file.

change a bit of the source program and I want to see how it changed

Right click on the "中" icon and then click "重新部署 (R)" to apply the newly modified config files.

screenshot

@jnpoJuwan
Copy link
Author

jnpoJuwan commented Jan 1, 2024

oooh it worked

one other thing, I changed a bit of the code for schema and then it stopped working, did I do something wrong

when you correct it, I would appreciate if you could make it into the main version of the keyboard, to add more thingies :>

schema:
  schema_id: ajemi
  name: Ajemi
  version: '0.1'
  author:
    - Dec_32
  description: |
    o sitelen pona kepeken ilo Ajemi!
    

switches:
  - name: ascii_mode
    reset: 0
    states: [ 󱥠󱦖󱥔, ASCII ]
    
engine:
  processors:
    - ascii_composer
    - speller
    - punctuator
    - selector
    - navigator
    - express_editor
  segmentors:
    - punct_segmentor
    - abc_segmentor
    - fallback_segmentor
  translators:
    - punct_translator
    - table_translator

speller:
  alphabet: 'zyxwvutsrqponmlkjihgfedcbaABCDEFGHIJKLMNOPQRSTUVWXYZ'
  delimiter: ' '
  auto_select: false

punctuator: 
  full_shape: 
    '[' : 󱦐   # U+F1990 SITELEN PONA START OF CARTOUCHE
    ']' : 󱦑   # U+F1991 SITELEN PONA END OF CARTOUCHE
    '+' : 󱦕   # U+F1995 SITELEN PONA STACKING JOINER
    '-' : 󱦖   # U+F1996 SITELEN PONA SCALING JOINER
    '(' : 󱦗   # U+F1997 SITELEN PONA START OF LONG GLYPH
    ')' : 󱦘   # U+F1998 SITELEN PONA END OF LONG GLYPH
    '{' : 󱦚   # U+F199A SITELEN PONA START OF REVERSE LONG GLYPH
    '}' : 󱦛   # U+F199B SITELEN PONA END OF REVERSE LONG GLYPH
    '.' : 󱦜   # U+F199C SITELEN PONA MIDDLE DOT
    ':' : 󱦝   # U+F199D SITELEN PONA COLON
    '<' : 「    # U+300C LEFT CORNER BRACKET
    '>' : 」    # U+300D RIGHT CORNER BRACKET

  half_shape: &symtable
  full_shape: 
    '[' : 󱦐   # U+F1990 SITELEN PONA START OF CARTOUCHE
    ']' : 󱦑   # U+F1991 SITELEN PONA END OF CARTOUCHE
    '+' : 󱦕   # U+F1995 SITELEN PONA STACKING JOINER
    '-' : 󱦖   # U+F1996 SITELEN PONA SCALING JOINER
    '(' : 󱦗   # U+F1997 SITELEN PONA START OF LONG GLYPH
    ')' : 󱦘   # U+F1998 SITELEN PONA END OF LONG GLYPH
    '{' : 󱦚   # U+F199A SITELEN PONA START OF REVERSE LONG GLYPH
    '}' : 󱦛   # U+F199B SITELEN PONA END OF REVERSE LONG GLYPH
    '.' : 󱦜   # U+F199C SITELEN PONA MIDDLE DOT
    ':' : 󱦝   # U+F199D SITELEN PONA COLON
    '<' : 「    # U+300C LEFT CORNER BRACKET
    '>' : 」    # U+300D RIGHT CORNER BRACKET

translator:
  dictionary: ajemi
  enable_sentence: true
  enable_user_dict: false
  comment_format:
    - xform/^~//

key_binder:
  import_preset: default

@dec32
Copy link
Owner

dec32 commented Jan 2, 2024

The corrected schema:

schema:
  schema_id: ajemi
  name: Ajemi
  version: '0.1'
  author:
    - Dec_32
  description: |
    o sitelen pona kepeken ilo Ajemi!
    
switches:
  - name: ascii_mode
    reset: 0
    states: [ 󱥠󱦖󱥔, ASCII ]
    
engine:
  processors:
    - ascii_composer
    - speller
    - punctuator
    - selector
    - navigator
    - express_editor
  segmentors:
    - punct_segmentor
    - abc_segmentor
    - fallback_segmentor
  translators:
    - punct_translator
    - table_translator

speller:
  alphabet: 'zyxwvutsrqponmlkjihgfedcbaABCDEFGHIJKLMNOPQRSTUVWXYZ'
  delimiter: ' '
  auto_select: false

punctuator:
  half_shape: 
    '[' : 󱦐   # U+F1990 SITELEN PONA START OF CARTOUCHE
    ']' : 󱦑   # U+F1991 SITELEN PONA END OF CARTOUCHE
    '+' : 󱦕   # U+F1995 SITELEN PONA STACKING JOINER
    '-' : 󱦖   # U+F1996 SITELEN PONA SCALING JOINER
    '(' : 󱦗   # U+F1997 SITELEN PONA START OF LONG GLYPH
    ')' : 󱦘   # U+F1998 SITELEN PONA END OF LONG GLYPH
    '{' : 󱦚   # U+F199A SITELEN PONA START OF REVERSE LONG GLYPH
    '}' : 󱦛   # U+F199B SITELEN PONA END OF REVERSE LONG GLYPH
    '.' : 󱦜   # U+F199C SITELEN PONA MIDDLE DOT
    ':' : 󱦝   # U+F199D SITELEN PONA COLON
    '<' : 「    # U+300C LEFT CORNER BRACKET
    '>' : 」    # U+300D RIGHT CORNER BRACKET

translator:
  dictionary: ajemi
  enable_sentence: true
  enable_user_dict: false
  comment_format:
    - xform/^~//

key_binder:
  import_preset: default

@jnpoJuwan
Copy link
Author

thank you very much <3
󱥞󱥔

@dec32 dec32 removed their assignment Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants