Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View bczhc's full-sized avatar
🌴

Zhai Can bczhc

🌴
  • Jiangsu, China
  • 08:24 (UTC +08:00)
  • Codestin Search App @bczhc0
View GitHub Profile
@bczhc
bczhc / a.md
Last active November 14, 2025 23:45
`Multiling IOC 15.1_c`中文名用到的带“鸟”部分的字

鹤鸸鹋䳍鸭鹊鸿鹅鸳鸯鸣鸡鹫鹑鹧鸪鹇鹌鸱鹃鸨鹭鸦鸽鸠䴘䴙鹳鸻鸥鹬鹮鹦鳽鹲鹈鸬鹚鹕鹗鸢鵟鹞鸮鸺鹠鴗鹟䴕鹉鹩鸫鹨鵙莺䳭鹛鹎鹂䴓鸲鹪鹡鸰鹀

@bczhc
bczhc / a.md
Created November 12, 2025 16:47
字体简单聚类(范围U+3400到U+9FA5)
typst c 13.typ --input=start=$((0x3400)) --input=end=$((0x9fa5)) --ppi=1000 --format=png /mnt/nvme/imgs/'{p}'.png

效果一般吧。不是多么好。

330
簑簔
䅮稹
@bczhc
bczhc / 11.svg
Created November 12, 2025 14:20
"I wish the English language had more interesting characters." #typst #typesetting
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bczhc
bczhc / 8.typ
Last active November 13, 2025 12:02
Generate Unicode flash animation using Typst #unicode #animation #typst
#import "@preview/oxifmt:1.0.0": strfmt
#let cn-fonts = (
"Plangothic P1",
"Plangothic P2",
"Noto Sans CJK SC",
)
#let new-page(cp) = [
#set page(width: 16in, height: 9in, fill: green.mix(luma(20%)))
@bczhc
bczhc / a.md
Created November 12, 2025 08:42
把字体文件中的所有字形排布到PDF上。AI写的玩具东西 #pdf #glyph #font

示例:

./run.sh /usr/share/fonts/TTF/LXGWWenKai-Regular.ttf

输出文件在./out.pdf

@bczhc
bczhc / a.md
Last active November 11, 2025 14:06
使用krilla把Inkscape svg转换为PDF #inkscape #pdf #svg #krilla

krilla is 10000% better than Inkscape PDF exporter and rsvg-convert. For example, Inkscape & rsvg-convert just export blurry clips & masks objects, and somehow even buggy e.g. incomplete (issue). And, for unknown reason, Inkscape will miss Han character (yes only this, just only this specific one among hundreds of thousands of Chinese characters; don't know why) for its PDF exports (issue). With krilla, all is just perfect! Love you ️Krilla ❤️

@bczhc
bczhc / a.md
Last active November 9, 2025 11:15
右部或下部为“鸟”的汉字及其`kDefinition` 截至Unicode17 #unicode #ucd #ids

IDS数据来自https://gitlab.chise.org/CHISE/ids

处理:

cat IDS-UCS-Basic.txt IDS-UCS-Ext-* | rg '^U' | rg '\s+[⿰⿱].+[鸟鳥]$' > han-bird-component.txt
cat han-bird-component.txt | rg '^U\S+\s+(.)\s+.*$' -r '$1' > /tmp/han.txt
@bczhc
bczhc / bitcoin-whitepaper-poster A3.pdf
Last active November 10, 2025 02:18
Bitcoin whitepaper poster A3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bczhc
bczhc / a.csv
Created November 7, 2025 19:22
截至Unicode 17 笔画最多汉字前20 #unicode #ucd
# char(ucd.codepoint) (SELECT printf("%x", codepoint) FROM ucd as u where u.codepoint == ucd.codepoint) kTotalStrokes
1 𱁬 3106c 84
2 𰽔 30f54 76
3 𠔻 2053b 64
4 𪚥 2a6a5 64
5 𱟛 317db 64
6 𰻞 30ede 58
7 𲔁 32501 56
8 𬚩 2c6a9 53
9 4a3b 52
@bczhc
bczhc / bird-cnlist
Created November 7, 2025 17:51
eBird个人lifer转换为“中国观鸟年报-中国鸟类名录”的记录
#!/usr/bin/env ruby
# encoding: UTF-8
require 'csv'
# 定义结构体
Species = Struct.new(:sci_name, :cn_name, :en_name, :iucn_class, :cn_protection, :note)
Family = Struct.new(:name, :cn_name, :species_list)
Order = Struct.new(:name, :cn_name, :family_list)