FS#61170 - [ibus-libpinyin] The package should use OpenCC for SC to TC conversion

Attached to Project: Arch Linux
Opened by Marcin Mielniczuk (marmistrz) - Tuesday, 25 December 2018, 13:38 GMT
Last edited by Felix Yan (felixonmars) - Monday, 08 June 2020, 18:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: ibus-libpinyin has two possible backends for TC input - it can either use OpenCC or its own replacement table. OpenCC does a much better job, for example AFAIK `zhoumo` should rather be 週末 in TC, but the ibus-libpinyin built-in engine only suggests 周末.

OpenCC outputs 週末 as the conversion result, for example
```
In [3]: OpenCC('s2t').convert('周末')
Out[3]: '週末'
```

Additional info:
* opencc 1.0.5-2, ibus-libpinyin 1.10.0-1
This task depends upon

Closed by  Felix Yan (felixonmars)
Monday, 08 June 2020, 18:32 GMT
Reason for closing:  Implemented
Additional comments about closing:  1.11.1-4
Comment by Marcin Mielniczuk (marmistrz) - Tuesday, 25 December 2018, 13:47 GMT
This patch should do the trick: https://gist.github.com/bf2da713f1691c0d60ecd69fa2df0b11
Works for me locally
Comment by Marcin Mielniczuk (marmistrz) - Monday, 08 June 2020, 14:56 GMT
Bump, this ticket is stale since Dec 2019. I've even provided a patch, so is there any problem here?

Loading...