Re: Dropping ibus-pinyin (or salvaging libpyzy)?
Boyuan Yang <[email protected]> Sat, 02 May 2020 21:46:40 -0400
| Newsgroups | gmane.linux.debian.user.chinese.big5,gmane.linux.debian.user.chinese.gb |
|---|---|
| Organization | Debian Project |
| Message-ID | <[email protected]> |
--=-LpE2sbn+gkMkRSlDlRKm
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi,
=E5=9C=A8 2020-05-03=E6=98=9F=E6=9C=9F=E6=97=A5=E7=9A=84 00:13 +0200=EF=BC=
=8CGunnar Hjalmarsson=E5=86=99=E9=81=93=EF=BC=9A
> On 2020-04-29 08:37, Kentaro Hayashi wrote:
> > FYI: I may be wrong because I didn't know well, but It seems that
> > someone tried to port libpyzy scripts to python3.
> >=20
> > https://github.com/pyzy/pyzy/pull/4
>=20
> You are not wrong at all; the work has already been done, apparently.
>=20
> I tested it successfully and committed it as a patch to our repo.
>=20
> https://salsa.debian.org/input-method-team/libpyzy/-/commit/40dc6196
>=20
> So it looks like ibus-pinyin can stay in the archive for now. :)
The package may not FTBFS, but the python script did not run successfully.
There are trackbacks like this:
make[5]: Entering directory '/<<PKGBUILDDIR>>/data/db/android'
\
rm -f android.db; \
./create_db.py ./rawdict_utf16_65105_freq.txt | /usr/bin/sqlite3 android.db=
||
\
( rm -f android.db ; exit 1 )
Traceback (most recent call last):
File "./create_db.py", line 83, in <module>
main()
File "./create_db.py", line 80, in main
create_db(sys.argv[1])
File "./create_db.py", line 51, in create_db
records =3D list(read_phrases(filename))
File "./create_db.py", line 19, in read_phrases
buf =3D file(filename).read()
NameError: name 'file' is not defined
I continued with more patching work to fix this certain issue=20
https://salsa.debian.org/input-method-team/libpyzy/-/commit/736051f06ecb41a=
ada4448f6b89413d5b18bfb46
but that is not quite complete; it's still raising exceptions elsewhere. I'=
d
expect more help from others on making this script runnable.
--=20
Thanks,
Boyuan Yang
--=-LpE2sbn+gkMkRSlDlRKm
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAl6uIoAACgkQwpPntGGC
Ws7eRA/9EPOdOjLHr8LihBjFZCXUlDpxifjVMuQ1fR3W0pNo3iI0GjdQAZuL3Ldg
+6OVFeDEDeIvvsAkSDli3u8CA1SVLtC9BSzXxW7KMfpBatBSAFhNm0UpLlwBk/OL
67u1fIYHUKJixv2sN+eDW0AfjizmPFwPAB9sNXK9aFUCQ6DR85idjFZ2RMAmIOPs
1Y8+691VCrUBdS9ro0mI7dyljj68GJ0tvlKEYxbMiQKpPOeYQcq48ZnW0/6aqZFK
NLDoFfGHZO0v8myHe7WIEyZoxY2O5lvBIhPCRFO6L6Chx+hTDg+XXeYFVHJZj33M
TRgVo43W4HIKEtMRLvA6Rsps4um7PgGuaOyDrpQZu/5oj/YXnxLnBKB/qZNT0Ft7
DzhL1SBlDInjAfHJGtzHVnZif++smGfAoFlhs5ISDCO8shrTg3xBUDr+dlqdvT9+
ZggG6s6S4rKaHNoB4+DJYOJr5tiZVwwAv6+NT3FyKiVjjDjcFf8jUgOEXIPrVKlM
bxRlpl+8mP/0biTwlTE4+0putJ//AbZQ1FosQCaFVLpTKO5AD6XF0+aIoig/9XF/
67l87AMvMjNQDjOoPPDNwTtJA5lAmpXuRAfg07K+Jzv2rm4ngtsDPzcHhpCC3ao8
CmeQtJ7LwcQhdq8WpnMaSmsb1Gy/BKCP6ovg1nleNS/m1iPUI9A=
=9cWZ
-----END PGP SIGNATURE-----
--=-LpE2sbn+gkMkRSlDlRKm--