valentjn / vscode-ltex

LTeX: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
800 stars 27 forks source link

Allow CJK characters and Latin letters join without whitespace #858

Open Saltsmart opened 12 months ago

Saltsmart commented 12 months ago

Note: Per the contribution guidelines, deleting parts of the template or not filling in vital information may result in the issue to be immediately closed as invalid.

Is your feature request related to a problem? Please describe.

I'm always frustrated when I write academic reports in my mother tongue and found many false positives (MORFOLOGIK_RULE_EN_US). I have found these mistakes are caused by the join of CJK (Chinese, Japanese and Korean) characters and Latin letters without whitespace.

Describe the solution you'd like

Please allow CJK characters and Latin letters join without whitespace.

Describe alternatives you've considered

Disable language checking for the specific characters (For example, The basic block named CJK Unified Ideographs (4E00–9FFF) contains 20,992 basic Chinese characters in the range U+4E00 through U+9FFF.), or replace them with dummy contents.

Additional context

image

If you are familiar with Chinese, this website presents a nice discussion for the problem: 中西文混排时汉字与拉丁字母之间是否要有空格?