Skip to content

请问如何将输入编码“123a”转换成“1a2a3a”? #1328

Answered by lotem
cloudfish asked this question in Q&A
Discussion options

You must be logged in to vote

我的思路是,先用 recognizer/patterns 定義 [0-9]+a[0-9]+b 兩種輸入模式,分列兩個 translator 翻譯有對應標記類型的 segment,而單字的輸入碼可以省略後綴 ab

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cloudfish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants