1
0
mirror of https://github.com/fumiama/emozi.git synced 2026-06-12 06:00:36 +08:00

feat(coder): add Stabilize

This commit is contained in:
源文雨
2024-02-14 21:09:22 +09:00
parent 76dca88501
commit 164ad7332c
2 changed files with 31 additions and 6 deletions

View File

@@ -7,10 +7,11 @@ import (
// 字数据库 数据来自 https://github.com/shuowenjiezi/shuowen
//
//var 字数据库 []byte
//go:embed 字.db
var 字数据库 []byte
// DatabasePath 字数据库的路径 如找不到会向对应路径写入内嵌的字数据库
var EmoziDatabasePath = "字.db"
var EmoziDatabasePath = "字a.db"
const (
主字表名 = "emozi"
@@ -30,7 +31,7 @@ type 字表 struct {
F string
}
func 表ID(w rune, s 声母枚举, y 韵母枚举, t 声调枚举) int64 {
func 表ID(w rune, s 声母枚举, y 韵母枚举, t 声调枚举) int64 {
return int64((uint64(w) << 32) | (uint64(s) << 16) | (uint64(y) << 8) | (uint64(t)))
}