Bhikkhu-Kosalla 5 лет назад
Родитель
Сommit
e9eb5478ce

+ 8 - 4
app/dict/index.php

@@ -118,11 +118,15 @@ require_once "../pcdl/html_head.php";
 	<!-- tool bar begin-->
 	<div id='search_toolbar' class="search_toolbar">
 			<div style="display:flex;justify-content: space-between;">
-				<div ></div>
-				<div>
+				<div style="flex:2;">
+					<div style="width: fit-content; margin-right: 0; margin-left: auto; margin-top: 1em; margin-bottom: 1em;">
+						<guide gid="dict_search_input"></guide>
+					</div>
+				</div>
+				<div style="flex:6;">
 					<div>
 						<div>
-						<guide gid="dict_search_input"></guide><input id="dict_ref_search_input" type="input" placeholder="<?php echo $_local->gui->search;?>" onkeyup="dict_input_keyup(event,this)" style="    margin-left: 0.5em;width: 40em;max-width: 100%;font-size:140%;padding: 0.6em;color: var(--btn-hover-bg-color);background-color: var(--btn-color);" onfocus="dict_input_onfocus()" />
+							<input id="dict_ref_search_input" type="input" placeholder="<?php echo $_local->gui->search;?>" onkeyup="dict_input_keyup(event,this)" style="    margin-left: 0.5em;width: 40em;max-width: 100%;font-size:140%;padding: 0.6em;color: var(--btn-hover-bg-color);background-color: var(--btn-color);" onfocus="dict_input_onfocus()" />
 						</div>
 						<div id="word_parts">
 							<div id="input_parts" style="font-size: 1.1em;padding: 2px 1em;"></div>
@@ -140,7 +144,7 @@ require_once "../pcdl/html_head.php";
 						</div>
 					</div>
                 </div>
-				<span>
+				<span style="flex:2;">
 				<button onclick="trubo_split()" style="height: fit-content;border: 1px solid var(--btn-border-color);background: var(--btn-color);border-radius: 4px;font-size: 1.2em;padding: 0.5em;">
 				<?php echo $_local->gui->turbo_split;//强力拆分?>
 				</button>

+ 4 - 1
app/guide/guide.css

@@ -40,4 +40,7 @@ guide:hover  .guide_contence{
 .guide_contence  h4{
     font-size:1em;
     font-weight:700;
-}
+}
+.guide_contence  li{
+    display: contents;
+}

+ 1 - 0
app/public/lang/default.json

@@ -421,6 +421,7 @@
 		"studio": "Studio",
 		"library": "Library",
 		"turbo_split": "Turbo Split",
+		"full_text": "full text",
 		"": ""
 	},
 	"grammastr": [

+ 1 - 0
app/public/lang/en.json

@@ -421,6 +421,7 @@
 		"studio": "Studio",
 		"library": "Library",
 		"turbo_split": "Turbo Split",
+		"full_text": "full text",
 		"": ""
 	},
 	"grammastr": [

+ 1 - 0
app/public/lang/my.json

@@ -421,6 +421,7 @@
 		"studio": "Studio",
 		"library": "Library",
 		"turbo_split": "Turbo Split",
+		"full_text": "full text",
 		"": ""
 	},
 	"grammastr": [

+ 1 - 0
app/public/lang/si.json

@@ -426,6 +426,7 @@
 		"studio": "Studio",
 		"library": "Library",
 		"turbo_split": "Turbo Split",
+		"full_text": "full text",
 		"": ""
 	},
 	"grammastr": [

+ 5 - 0
app/public/lang/zh-cn.json

@@ -422,6 +422,11 @@
 		"studio": "译经楼",
 		"library": "藏经阁",
 		"turbo_split": "強力拆分",
+		"full_text": "全文",
+		"": "",
+		"": "",
+		"": "",
+		"": "",
 		"": ""
 	},
 	"grammastr": [

+ 1 - 0
app/public/lang/zh-tw.json

@@ -422,6 +422,7 @@
 		"studio": "譯經樓",
 		"library": "藏經閣",
 		"turbo_split": "強力拆分",
+		"full_text": "全文",
 		"": ""
 	},
 	"grammastr": [

+ 4 - 4
app/search/toobar.php

@@ -26,7 +26,7 @@
 	<div id='search_toolbar' class="search_toolbar">
 			<div style="display:flex;">
 				<span >
-					搜索
+					<?php echo $_local->gui->search;?>
 				</span>
 				<div>
 					<div>
@@ -54,9 +54,9 @@
 					$key = "";
 				}
 				?>
