Skip to content

Instantly share code, notes, and snippets.

View foxmean's full-sized avatar

Pathompong Kwangtong foxmean

  • Thailand
View GitHub Profile
@foxmean
foxmean / bopomofo.py
Created June 8, 2024 11:51 — forked from ttempe/bopomofo.py
Convert a pinyin string to bopomofo (Zhuyin)
# -*- coding: utf-8 -*-
#
# Copyright © 2012 Thomas TEMPÉ, <[email protected]>
# Copyright © 2014 Alex Griffin, <[email protected]>
#
# DWTFYW license.
# Do what the fuck you want with this file.
import string