请教一下如何在中英混输的情况在英文前后加入空格
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 6.4k
- Forks
- 554
- PR merge metrics
- No merged PRs in 30d
Description
请教一下如何在中英混输的情况在英文前后加入空格。
现在是这样的

想变成这样的:
squirrel 输入法真的很好很
现在有一种方案就是在英文词库的每一个单词前加上一个空格,但是如果是第一个字/词是英文时,这句话的前面就多了一个空格。
我也GOOGLE了但是都没有很好的解决办法。
想问一问各位大佬,有好的解决办法吗?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by reviewing Squirrel's handling of English words within mixed Chinese-English input and compare it with the proposed leading-space dictionary workaround. Done should mean English text is spaced correctly in mixed input without adding an unwanted leading space when the sentence starts in English.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, internationalization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100