Skip to content

Instantly share code, notes, and snippets.

@ayaka14732
ayaka14732 / ytenx2qieyun.csv
Created March 1, 2021 01:39
韻典網《廣韻》資料小韻號對應的 qieyun-python 音韻地位
1 端一東平
2 定一東平
3 知三東平
4 澄三東平
5 章三東平
6 徹三東平
7 崇三東平
8 心三東平
9 日三東平
10 見三東平
@ayaka14732
ayaka14732 / kaom-dialect-scraper.py
Created February 23, 2021 06:13
爬取古音小鏡上某個方言點的字音資料
'''
爬取古音小鏡上某個方言點的字音資料。
設計思路:
1. 從「古音小鏡 > 漢語地理 > 音系速覽 > 某一方言點 > 聲調-聲母配合表」中獲取所有「聲調-聲母配合關係」
2. 對於每個「聲調-聲母配合關係」,獲取相關的所有字及字音
'''
from bs4 import BeautifulSoup
@ayaka14732
ayaka14732 / 1Av4y1f74N.md
Last active February 19, 2021 00:46
听《希顶に駆ける》有感

感觉好像每一个音素都叩击在心弦上一样

あまりにも良すぎて泣けてきそう・・

@ayaka14732
ayaka14732 / lingyun-os-210211.md
Created February 17, 2021 08:12
希顶语操作系统研制成功!

希顶语操作系统研制成功!

The operating system for the Shidinn language has been developed!

属于希顶语的操作系统“凌云操作系统”今日研制成功。凌云操作系统是一款功能完备的计算机操作系统,与一般的操作系统没有很大区别。但是,该操作系统独创了一项重要的特性,那就是操作系统界面以希顶语显示。这一广大希顶语使用者的夙愿终于成为了现实。

The operating system for the Shidinn language, Lingyun OS, has been developed today. It is a computer operating system with complete functions, which is not very different from general operating systems. However, the operating system is shipped with one important and unique feature: it is displayed in the Shidinn language. This is a long-held wish of many Shidinn language users.

“凌云操作系统”得名于元末明初诗人张达的诗作“焉见凌云雀,飘飖极天涯”,描绘了黄雀直上云霄、翱翔蓝天的图景,寄托了将希顶语、希顶操作系统发扬光大的美好愿望。

@ayaka14732
ayaka14732 / heteronym.js
Created January 12, 2021 00:53
統計《廣韻》中是多音字,而普通話中不是多音字的字的個數
// Install these libraries with Node,js:
// qieyun~0.7.6
// rime-utils~0.0.1
// Prepare files:
// terra_pinyin.dict.yaml <https://raw.githubusercontent.com/rime/rime-terra-pinyin/5a445e2953c4b8149daac9d4625782fd5f80d9f2/terra_pinyin.dict.yaml>
// 常用字頻序表.txt <https://cdn.jsdelivr.net/gh/ayaka14732/syyon-vencie@481d58e/texts/%E5%B8%B8%E7%94%A8%E5%AD%97%E9%A0%BB%E5%BA%8F%E8%A1%A8.txt>
// Run:
// node heteronym.js
const fs = require('fs');
# af-magic.zsh-theme
# Repo: https://github.com/andyfleming/oh-my-zsh
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
# Customized by Ayaka Mikazuki
# settings
typeset +H return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
typeset +H my_gray="$FG[237]"
typeset +H my_orange="$FG[214]"