Skip to content

Commit

Permalink
啟用雅俗通字典 V0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJui committed Mar 27, 2024
1 parent 12872e3 commit 05cb200
Show file tree
Hide file tree
Showing 12 changed files with 77 additions and 33 deletions.
Binary file modified Nga_Siok_Thong_Ji_Tian.db
Binary file not shown.
Binary file modified output/Piau-Tsu-Im.xlsx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ SELECT "Han_Ji", "TL_Phing_Im", "freq", "NST_ID", "Siann", "Un", "Tiau" FROM "Ha
DROP TABLE "Han_Ji_Phing_Im_Ji_Tian";

-- 將新表格重命名為原表格的名稱
ALTER TABLE "Han_Ji_Phing_Im_Ji_Tian_new" RENAME TO "Han_Ji_Phing_Im_Ji_Tian";
ALTER TABLE "Han_Ji_Phing_Im_Ji_Tian_new" RENAME TO "Han_Ji_Phing_Im_Ji_Tian";
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--建立 "雅俗通字庫" 表格
CREATE TABLE 雅俗通字庫 (
識別號 INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE NOT NULL,
漢字 TEXT NOT NULL,
切音 TEXT NOT NULL,
字韻 TEXT NOT NULL,
聲調 INTEGER NOT NULL,
原始拼音 TEXT,
舒促聲 TEXT NOT NULL,
TEXT NOT NULL,
TEXT NOT NULL,
調 INTEGER NOT NULL,
拼音碼 TEXT NOT NULL,
雅俗通標音 TEXT NOT NULL,
十五音標音 TEXT NOT NULL,
常用度 REAL DEFAULT (0.0)
);
59 changes: 59 additions & 0 deletions tools/Nga-Siok-Thong/s02_Modify_Table_Schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
PRAGMA foreign_keys = 0;

CREATE TABLE sqlitestudio_temp_table AS SELECT *
FROM 雅俗通字庫;

DROP TABLE 雅俗通字庫;

CREATE TABLE 雅俗通字庫 (
識別號 INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE NOT NULL,
漢字 TEXT NOT NULL,
切音 TEXT NOT NULL,
字韻 TEXT NOT NULL,
聲調 INTEGER NOT NULL,
原始拼音 TEXT,
舒促聲 TEXT NOT NULL,
TEXT NOT NULL,
TEXT NOT NULL,
調 INTEGER NOT NULL,
拼音碼 TEXT NOT NULL,
雅俗通標音 TEXT NOT NULL,
十五音標音 TEXT NOT NULL,
常用度 REAL DEFAULT (0.0)
);

INSERT INTO 雅俗通字庫 (
識別號,
漢字,
切音,
字韻,
聲調,
原始拼音,
舒促聲,
聲,
韻,
調,
拼音碼,
雅俗通標音,
十五音標音,
常用度
)
SELECT 識別號,
漢字,
切音,
字韻,
聲調,
原始拼音,
舒促聲,
聲,
韻,
調,
拼音碼,
雅俗通標音,
十五音標音,
常用度
FROM sqlitestudio_temp_table;

DROP TABLE sqlitestudio_temp_table;

PRAGMA foreign_keys = 1;

This file was deleted.

This file was deleted.

0 comments on commit 05cb200

Please sign in to comment.