-					<li id="dt_all" ><a href="../search/index.php<?php echo $key;?>"><span >全部</span><span id="search_all_num"></span></a></li>
-					<li id="dt_title" ><a href="../search/title.php<?php echo $key;?>"><span >标题</span><span id="search_title_num"></span></a></li>
-					<li id="dt_pali" ><a href="../search/paliword.php<?php echo $key;?>"><span >巴利原文</span><span id="search_palitext_num"></span></a></li>
+					<li id="dt_all" ><a href="../search/index.php<?php echo $key;?>"><span ><?php echo $_local->gui->all;//全部?></span><span id="search_all_num"></span></a></li>
+					<li id="dt_title" ><a href="../search/title.php<?php echo $key;?>"><span ><?php echo $_local->gui->title;//标题?></span><span id="search_title_num"></span></a></li>
+					<li id="dt_pali" ><a href="../search/paliword.php<?php echo $key;?>"><span ><?php echo $_local->gui->full_text;//巴利原文?></span><span id="search_palitext_num"></span></a></li>
 					<li id="dt_bold" ><a href="../search/bold.php<?php echo $key;?>"><span ><?php echo $_local->gui->vannana;?></span><span id="search_bold_num"></span></a></li>
 					<li id="dt_trans" ><a href="../search/trans.php<?php echo $key;?>"><span ><?php echo $_local->gui->translate;?></span><span id="search_trans_num"></span></a></li>
 				</ul>

+ 4 - 4
documents/users_guide/en/comp_split.md

@@ -1,7 +1,7 @@
 ## Turbo Split for Samāsa
 
-pāḷi samāsa(compound word) can be splited by clicking this botton.
+long spelling pāḷi samāsa(compound word) can be easily splited by clicking this botton.
 
-1. basing on AI tech, we calculate the possibility and show the highest one.
-2. The number followed the factors can be clicked to show the possible list.
-3. User can click each factor to look up the dictionary. 
+1. basing on AI tech, we calculate the **possibility** and show the highest one.
+2. The **number** followed the factors can be clicked to show the possible list.
+3. User can click **each factor** to look up the dictionary. 

+ 10 - 0
documents/users_guide/en/dict_search_input.md

@@ -1,5 +1,15 @@
 ## Smart Dictionary
 
+
+输入框中支持用**加号**分隔单词中各个组成部分。
+- 如:输入citta+kamma
+
+点击搜索框下方的**组分**查询每个组分的意思。
+
+点击左侧的词典列表中的**词典名称**,可以进行词条跳转。
+
+词典列表下方的**拼写列表**中,穷举了一切存在的**变化形式**以及在语料库中的出现频率。
+
 You can put the plus(+)between parts in the compone word, and than click one part(under the search input) lookup dictionary.
 
 ### Example:

+ 5 - 2
documents/users_guide/zh-cn/comp_split.md

@@ -1,3 +1,6 @@
-# 强大的复合词拆分
+## 复合词强力拆分
 
-这是基于语料库的复合词自动拆分程序。程序会进行深度切分和搜索,给出可能性比较高的一些可能。点击组分后面的数字选择其他的可能。
+点击此按钮可以拆分长复合词
+1. 基于AI算法,我们给出**可能性**最高的拆分结果。
+2. 点击拆分结果后面的**数字**可以显示可能的拆分列表。
+3. 用户可以通过点击**每个组分**来进行字典查询。

+ 8 - 4
documents/users_guide/zh-cn/dict_search_input.md

@@ -1,6 +1,10 @@
-## 聪明的单词搜索
+## 智能词典
 
-您可以在输入框中的复合词中加入加号(+)用以分隔单词的各个组成部分。利用搜索框下方的组分列表查询组分的意思。
+输入框中支持用**加号**分隔单词中各个组成部分。
+- 如:输入citta+kamma
 
-### 例如:
-citta+kamma
+点击搜索框下方的**组分**查询每个组分的意思。
+
+点击左侧的词典列表中的**词典名称**,可以进行词条跳转。
+
+词典列表下方的**拼写列表**中,穷举了一切存在的**变化形式**以及在语料库中的出现频率。

+ 5 - 2
documents/users_guide/zh-tw/comp_split.md

@@ -1,3 +1,6 @@
-# 強大的複合詞拆分
+## 複合詞強力拆分
 
-這是基於語料庫的複合詞自動拆分程式。程式會進行深度切分和搜尋,給出可能性比較高的一些可能。點選組分後面的數字選擇其他的可能。
+點選此按鈕可以拆分長複合詞
+1. 基於AI演算法,我們給出**可能性**最高的拆分結果。
+2. 點選拆分結果後面的**數字**可以顯示可能的拆分列表。
+3. 使用者可以通過點選**每個組分**來進行字典查詢。