toyjack / yaist-vscode

Home Page:https://marketplace.visualstudio.com/items?itemName=toyjack.yaist-vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yaist-vscode

This is a vscode plugin for searching and inputing Chinese characters. It is something like YAIST but work on vscode.

Features

Searching and inputing Chinese chraracters by their components and stroke counts.

For example you can get "𪠶" by input "土口2". The number comes at last is the remaining stroke count.

For now, there are 2 ways to use yaist-vscode.

Searching by a dialog

Open the vscode command panel by Ctl+Shit+p, then input yaist and selected [YAIST] Input text to search.

Then input the parts of Chinese character and remaining stroke count (optional) you're looking for.

Searching by context menu

Another way is input the parts of Chinese character and remaining stroke count directly into the editor, then select them and right click to open the context menu which named [YAIST] Search selected text.

Shortcuts

Character

Ctrl + Alt + y

  • Without selected character input_character_without_selection

  • With text selected: Replacing convert_to_character

TEI XML Block

Ctrl + Alt + t

  • Without selected character input_xml_without_selection

  • With text selected: Replacing convert_to_xml

Convert single Chinese character to XML code block with template

Ctrl + Alt + c

With text selected: Replacing

Requirements

  • A Chinese or Japanese input method.
  • Font covered all Unicode Chinese characters. Such as Hanazono Font.

Extension Settings

Working on it...

TODOs

  • Fancy GIF
  • Copy to cliopboard

References

Contribute

Build and test for vscode desktop

VSCode Extensition API

Build and test for vscode web

yarn compile-web & yarn run-in-browser

Change Log

[0.5.0] - 2022-04-26

  • Added convert single Chinese character to XML code block

[0.4.0] - 2022-04-26

  • Added support of vscode web

[0.3.0] - 2022-04-25

  • Added configuration of XML template

[0.2.0] - 2022-04-22

  • Added shortcuts

[0.1.0] - 2022-04-21

  • Added TEI XML support

[0.0.1] - 2022-04-20

  • Added replacing selected texts
  • Added searching by a dialog

[Unreleased]

  • Initial release

About

https://marketplace.visualstudio.com/items?itemName=toyjack.yaist-vscode

License:MIT License


Languages

Language:TypeScript 81.5%Language:JavaScript 18.5%