huacnlee / autocorrect

A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuations between CJK (Chinese, Japanese, Korean).
https://huacnlee.github.io/autocorrect
MIT License
894 stars 31 forks source link

请求增加跳过英文冒号的功能 #192

Closed ykla closed 3 months ago

ykla commented 4 months ago

目前处理以下文本时:

However, one might argue that this only becomes a problem if one thinks of authenticity as entirely a personal virtue. In other words, there is only a clash between morality and social life and being authentic if the “true” self is regarded as fundamentally prone to anti-social behaviour. But many thinkers at this time understood human nature as fundamentally disposed toward beneficence, so that evil was seen as arising from socialization and upbringing rather than from deep drives within the human being. For instance, Rousseau holds that certain immoral characteristics are immanent in man but were produced by the dynamics of modern society, which is characterized by a competitive way of relating to others and striving for acknowledgement in the public sphere. Rousseau thus externalizes the origins of societal evil and alienation from the original nature of man. The undistorted self-relation of natural man inspires sympathy and considerate relations with others, sensitive to “seeing any sentient being, especially our fellow-man, perish or suffer, principally those like ourselves” (Rousseau 1992 [1754]: 14). In somewhat the same way, economic theorists of the time supposed that unregulated markets are self-correcting, as human beings are naturally inclined to engage in mutually advantageous commercial activities (Taylor 2007: 221–269). On this view, authenticity does not amount to egoism or self-absorption. On the contrary, the prevailing view seems to have been that, by turning inward and accessing the “true” self, one is simultaneously led towards a deeper engagement with the social world. This is why Taylor (1989: 419–455) describes the trajectory of the project of authenticity is “inward and upward”.

会自动把数字后边的英文冒号后边的空格删掉。希望在配置文件中增加忽略英文冒号的功能,或者可以自定义忽略某字符或字符串的功能。

非常感谢。

huacnlee commented 3 months ago

英文冒号不会处理的,你应该是看错了吧,只有中文冒号后面的空格才会被去掉。

或者可以自定义忽略某字符或字符串的功能。

textRules 这个配置项可以做此类事情,可以看 README 上的介绍。

huacnlee commented 3 months ago

哦,是数字后面的冒号,我测一下


Edit: 没问题呢

image
ykla commented 3 months ago

我现在对这段文本测试也是正常的。