Error in user YAML: (<unknown>): could not find expected ':' while scanning a simple key at line 3 column 1
---
- oeasy Python 0427
- 这是 oeasy 系统化 Python 教程,从基础一步步讲,扎实、完整、不跳步。愿意花时间学,就能真正学会。
本教程同步发布在:
个人网站: `https://oeasy.org`
蓝桥云课: `https://www.lanqiao.cn/courses/3584`
GitHub: `https://github.com/overmind1980/oeasy-python-tutorial`
Gitee: `https://gitee.com/overmind1980/oeasypython`
---- 上次了解了
unicode和utf-8unicode是字符集utf-8是一种可变长度的编码方式utf-8是实现unicode的存储和传输的现实的方式
- 这种utf-8编码方式编码了世界上各种国家和地区的语言文字
- 比如 我国的藏文
- 那藏文 是如何编码的呢?🤔
- 我想输出所有的藏文字符
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""输出所有藏文字符的Python脚本"""
def print_tibetan_characters():
"""遍历并输出U+0F00到U+0FFF范围内的所有藏文字符"""
print("藏文字符 (U+0F00 到 U+0FFF):\n")
# 跟踪当前行的字符数量,用于格式化输出
chars_per_line = 15
current_count = 0
# 遍历藏文字符的Unicode范围
for code_point in range(0x0F00, 0x1000):
# 获取当前Unicode码点对应的字符
try:
char = chr(code_point)
# 输出字符及其十六进制码点
print(f"{char} (U+{code_point:04X})", end=" ")
current_count += 1
# 每行显示固定数量的字符后换行
if current_count >= chars_per_line:
print()
current_count = 0
except:
# 处理可能的字符显示错误
print(f"[无法显示 U+{code_point:04X}]", end=" ")
current_count += 1
if current_count >= chars_per_line:
print()
current_count = 0
# 确保最后一行也换行
if current_count > 0:
print()
if __name__ == "__main__":
print_tibetan_characters()
# 说明和建议
print("\n说明:")
print("1. 本脚本输出了Unicode编码范围U+0F00到U+0FFF内的所有藏文字符")
print("2. 如果无法正确显示藏文字符,可能需要安装支持藏文的字体")
- 藏文字符范围非常明确
for code_point in range(0x0F00, 0x1000):
# 获取当前Unicode码点对应的字符
- 但是由于字体原因
- 无法观看
https://labfile.shiyanlou.com/courses/3584/bzdbt.ttf
- 下载字体
- 安装字体
sudo cp bzdbt.ttf /usr/share/fonts
- 设置字库
- 观察效果
- 可以分门别类吗?
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""简化版藏文字符输出脚本"""
def get_tibetan_character_info():
"""获取藏文字符的基本信息和分类"""
# 藏文字符基本分类和发音信息
tibetan_info = {
# 基本辅音字母
0x0F40: ("ཀ", "基本辅音", "ka"),
0x0F41: ("ཁ", "基本辅音", "kha"),
0x0F42: ("ག", "基本辅音", "ga"),
0x0F43: ("ང", "基本辅音", "nga"),
0x0F44: ("ཅ", "基本辅音", "ca"),
0x0F45: ("ཆ", "基本辅音", "cha"),
0x0F46: ("ཇ", "基本辅音", "ja"),
0x0F47: ("ཉ", "基本辅音", "nya"),
0x0F48: ("ཊ", "基本辅音", "ta"),
0x0F49: ("ཋ", "基本辅音", "tha"),
0x0F4A: ("ཌ", "基本辅音", "da"),
0x0F4B: ("ཎ", "基本辅音", "na"),
0x0F4C: ("ཏ", "基本辅音", "ta"),
0x0F4D: ("ཐ", "基本辅音", "tha"),
0x0F4E: ("ད", "基本辅音", "da"),
0x0F4F: ("ན", "基本辅音", "na"),
0x0F50: ("པ", "基本辅音", "pa"),
0x0F51: ("ཕ", "基本辅音", "pha"),
0x0F52: ("བ", "基本辅音", "ba"),
0x0F53: ("མ", "基本辅音", "ma"),
0x0F54: ("ཙ", "基本辅音", "tsa"),
0x0F55: ("ཚ", "基本辅音", "tsha"),
0x0F56: ("ཛ", "基本辅音", "dza"),
0x0F57: ("ཝ", "基本辅音", "wa"),
0x0F58: ("ཞ", "基本辅音", "zha"),
0x0F59: ("ཟ", "基本辅音", "za"),
0x0F5A: ("འ", "基本辅音", "'a"),
0x0F5B: ("ཡ", "基本辅音", "ya"),
0x0F5C: ("ར", "基本辅音", "ra"),
0x0F5D: ("ལ", "基本辅音", "la"),
0x0F5E: ("ཤ", "基本辅音", "sha"),
0x0F5F: ("ཥ", "基本辅音", "ssa"),
0x0F60: ("ས", "基本辅音", "sa"),
0x0F61: ("ཧ", "基本辅音", "ha"),
# 元音符号
0x0F62: ("ཨ", "基本元音", "a"),
0x0F71: ("ཱ", "元音符号", "ā"),
0x0F72: ("ི", "元音符号", "i"),
0x0F73: ("ཱི", "元音符号", "ī"),
0x0F74: ("ུ", "元音符号", "u"),
0x0F75: ("ཱུ", "元音符号", "ū"),
0x0F76: ("ེ", "元音符号", "e"),
0x0F77: ("ཻ", "元音符号", "ai"),
0x0F78: ("ོ", "元音符号", "o"),
0x0F79: ("ཽ", "元音符号", "au"),
# 数字
0x0F20: ("༠", "数字", "0"),
0x0F21: ("༡", "数字", "1"),
0x0F22: ("༢", "数字", "2"),
0x0F23: ("༣", "数字", "3"),
0x0F24: ("༤", "数字", "4"),
0x0F25: ("༥", "数字", "5"),
0x0F26: ("༦", "数字", "6"),
0x0F27: ("༧", "数字", "7"),
0x0F28: ("༨", "数字", "8"),
0x0F29: ("༩", "数字", "9"),
# 常用标点符号
0x0F0B: ("་", "标点符号", "结束符号"),
0x0F0C: ("༌", "标点符号", "隔音符号"),
0x0F0D: ("།", "标点符号", "分节符"),
0x0F3A: ("༺", "标点符号", "左引号"),
0x0F3B: ("༻", "标点符号", "右引号"),
}
return tibetan_info
def print_tibetan_characters_simple():
"""直接输出藏文字符信息"""
# 获取藏文字符信息
tibetan_info = get_tibetan_character_info()
print("藏文字符信息(字符 - Unicode - 类型 - 发音)\n")
# 按Unicode编码排序输出
for code_point in sorted(tibetan_info.keys()):
char, char_type, pronunciation = tibetan_info[code_point]
print(f"{char} - U+{code_point:04X} - {char_type} - {pronunciation}")
if __name__ == "__main__":
print_tibetan_characters_simple()
- 但是中文汉字也变看不懂了
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>藏文字符信息表</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f8f9fa;
}
h1 {
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
}
table {
width: 100%;
border-collapse: collapse;
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
overflow: hidden;
border-radius: 8px;
}
th, td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
th {
background-color: #f5f5f5;
font-weight: 600;
color: #555;
}
tr:hover {
background-color: #f9f9f9;
}
.tibetan-char {
font-family: 'Tibetan Machine Uni', 'Jomolhari', 'Noto Sans Tibetan', 'Lohit Tibetan', sans-serif;
font-size: 24px;
line-height: 1.2;
}
.char-type {
font-weight: 500;
}
.code-point {
font-family: monospace;
color: #666;
}
.search-container {
margin-bottom: 20px;
text-align: center;
}
#search-input {
padding: 10px;
width: 300px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
}
#search-button {
padding: 10px 20px;
background-color: #3498db;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
margin-left: 10px;
}
#search-button:hover {
background-color: #2980b9;
}
.category-filter {
margin-bottom: 20px;
text-align: center;
}
.filter-button {
padding: 8px 16px;
margin: 0 5px;
background-color: #ecf0f1;
border: 1px solid #ddd;
border-radius: 4px;
cursor: pointer;
}
.filter-button.active {
background-color: #3498db;
color: white;
border-color: #3498db;
}
.footer {
text-align: center;
margin-top: 40px;
padding: 20px;
color: #777;
font-size: 14px;
}
</style>
</head>
<body>
<h1>藏文字符信息表</h1>
<div class="search-container">
<input type="text" id="search-input" placeholder="搜索字符、发音或类型...">
<button id="search-button">搜索</button>
</div>
<div class="category-filter">
<button class="filter-button active" data-filter="all">全部</button>
<button class="filter-button" data-filter="基本辅音">基本辅音</button>
<button class="filter-button" data-filter="元音符号">元音符号</button>
<button class="filter-button" data-filter="基本元音">基本元音</button>
<button class="filter-button" data-filter="数字">数字</button>
<button class="filter-button" data-filter="标点符号">标点符号</button>
</div>
<table id="tibetan-table">
<thead>
<tr>
<th>藏文字符</th>
<th>Unicode码点</th>
<th>类型</th>
<th>发音</th>
</tr>
</thead>
<tbody id="tibetan-table-body">
<!-- 表格内容将通过JavaScript动态填充 -->
</tbody>
</table>
<div class="footer">
<p>本表格展示了常见的藏文字符及其基本信息</p>
<p>说明:</p>
<ul style="text-align: left; max-width: 800px; margin: 0 auto;">
<li>藏文字符的完整Unicode范围是U+0F00到U+0FFF,本表格包含了其中最常用的字符</li>
<li>部分Unicode码点可能是控制字符、未定义字符或较少使用的变体字符,未包含在本表格中</li>
<li>如果无法正确显示藏文字符,请安装支持藏文的字体(如Tibetan Machine Uni、Jomolhari、Noto Sans Tibetan等)</li>
</ul>
</div>
<script>
// 藏文字符数据(从tibetan_characters_table.py扩展而来,包含更多字符)
const tibetanCharacters = [
// 标点符号 (U+0F04 - U+0F0F, U+0F3A - U+0F3F)
{ codePoint: 0x0F04, char: '༄', type: '标点符号', pronunciation: '标题符号' },
{ codePoint: 0x0F05, char: '༅', type: '标点符号', pronunciation: '标题符号' },
{ codePoint: 0x0F06, char: '༆', type: '标点符号', pronunciation: '段落符号' },
{ codePoint: 0x0F07, char: '༇', type: '标点符号', pronunciation: '章节符号' },
{ codePoint: 0x0F08, char: '༈', type: '标点符号', pronunciation: '小节符号' },
{ codePoint: 0x0F09, char: '༉', type: '标点符号', pronunciation: '小节符号' },
{ codePoint: 0x0F0A, char: '༊', type: '标点符号', pronunciation: '连接符号' },
{ codePoint: 0x0F0B, char: '་', type: '标点符号', pronunciation: '结束符号' },
{ codePoint: 0x0F0C, char: '༌', type: '标点符号', pronunciation: '隔音符号' },
{ codePoint: 0x0F0D, char: '།', type: '标点符号', pronunciation: '分节符' },
{ codePoint: 0x0F0E, char: '༎', type: '标点符号', pronunciation: '双分节符' },
{ codePoint: 0x0F0F, char: '༏', type: '标点符号', pronunciation: '章节符号' },
// 数字 (U+0F20 - U+0F29)
{ codePoint: 0x0F20, char: '༠', type: '数字', pronunciation: '0' },
{ codePoint: 0x0F21, char: '༡', type: '数字', pronunciation: '1' },
{ codePoint: 0x0F22, char: '༢', type: '数字', pronunciation: '2' },
{ codePoint: 0x0F23, char: '༣', type: '数字', pronunciation: '3' },
{ codePoint: 0x0F24, char: '༤', type: '数字', pronunciation: '4' },
{ codePoint: 0x0F25, char: '༥', type: '数字', pronunciation: '5' },
{ codePoint: 0x0F26, char: '༦', type: '数字', pronunciation: '6' },
{ codePoint: 0x0F27, char: '༧', type: '数字', pronunciation: '7' },
{ codePoint: 0x0F28, char: '༨', type: '数字', pronunciation: '8' },
{ codePoint: 0x0F29, char: '༩', type: '数字', pronunciation: '9' },
// 更多标点符号
{ codePoint: 0x0F3A, char: '༺', type: '标点符号', pronunciation: '左引号' },
{ codePoint: 0x0F3B, char: '༻', type: '标点符号', pronunciation: '右引号' },
{ codePoint: 0x0F3C, char: '༼', type: '标点符号', pronunciation: '左括号' },
{ codePoint: 0x0F3D, char: '༽', type: '标点符号', pronunciation: '右括号' },
{ codePoint: 0x0F3E, char: '༾', type: '标点符号', pronunciation: '左书名号' },
{ codePoint: 0x0F3F, char: '༿', type: '标点符号', pronunciation: '右书名号' },
// 基本辅音字母 (U+0F40 - U+0F69)
{ codePoint: 0x0F40, char: 'ཀ', type: '基本辅音', pronunciation: 'ka' },
{ codePoint: 0x0F41, char: 'ཁ', type: '基本辅音', pronunciation: 'kha' },
{ codePoint: 0x0F42, char: 'ག', type: '基本辅音', pronunciation: 'ga' },
{ codePoint: 0x0F43, char: 'ང', type: '基本辅音', pronunciation: 'nga' },
{ codePoint: 0x0F44, char: 'ཅ', type: '基本辅音', pronunciation: 'ca' },
{ codePoint: 0x0F45, char: 'ཆ', type: '基本辅音', pronunciation: 'cha' },
{ codePoint: 0x0F46, char: 'ཇ', type: '基本辅音', pronunciation: 'ja' },
{ codePoint: 0x0F47, char: 'ཉ', type: '基本辅音', pronunciation: 'nya' },
{ codePoint: 0x0F48, char: 'ཊ', type: '基本辅音', pronunciation: 'ta' },
{ codePoint: 0x0F49, char: 'ཋ', type: '基本辅音', pronunciation: 'tha' },
{ codePoint: 0x0F4A, char: 'ཌ', type: '基本辅音', pronunciation: 'da' },
{ codePoint: 0x0F4B, char: 'ཎ', type: '基本辅音', pronunciation: 'na' },
{ codePoint: 0x0F4C, char: 'ཏ', type: '基本辅音', pronunciation: 'ta' },
{ codePoint: 0x0F4D, char: 'ཐ', type: '基本辅音', pronunciation: 'tha' },
{ codePoint: 0x0F4E, char: 'ད', type: '基本辅音', pronunciation: 'da' },
{ codePoint: 0x0F4F, char: 'ན', type: '基本辅音', pronunciation: 'na' },
{ codePoint: 0x0F50, char: 'པ', type: '基本辅音', pronunciation: 'pa' },
{ codePoint: 0x0F51, char: 'ཕ', type: '基本辅音', pronunciation: 'pha' },
{ codePoint: 0x0F52, char: 'བ', type: '基本辅音', pronunciation: 'ba' },
{ codePoint: 0x0F53, char: 'མ', type: '基本辅音', pronunciation: 'ma' },
{ codePoint: 0x0F54, char: 'ཙ', type: '基本辅音', pronunciation: 'tsa' },
{ codePoint: 0x0F55, char: 'ཚ', type: '基本辅音', pronunciation: 'tsha' },
{ codePoint: 0x0F56, char: 'ཛ', type: '基本辅音', pronunciation: 'dza' },
{ codePoint: 0x0F57, char: 'ཝ', type: '基本辅音', pronunciation: 'wa' },
{ codePoint: 0x0F58, char: 'ཞ', type: '基本辅音', pronunciation: 'zha' },
{ codePoint: 0x0F59, char: 'ཟ', type: '基本辅音', pronunciation: 'za' },
{ codePoint: 0x0F5A, char: 'འ', type: '基本辅音', pronunciation: "'a" },
{ codePoint: 0x0F5B, char: 'ཡ', type: '基本辅音', pronunciation: 'ya' },
{ codePoint: 0x0F5C, char: 'ར', type: '基本辅音', pronunciation: 'ra' },
{ codePoint: 0x0F5D, char: 'ལ', type: '基本辅音', pronunciation: 'la' },
{ codePoint: 0x0F5E, char: 'ཤ', type: '基本辅音', pronunciation: 'sha' },
{ codePoint: 0x0F5F, char: 'ཥ', type: '基本辅音', pronunciation: 'ssa' },
{ codePoint: 0x0F60, char: 'ས', type: '基本辅音', pronunciation: 'sa' },
{ codePoint: 0x0F61, char: 'ཧ', type: '基本辅音', pronunciation: 'ha' },
{ codePoint: 0x0F62, char: 'ཨ', type: '基本元音', pronunciation: 'a' },
// 元音符号 (U+0F71 - U+0F7E)
{ codePoint: 0x0F71, char: 'ཱ', type: '元音符号', pronunciation: 'ā' },
{ codePoint: 0x0F72, char: 'ི', type: '元音符号', pronunciation: 'i' },
{ codePoint: 0x0F73, char: 'ཱི', type: '元音符号', pronunciation: 'ī' },
{ codePoint: 0x0F74, char: 'ུ', type: '元音符号', pronunciation: 'u' },
{ codePoint: 0x0F75, char: 'ཱུ', type: '元音符号', pronunciation: 'ū' },
{ codePoint: 0x0F76, char: 'ེ', type: '元音符号', pronunciation: 'e' },
{ codePoint: 0x0F77, char: 'ཻ', type: '元音符号', pronunciation: 'ai' },
{ codePoint: 0x0F78, char: 'ོ', type: '元音符号', pronunciation: 'o' },
{ codePoint: 0x0F79, char: 'ཽ', type: '元音符号', pronunciation: 'au' }
];
// 填充表格
function populateTable(characters) {
const tableBody = document.getElementById('tibetan-table-body');
tableBody.innerHTML = '';
characters.forEach(char => {
const row = document.createElement('tr');
row.innerHTML = `
<td class="tibetan-char">${char.char}</td>
<td class="code-point">U+${char.codePoint.toString(16).toUpperCase().padStart(4, '0')}</td>
<td class="char-type">${char.type}</td>
<td>${char.pronunciation}</td>
`;
tableBody.appendChild(row);
});
}
// 初始化表格
populateTable(tibetanCharacters);
// 搜索功能
document.getElementById('search-button').addEventListener('click', function() {
const searchTerm = document.getElementById('search-input').value.toLowerCase();
filterCharacters(searchTerm);
});
document.getElementById('search-input').addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
const searchTerm = e.target.value.toLowerCase();
filterCharacters(searchTerm);
}
});
function filterCharacters(searchTerm) {
const filtered = tibetanCharacters.filter(char =>
char.char.includes(searchTerm) ||
char.type.toLowerCase().includes(searchTerm) ||
char.pronunciation.toLowerCase().includes(searchTerm) ||
char.codePoint.toString(16).toLowerCase().includes(searchTerm)
);
populateTable(filtered);
}
// 分类过滤功能
document.querySelectorAll('.filter-button').forEach(button => {
button.addEventListener('click', function() {
// 更新按钮状态
document.querySelectorAll('.filter-button').forEach(btn => btn.classList.remove('active'));
this.classList.add('active');
const filter = this.getAttribute('data-filter');
if (filter === 'all') {
populateTable(tibetanCharacters);
} else {
const filtered = tibetanCharacters.filter(char => char.type === filter);
populateTable(filtered);
}
});
});
</script>
</body>
</html>
- 我们可以看到
- 藏文字符是一种拼音文字
- 需要将元音和辅音拼合起来才可以
- 具体怎么拼合呢?
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>藏文字符组合示例</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f8f9fa;
}
h1 {
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
}
h2 {
color: #3498db;
margin-top: 40px;
margin-bottom: 20px;
}
.container {
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.tibetan-text {
font-family: 'Tibetan Machine Uni', 'Jomolhari', 'Noto Sans Tibetan', 'Lohit Tibetan', sans-serif;
font-size: 36px;
line-height: 1.6;
text-align: center;
margin: 20px 0;
}
.word-example {
background-color: #f9f9f9;
padding: 20px;
margin: 20px 0;
border-radius: 8px;
border-left: 4px solid #3498db;
}
.explanation {
margin-top: 15px;
padding: 15px;
background-color: #f1f8ff;
border-radius: 6px;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
th {
background-color: #f5f5f5;
font-weight: 600;
color: #555;
}
.combination-steps {
margin: 20px 0;
padding: 20px;
background-color: #fff8e1;
border-radius: 8px;
}
.step {
margin-bottom: 15px;
}
.step-number {
display: inline-block;
width: 30px;
height: 30px;
background-color: #ff9800;
color: white;
border-radius: 50%;
text-align: center;
line-height: 30px;
margin-right: 10px;
}
.combination-visual {
font-size: 24px;
text-align: center;
margin: 20px 0;
}
.notes {
background-color: #fff3cd;
padding: 15px;
border-radius: 6px;
border-left: 4px solid #ffc107;
margin-top: 30px;
}
</style>
</head>
<body>
<h1>藏文字符组合示例</h1>
<div class="container">
<h2>基本概念</h2>
<p>藏文是一种拼音文字,由辅音字母和元音符号组合而成。元音符号通常附加在辅音字母的上方或下方。下面我们将通过几个常用词汇的例子,展示藏文字符的组合方法。</p>
<div class="tibetan-text">ཨ་མ་ར་མ་ (阿弥陀佛)</div>
<div class="notes">
<strong>注意:</strong>为了正确显示藏文字符,请确保您的系统已安装支持藏文的字体,如Tibetan Machine Uni、Jomolhari或Noto Sans Tibetan等。
</div>
</div>
<div class="container">
<h2>常用词汇组合示例</h2>
<!-- 尼玛 -->
<div class="word-example">
<h3>例子1:尼玛(太阳)</h3>
<div class="tibetan-text">ཉི་མ་</div>
<div class="combination-steps">
<div class="step">
<span class="step-number">1</span>
<strong>辅音字母:</strong>ཉ (nya) + མ (ma)
</div>
<div class="step">
<span class="step-number">2</span>
<strong>元音符号:</strong>ི (i) 附加在ཉ的下方
</div>
<div class="step">
<span class="step-number">3</span>
<strong>组合过程:</strong>ཉ + ི = ཉི (nyi),然后加上 མ (ma)
</div>
</div>
<div class="combination-visual">
ཉ + ི = ཉི + མ = ཉི་མ་
</div>
<div class="explanation">
<strong>解释:</strong>"尼玛"在藏语中是太阳的意思。这个词由两个音节组成:"尼"(nyi)和"玛"(ma)。在藏文中,元音符号附加在辅音字母上,形成完整的音节。
</div>
</div>
<!-- 达瓦 -->
<div class="word-example">
<h3>例子2:达瓦(月亮)</h3>
<div class="tibetan-text">ཟླ་བ་</div>
<div class="combination-steps">
<div class="step">
<span class="step-number">1</span>
<strong>辅音字母:</strong>ཟ (za) + བ (ba)
</div>
<div class="step">
<span class="step-number">2</span>
<strong>元音符号:</strong>ླ (la) 附加在ཟ的下方
</div>
<div class="step">
<span class="step-number">3</span>
<strong>组合过程:</strong>ཟ + ླ = ཟླ (dawa),然后加上 བ (ba)
</div>
</div>
<div class="combination-visual">
ཟ + ླ = ཟླ + བ = ཟླ་བ་
</div>
<div class="explanation">
<strong>解释:</strong>"达瓦"在藏语中是月亮的意思。这个例子展示了如何将下加字附加在辅音字母上,形成新的发音。
</div>
</div>
<!-- 扎西德勒 -->
<div class="word-example">
<h3>例子3:扎西德勒(吉祥如意)</h3>
<div class="tibetan-text">བཀྲ་ཤིས་དཀར་ལས་</div>
<div class="combination-steps">
<div class="step">
<span class="step-number">1</span>
<strong>第一个词(扎西):</strong>བ + ཀ + ྲ = བཀྲ (dza) + ཤ + ི + ས = ཤིས (shi)
</div>
<div class="step">
<span class="step-number">2</span>
<strong>第二个词(德勒):</strong>ད + ཀ + ར = དཀར (kar) + ལ + ས = ལས (le)
</div>
</div>
<div class="combination-visual">
བཀྲ + ཤིས = བཀྲ་ཤིས། + དཀར + ལས = བཀྲ་ཤིས་དཀར་ལས་
</div>
<div class="explanation">
<strong>解释:</strong>"扎西德勒"是最常用的藏语问候语,意为"吉祥如意"。这个例子展示了更复杂的组合,包括多个上加字、下加字和元音符号的组合。
</div>
</div>
</div>
<div class="container">
<h2>藏文字符组合规则简介</h2>
<table>
<thead>
<tr>
<th>组合类型</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>辅音+元音</td>
<td>元音符号附加在辅音字母上</td>
<td>ག (ga) + ི (i) = གི (gi)</td>
</tr>
<tr>
<td>上加字</td>
<td>辅音字母附加在另一个辅音字母上方</td>
<td>ར (ra) + ག (ga) = རྒ (rga)</td>
</tr>
<tr>
<td>下加字</td>
<td>辅音字母附加在另一个辅音字母下方</td>
<td>ག (ga) + ྱ (ya) = གྱ (gya)</td>
</tr>
<tr>
<td>前加字</td>
<td>辅音字母放在另一个辅音字母前面</td>
<td>ད (da) + ག (ga) = དག (dga)</td>
</tr>
<tr>
<td>后加字</td>
<td>辅音字母放在另一个辅音字母后面</td>
<td>ག (ga) + བ (ba) = གབ (gba)</td>
</tr>
</tbody>
</table>
<div class="notes">
<strong>小贴士:</strong>藏文的拼写系统较为复杂,一个完整的音节可能包含多个辅音字母和元音符号的组合。多加练习,熟悉这些组合规则,就能更好地理解和使用藏文。
</div>
</div>
<div class="container">
<h2>进一步学习资源</h2>
<ul>
<li>藏文字母表和发音指南</li>
<li>藏语基础词汇学习</li>
<li>藏文语法入门</li>
</ul>
</div>
</body>
</html>
- 为什么汉藏语系会被联系到一起呢?
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>汉藏语同根同源词汇对比</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f8f9fa;
}
h1 {
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
font-size: 2.4rem;
}
h2 {
color: #3498db;
margin-top: 40px;
margin-bottom: 20px;
font-size: 1.8rem;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
h3 {
color: #2980b9;
margin-top: 30px;
margin-bottom: 15px;
font-size: 1.4rem;
}
.container {
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.intro {
background-color: #e8f4fd;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #3498db;
margin-bottom: 30px;
}
.tibetan-text {
font-family: 'Tibetan Machine Uni', 'Jomolhari', 'Noto Sans Tibetan', 'Lohit Tibetan', sans-serif;
font-size: 24px;
line-height: 1.6;
text-align: center;
margin: 20px 0;
}
.word-comparison {
margin: 30px 0;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
background-color: white;
}
th, td {
padding: 15px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
th {
background-color: #f5f5f5;
font-weight: 600;
color: #555;
font-size: 1.1rem;
}
tr:hover {
background-color: #f9f9f9;
}
.category {
font-weight: bold;
color: #e74c3c;
}
.examples {
margin: 30px 0;
padding: 20px;
background-color: #fff8e1;
border-radius: 8px;
}
.example-item {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px dashed #ffc107;
}
.example-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.pronunciation {
font-family: monospace;
background-color: #f1f1f1;
padding: 5px 10px;
border-radius: 4px;
font-size: 0.95rem;
}
.notes {
background-color: #fff3cd;
padding: 15px;
border-radius: 6px;
border-left: 4px solid #ffc107;
margin-top: 30px;
}
.highlight {
background-color: #e3f2fd;
padding: 3px 6px;
border-radius: 4px;
}
.language-family {
text-align: center;
margin: 30px 0;
padding: 20px;
background-color: #f3e5f5;
border-radius: 8px;
}
.evolution {
margin-top: 30px;
padding: 20px;
background-color: #e8f5e9;
border-radius: 8px;
border-left: 4px solid #4caf50;
}
.conclusion {
margin-top: 40px;
padding: 25px;
background-color: #f5f5f5;
border-radius: 8px;
text-align: center;
}
</style>
</head>
<body>
<h1>汉藏语同根同源词汇对比</h1>
<div class="container">
<div class="intro">
<p>汉藏语系是世界上使用人数最多的语系之一,包括汉语、藏语、缅甸语、彝语等多种语言。语言学研究表明,这些语言拥有共同的祖先,被称为原始汉藏语。通过对比各语言中的同源词汇,我们可以清晰地看到它们之间的亲缘关系。</p>
</div>
<div class="language-family">
<h3>汉藏语系的主要分支</h3>
<p>汉藏语系主要分为汉语族和藏缅语族两大分支,此外还包括苗瑶语族和壮侗语族(部分学者认为这两个语族属于独立语系)。</p>
</div>
<h2>基础词汇对比</h2>
<div class="word-comparison">
<p>基础词汇(如身体部位、自然现象、数字等)在语言演变中相对稳定,是研究语言亲属关系的重要依据。以下是一些汉藏语同源词汇的对比:</p>
<table>
<thead>
<tr>
<th>类别</th>
<th>汉语</th>
<th>藏语</th>
<th>发音对比</th>
<th>含义</th>
</tr>
</thead>
<tbody>
<!-- 身体部位 -->
<tr>
<td class="category" rowspan="3">身体部位</td>
<td>目</td>
<td>མིག་ (mig)</td>
<td>目 (mù) ↔ mig</td>
<td>眼睛</td>
</tr>
<tr>
<td>耳</td>
<td>རྣམ་པ་ (rnam pa)</td>
<td>耳 (ěr) ↔ rnam</td>
<td>耳朵</td>
</tr>
<tr>
<td>心</td>
<td>སྙིང་པོ་ (snying po)</td>
<td>心 (xīn) ↔ snying</td>
<td>心脏/心灵</td>
</tr>
<!-- 自然现象 -->
<tr>
<td class="category" rowspan="3">自然现象</td>
<td>日</td>
<td>ཉི་ (nyi)</td>
<td>日 (rì) ↔ nyi</td>
<td>太阳</td>
</tr>
<tr>
<td>月</td>
<td>ཟླ་ (zla)</td>
<td>月 (yuè) ↔ zla</td>
<td>月亮</td>
</tr>
<tr>
<td>水</td>
<td>ཆུ་ (chu)</td>
<td>水 (shuǐ) ↔ chu</td>
<td>水</td>
</tr>
<!-- 数字 -->
<tr>
<td class="category" rowspan="3">数字</td>
<td>一</td>
<td>གཅིག་ (gcig)</td>
<td>一 (yī) ↔ gcig</td>
<td>一</td>
</tr>
<tr>
<td>二</td>
<td>གཉིས་ (gnyis)</td>
<td>二 (èr) ↔ gnyis</td>
<td>二</td>
</tr>
<tr>
<td>三</td>
<td>གསུམ་ (gsum)</td>
<td>三 (sān) ↔ gsum</td>
<td>三</td>
</tr>
<!-- 亲属称谓 -->
<tr>
<td class="category" rowspan="3">亲属称谓</td>
<td>父</td>
<td>ཕ་ (pha)</td>
<td>父 (fù) ↔ pha</td>
<td>父亲</td>
</tr>
<tr>
<td>母</td>
<td>མ་ (ma)</td>
<td>母 (mǔ) ↔ ma</td>
<td>母亲</td>
</tr>
<tr>
<td>哥</td>
<td>གཤིས་པ་ (gshis pa)</td>
<td>哥 (gē) ↔ gshis</td>
<td>哥哥</td>
</tr>
</tbody>
</table>
</div>
<h2>详细同源词示例</h2>
<div class="examples">
<div class="example-item">
<h3>眼睛(目/མིག་)</h3>
<p><strong>汉语</strong>:目 (mù) - 古代汉语中"眼睛"的说法,现代汉语中仍保留在"目光"、"目不转睛"等词中</p>
<p><strong>藏语</strong>:མིག་ (mig) - 现代藏语中"眼睛"的说法</p>
<p><strong>比较</strong>:两者发音相近,尤其是声母"m"的对应,显示出共同的词源。</p>
<div class="tibetan-text">མིག་ལྟར་བལྟ་ནས་(看着)</div>
</div>
<div class="example-item">
<h3>太阳(日/ཉི་)</h3>
<p><strong>汉语</strong>:日 (rì) - 古代汉语中"太阳"的说法,现代汉语中仍保留在"日出"、"日落"等词中</p>
<p><strong>藏语</strong>:ཉི་ (nyi) - 现代藏语中"太阳"的说法</p>
<p><strong>比较</strong>:虽然现代汉语发音为"rì",但在一些方言中仍保留了类似"nyi"的发音,如闽南语中的"日"读作"jit",与藏语发音有对应关系。</p>
<div class="tibetan-text">ཉི་མ་(尼玛,太阳)</div>
</div>
<div class="example-item">
<h3>水(水/ཆུ་)</h3>
<p><strong>汉语</strong>:水 (shuǐ) - 现代汉语中"水"的说法</p>
<p><strong>藏语</strong>:ཆུ་ (chu) - 现代藏语中"水"的说法</p>
<p><strong>比较</strong>:两者声母"sh"和"ch"在汉藏语系中存在对应关系,韵母"ui"和"u"也显示出演变的痕迹。</p>
<div class="tibetan-text">ཆུ་མ་(曲玛,水源)</div>
</div>
</div>
<h2>汉藏语语音对应规律</h2>
<div class="evolution">
<h3>声母对应规律</h3>
<ul>
<li><strong>唇音对应</strong>:汉语的双唇音(b/p/m)与藏语的双唇音对应,如"母"(mǔ)与"མ་"(ma)</li>
<li><strong>舌尖音对应</strong>:汉语的舌尖音(d/t/n/l)与藏语的舌尖音对应,如"日"(rì)与"ཉི་"(nyi)</li>
<li><strong>舌根音对应</strong>:汉语的舌根音(g/k/h)与藏语的舌根音对应,如"哥"(gē)与"གཤིས་པ་"(gshis pa)</li>
</ul>
<h3>韵母对应规律</h3>
<ul>
<li>汉语的单元音与藏语的单元音对应,如"目"(mù)与"མིག་"(mig)</li>
<li>汉语的复元音往往对应藏语的单元音,显示出语音简化的趋势</li>
</ul>
</div>
<div class="notes">
<strong>注意:</strong>汉藏语同源词的研究是一个复杂的语言学课题,以上示例仅展示了部分较为明显的同源关系。语言的演变是一个漫长而复杂的过程,受到地理、文化、历史等多种因素的影响,因此并非所有词汇都能找到明显的对应关系。
</div>
<div class="conclusion">
<h3>结论</h3>
<p>通过对比汉藏语中的基础词汇,我们可以清晰地看到它们之间的亲缘关系。这些同源词不仅是语言学研究的重要依据,也为我们了解古代民族的迁徙、文化交流提供了宝贵的线索。汉藏语同根同源的事实,也证明了中华民族大家庭中各民族在语言文化上的紧密联系。</p>
</div>
</div>
</body>
</html>
- 藏语字母同样是辅音为主的字母
- 不特殊标注
- 就是开口音a
- 缅甸语 数字 汉藏语系
- 使用不同的拼音文字拼写
- 因为发音各种变化
- 导致 拼音文字各种变化
- 还是需要感谢我们使用的是象形文字
- 甲骨文
- 目前ai时代来了
- 底层的token 都是英文编码构成的
- 中文在ai时代应该如何存在呢?🤔
- 我们下次再说!👋
- 本文来自 oeasy Python 系统教程。
- 想完整、扎实学 Python,
- 搜索 oeasy 即可。








