enthusjast56 downloads自动将中文标点转化为对应的英文标点. Automatically convert Chinese punctuation to corresponding English punctuation.
An Obsidian plugin that automatically converts Chinese punctuation to English punctuation as you type.
| From | To |
|---|---|
, |
, |
。 |
. |
: |
: |
; |
; |
! |
! |
? |
? |
【 】 |
[ ] |
( ) |
( ) |
《 》 |
< > |
" " |
" |
' ' |
' |
… |
... |
、 |
, |
「 」 |
{ } |
· |
. |
~ |
~ |
Enthusjast/obsidian-punctuation-converter as the repositorygit clone [email protected]:Enthusjast/obsidian-punctuation-converter.git
cd obsidian-punctuation-converter
npm install
npm run dev # watch mode with sourcemaps
npm run build # production build (type-check + bundle + minify)
npm run lint # run ESLint
src/
├── main.ts # Plugin entry, editor monitoring, commands, context menu
├── settings.ts # Settings tab UI, rule types, defaults, validation
└── locale.ts # i18n translations (zh/en) and language detection
setInterval at 150ms). A bidirectional diff locates only the changed region on each tick; editor.replaceRange() replaces just that portion.tsc, bundled by esbuild to CommonJS (ES2018). All Obsidian/CodeMirror modules are externalized.```