Explorar o código

语法气泡优化

bhikkhu-kosalla-china %!s(int64=4) %!d(string=hai) anos
pai
achega
84cfa754ca

+ 17 - 16
app/dict/grm_abbr.php

@@ -2,6 +2,7 @@
 
 
 define("GRM_ABBR",[
 define("GRM_ABBR",[
 	["dictid"=>32,"abbr"=>"語基","replace"=>"base"],
 	["dictid"=>32,"abbr"=>"語基","replace"=>"base"],
+	["dictid"=>32,"abbr"=>"语基","replace"=>"base"],
 	["dictid"=>1,"abbr"=>"indecl.","replace"=>"ind"],
 	["dictid"=>1,"abbr"=>"indecl.","replace"=>"ind"],
 	["dictid"=>3,"abbr"=>"[adj.]","replace"=>"adj"],
 	["dictid"=>3,"abbr"=>"[adj.]","replace"=>"adj"],
 	["dictid"=>3,"abbr"=>"[adj.]","replace"=>"adj"],
 	["dictid"=>3,"abbr"=>"[adj.]","replace"=>"adj"],
@@ -341,22 +342,22 @@ define("GRM_ABBR",[
 	["dictid"=>18,"abbr"=>"Sk.","replace"=>"sk"],
 	["dictid"=>18,"abbr"=>"Sk.","replace"=>"sk"],
 	["dictid"=>4,"abbr"=>"(梵","replace"=>"bsk"],
 	["dictid"=>4,"abbr"=>"(梵","replace"=>"bsk"],
 	["dictid"=>6,"abbr"=>"(梵","replace"=>"bsk"],
 	["dictid"=>6,"abbr"=>"(梵","replace"=>"bsk"],
-	["dictid"=>1,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>1,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>3,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>3,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>8,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>8,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>6,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>6,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>15,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>15,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>18,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>18,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>19,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>19,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>32,"abbr"=>"a.","replace"=>"adj"],
-	["dictid"=>32,"abbr"=>"a.","replace"=>"adj"],
+	["dictid"=>1,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>1,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>3,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>3,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>8,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>8,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>6,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>6,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>15,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>15,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>18,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>18,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>19,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>19,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>32,"abbr"=>" a.","replace"=>"adj"],
+	["dictid"=>32,"abbr"=>" a.","replace"=>"adj"],
 	["dictid"=>1,"abbr"=>"f.","replace"=>"f"],
 	["dictid"=>1,"abbr"=>"f.","replace"=>"f"],
 	["dictid"=>3,"abbr"=>"f.","replace"=>"f"],
 	["dictid"=>3,"abbr"=>"f.","replace"=>"f"],
 	["dictid"=>8,"abbr"=>"f.","replace"=>"f"],
 	["dictid"=>8,"abbr"=>"f.","replace"=>"f"],

+ 2 - 2
app/guide/guide.css

@@ -29,9 +29,9 @@ guide ol {
 	border: 1px solid var(--border-line-color);
 	border: 1px solid var(--border-line-color);
 	border-radius: 5px;
 	border-radius: 5px;
 	top: 100%;
 	top: 100%;
-	width: max-content;
+	/*width: max-content;
 	min-width: min-content;
 	min-width: min-content;
-	max-width: max(25vw, 100%);
+	max-width: min(80vw,20em);*/
 	min-height: 15em;
 	min-height: 15em;
 	padding: 10px;
 	padding: 10px;
 	background-color: var(--drop-bg-color);
 	background-color: var(--drop-bg-color);

+ 4 - 4
app/guide/guide.js

@@ -5,11 +5,11 @@ function guide_init() {
 				$(this).css("background", "unset");
 				$(this).css("background", "unset");
 			}
 			}
 			if ($(this).offset().left < $(document.body).width() / 2) {
 			if ($(this).offset().left < $(document.body).width() / 2) {
-				$(this).append('<div  class="guide_contence left" style="left: -5px;"></div>');
-				//$(".guide_contence:after").css("left", "0");
+				$(this).append('<div  class="guide_contence left" style="right: max('+($(this).offset().left+$(this).width()+30-$(document.body).width())+'px,-20em);left: -5px;"></div>');
+				//$(this).after().css("left", +($(this).offset().left-$(this).parent().offset().left)+"px");
 			} else {
 			} else {
-				$(this).append('<div  class="guide_contence right" style="right: -5px;"></div>');
-				//$(".guide_contence:after").css("right", "0");
+				$(this).append('<div  class="guide_contence right" style="left: '+($(this).parent().offset().left-$(this).offset().left)+'px;right:-5px"></div>');
+				//$(this).after().css("right", ($(this).parent().offset().left+$(this).parent().width()+13-$(this).offset().left-$(this).width())+"px");
 			}
 			}
 			$(this).attr("init", "1");
 			$(this).attr("init", "1");
 		}
 		}

+ 1 - 1
app/reader/right_tool_bar.php

@@ -75,7 +75,7 @@
 
 
 			echo "<span class='icon_btn btn_focus'  ";
 			echo "<span class='icon_btn btn_focus'  ";
 			echo " title='{$_local->gui->show} {$_local->gui->edit}'>";
 			echo " title='{$_local->gui->show} {$_local->gui->edit}'>";
-			echo $_local->gui->edit;
+			echo $_local->gui->translate;
 			echo "</span>";
 			echo "</span>";
 		}
 		}
 ?>
 ?>

+ 1 - 1
app/users_guide/zh-cn/grammar_adj.md

@@ -6,4 +6,4 @@
 |汉|形|形容词|
 |汉|形|形容词|
 |英|adj.|adjective|
 |英|adj.|adjective|
 
 
-巴利传统语法中不存在形容词,而是统统归属于**三性词**
+巴利传统语法中常使用**三性词**来代表形容词在内的词

+ 5 - 8
app/users_guide/zh-cn/grammar_f.md

@@ -1,14 +1,11 @@
 # 阴性
 # 阴性
-**名词**、**三性词**所具有的属性之一,谓语动词和不变词不具有性:
-- 其中**名词**的**性**是相对固定的
-- 而**三性词**的**性**不固定,它**性**跟随其修饰的**中心语**的**性**。
-
->如果在**单词**的词条解释中出现下表中代表**阴性**字样,则代表该**单词**为**名词**
-
->如果在**语尾**的词条解释中出现下表中代表**阴性**字样,则代表该**语尾**有应用在**阳性词**中的可能性
+- 如果在查**词典源型**时出现,则代表该**词**的语法信息中应选择**名词**&**阴性**
+- 如果在查**语尾**时出现,则代表该**语尾**有应用在**阴性词**中的可能性
 
 
 |语种|缩写|全称|
 |语种|缩写|全称|
 |-|-|-|
 |-|-|-|
 |巴利|**thī**|itthi<br>itthiliṅga<br>thīliṅga|
 |巴利|**thī**|itthi<br>itthiliṅga<br>thīliṅga|
 |汉|**阴**|**阴性**|
 |汉|**阴**|**阴性**|
-|英|**f.**|Feminine|
+|英|**f.**|Feminine|
+
+**名词**、**三性词**所具有的属性之一,谓语动词和不变词不具有性

+ 4 - 7
app/users_guide/zh-cn/grammar_m.md

@@ -1,14 +1,11 @@
 # 阳性
 # 阳性
-**名词**、**三性词**所具有的属性之一,谓语动词和不变词不具有性:
-- 其中**名词**的**性**是相对固定的
-- 而**三性词**的**性**不固定,它**性**跟随其修饰的**中心语**的**性**。
-
->如果在**单词**的词条解释中出现下表中代表**阳性**字样,则代表该**单词**为**名词**
-
->如果在**语尾**的词条解释中出现下表中代表**阳性**字样,则代表该**语尾**有应用在**阳性词**中的可能性
+- 如果在查**词典源型**时出现,则代表该**词**的语法信息中应选择**名词**&**阳性**
+- 如果在查**语尾**时出现,则代表该**语尾**有应用在**阳性词**中的可能性
 
 
 |语种|缩写|全称|
 |语种|缩写|全称|
 |-|-|-|
 |-|-|-|
 |巴利|**pu**|puma<br>pumaliṅga<br>pulliṅga|
 |巴利|**pu**|puma<br>pumaliṅga<br>pulliṅga|
 |汉|**阳**|**阳性**|
 |汉|**阳**|**阳性**|
 |英|**m.**|masculine|
 |英|**m.**|masculine|
+
+**名词**、**三性词**所具有的属性之一,谓语动词和不变词不具有性

+ 5 - 9
app/users_guide/zh-cn/grammar_nt.md

@@ -1,15 +1,11 @@
 # 中性
 # 中性
-**名词**、**三性词**所具有的属性之一,谓语动词和不变词不具有性:
-- 其中**名词**的**性**是相对固定的
-- 而**三性词**的**性**不固定,它**性**跟随其修饰的**中心语**的**性**。
-
->如果在**单词**的词条解释中出现下表中代表**中性**字样,则代表该**单词**为**名词**
-
->如果在**语尾**的词条解释中出现下表中代表**中性**字样,则代表该**语尾**有应用在**阳性词**中的可能性
-
+- 如果在查**词典源型**时出现,则代表该**词**的语法信息中应选择**名词**&**中性**
+- 如果在查**语尾**时出现,则代表该**语尾**有应用在**中性词**中的可能性
 
 
 |语种|缩写|全称|
 |语种|缩写|全称|
 |-|-|-|
 |-|-|-|
 |巴利|**na**|napuṃsaka<br>napuṃsakaliṅga|
 |巴利|**na**|napuṃsaka<br>napuṃsakaliṅga|
 |汉|**中**|**中性**|
 |汉|**中**|**中性**|
-|英|**nt.**<br>**n.**|Neutral|
+|英|**nt.**<br>**n.**|Neutral|
+
+**名词**、**三性词**所具有的属性之一,谓语动词和不变词不具有性

+ 3 - 7
app/users_guide/zh-cn/grammar_pp.md

@@ -1,12 +1,8 @@
 ## 过去分词
 ## 过去分词
-分词的一种,在句子中存在主要动词的情况下
+表达**过去**动作含义的**三性词**/形容词,已……的,
+>例句:这是一杯**已煮过的**牛奶。
 
 
-例句:这是一杯**煮过的**牛奶。
-这句话中:
-- 是——主要动词
-- 煮过的——过去分词——**煮**这个动作是在过去发生的
-
-在这句话中,因为
+常用后缀:-ta, -na
 
 
 |语种|缩写|全称|
 |语种|缩写|全称|
 |-|-|-|
 |-|-|-|