Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调转原有文本顺序的规则(10公里/小时--》每小时十公里)怎么移除? #279

Open
xiaoqiang-ok opened this issue Oct 11, 2024 · 1 comment

Comments

@xiaoqiang-ok
Copy link

xiaoqiang-ok commented Oct 11, 2024

有些规则会调转原有文本的顺序,这会影响我后续的一些文本对齐,这种规则怎么拿掉比较好?
eg:
10公里/小时 TN转成 每小时公里

@pengzhendong
Copy link
Member

参考这里:

# 10km/h
rmsign = rmspace + delete('/') + rmspace
tagger |= (insert('numerator: "') + measure + rmsign +
insert('" denominator: "') + units + insert('"'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants