Help the developer to convert Japanese text to Romanization.
The published extension can be found at Visual Studio Code Marketplace.
- Convert Japanese text (Hiragana, Katakana and Kanji) to Romanization (Hepburn style).
The language modes support by this extension are:
- javascript
- typescript
- csharp
- json
- plaintext
- ini
- markdown
- yaml
- xml
- html
- css
- scss
- less
Select the text you want to convert and press control . (control + period) to convert the text.
extension.japaneseRomanization: Transform the selected text.extension.importCache: Import cache from a file.extension.exportCache: Export cache to a file.extension.clearCache: Clear cache.extension.importDictionary: Import dictionary from a file.extension.exportDictionary: Export dictionary to a file.extension.clearDictionary: Clear dictionary.extension.editDictionary: Edit dictionary.
This extension contributes the following settings:
provider: Provider for convert Kanji text.offline(default): Use the kuroshiro library to convert the text.goo: Use the labs.goo.ne.jp API to convert the text.OpenAI(Beta): Use the OpenAI API to convert the text and OpenAI-like endpoint.
apiKey: API key for the labs.goo.ne.jp API. (Only required if the provider is goo)customOpenAIUrl: Custom OpenAI URL (Only required if the provider is OpenAI)cache(default false): Cache the result of the conversion. (Faster convert for goo provider)enableTransformMode: Enable transform mode in the suggestion list.
N/A
yarn installThen press F5 from visual studio code. If you get the warning: "The task 'npm: watch' cannot be tracked. Make sure to have a problem matcher defined." then click debug anyway.
First draft version. Conversion using https://labs.goo.ne.jp
Support offline convertion. Using kuroshiro: https://github.com/sglkc/kuroshiro-ts
- Add settings to allow user to choose the provider.
- New command: import cache, export cache, clear cache.
- Allow user transform japanese to romaji using custom action.
- Update readme
- Update icon
- Add screenshort demo.
- Support transform multiple lines of text.
- Transform mode can be customized in setting. (kanjiToRomanji.enableTransformMode)
- Add new transform mode: upper snake case (UPPER_SNAKE_CASE), back to japanese (Japanese) (only available if exist in dictionary or transformed before)
- Beta support OpenAI provider (and OpenAI API-like endpoint)
- Add command to import, export, clear, edit dictionary.
- Fix some issue when transform.
- Fix issue when transform with dictionary.
Enjoy!

