Kaynağa Gözat

用户指南编纂 #20 译文+术语+百科

Bhikkhu-Kosalla 5 yıl önce
ebeveyn
işleme
2d7f531afb

+ 10 - 1
app/guide/guide.css

@@ -31,7 +31,8 @@ guide ol{
     top:100%;
     width: max-content;
     min-width:18em;
-    max-width: calc(30vw);
+    /*max-width: calc(30vw);*/
+    max-width:20em;
     min-height:15em;
     padding:10px;
     background-color: var(--drop-bg-color);
@@ -81,3 +82,11 @@ guide ol{
     white-space: normal;
     word-break: normal;
 }
+.guide_contence  pre{
+    background-color: rgba(0, 0, 0, 0.1);
+}
+.guide_contence  code{
+    white-space: normal;
+    word-break: normal;
+    font-family: arial;
+}

+ 10 - 0
app/guide/readme.md

@@ -0,0 +1,10 @@
+## 范例Example
+```
+<guide gid="文件名Filename"></guide>
+```
+- 路径Path:[../documents/users_guide/](../documents/users_guide/)
+- **文件名Filename**对应其中的\.md文件
+在必要的位置,要执行一次函数
+```
+guide_init();
+```

+ 2 - 2
app/pcdl/css/reader.css

@@ -284,10 +284,10 @@ input[type="submit"]:disabled {
     box-shadow: 5px 0 20px 5px var(--shadow-color);
 }
 .viewswitch_off {
-    -webkit-transform:translateX(0em);
+    -webkit-transform: translateX(0em);
     -moz-transform:translateX:(0em);
     transform:translateX:(0em);
-    box-shadow: 5px 0 20px 5px var(--shadow-color);
+    box-shadow : 5px 0 20px 5px var(--shadow-color);
 }
 
 .common-tab {

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

@@ -216,7 +216,7 @@
 		"ok": "成功",
 		"order_by": "排序方式",
 		"other": "其他",
-		"other_meaning": "备选意思(可选项)",
+		"other_meaning": "备选用词",
 		"otherdict": "其他词典",
 		"pa_auk_dictionary": "帕奥词典",
 		"pacchā_māsa": "下个月",
@@ -459,7 +459,10 @@
 		"preference": "个性化",
 		"appearance": "外观",
 		"theme": "主题",
-		"": ""
+		"first_choice_word": "首选用词",
+		"pali_word": "巴利原词",
+		"required": "必填",
+		"optional": "选填"
 	},
 	"grammastr": [
 		{

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

@@ -458,6 +458,7 @@
 		"preference": "個性化",
 		"appearance": "外觀",
 		"theme": "主題",
+		"first_choice_word": "首选用词",
 		"": ""
 	},
 	"grammastr": [

+ 2 - 0
app/studio/js/render.js

@@ -1159,6 +1159,7 @@ function renderWordParBlockInner(elementBlock) {
 				output += "<div id='sent_div_" + wID + "' class='translate_sent'>";
 				output += "<div class='translate_sent_head'>";
 				output += "<div class='translate_sent_head_toolbar'>";
+				output += "<guide gid='sent_trans' style='margin:unset;'></guide>";
 				output += "<span></span>";
 				output += "<span onclick=\"show_tran_net('" + book + "','" + paragraph + "','" + sent_begin + "','" + word_id + "')\"><span id='' class=\"word_msg\">issue</span></span>";
 				sent_begin = word_id;
@@ -1218,6 +1219,7 @@ function renderWordParBlockInner(elementBlock) {
 	output += "<div id='sent_div_" + wID + "' class='translate_sent'>";
 	output += "<div class='translate_sent_head'>";
 	output += "<div class='translate_sent_head_toolbar'>";
+	output += "<guide gid='sent_trans' style='margin:unset;'></guide>";
 	output += "<span></span>";
 	output += "<span onclick=\"show_tran_net('" + book + "','" + paragraph + "','" + sent_begin + "','" + word_id + "')\"><span id='' class=\"word_msg\">issue</span></span>";
 	output += "</div>";

+ 2 - 0
app/term/term.js

@@ -651,4 +651,6 @@ function term_add_new(keyword) {
 
 function term_show_new() {
 	$("#term_new_recorder").slideToggle();
+	$("#new_term_button").hide();
+	guide_init();
 }

+ 13 - 7
app/term/term.php

@@ -176,14 +176,20 @@ switch($op){
 		}
 		//新建词条
 		echo "<div class='dict_word'>";
-		echo "<button onclick=\"term_show_new()\">{$_local->gui->new}</button>";
+		echo "<button id='new_term_button' onclick=\"term_show_new()\">{$_local->gui->new}</button>";
 		echo "<div id='term_new_recorder' style='display:none;'>";
-		echo "<div class='dict'>".$module_gui_str['editor']['1121']."</div>";//New Techinc Term
-		echo "<div class='mean'>{$_local->gui->pāli}:<input type='input' placeholder='{$_local->gui->pāli}' id='term_new_word' value='{$word}' /></div>";//'拼写'
-		echo "<div class='mean'>{$_local->gui->meaning}<input type='input' placeholder='{$_local->gui->meaning}' id='term_new_mean'/></div>";//'意思'
-		echo "<div class='other_mean'>{$_local->gui->other_meaning}:<input type='input'  placeholder='{$_local->gui->other_meaning}' id='term_new_mean2'/></div>";//'备选意思(可选项)'
-		echo "<div class='tag'>{$_local->gui->tag}:<input type='input'  placeholder='{$_local->gui->tag}' id='term_new_tag'/></div>";//'标签'
-		echo "<div class='note'>{$_local->gui->note}:<textarea width='100%' height='3em'  placeholder='{$_local->gui->note}' id='term_new_note'></textarea></div>";//'注解'
+		echo "<div class='dict'>".$_local->gui->new_technic_term."</div>";//New Techinc Term
+		echo "<div class='mean' style='display:flex;'><span style='flex:1;'>{$_local->gui->pali_word}:</span>";
+		echo "<input type='input' style='flex:3;' placeholder='{$_local->gui->required}' id='term_new_word' value='{$word}' /></div>";//'拼写'
+		echo "<div class='mean' style='display:flex;'><span style='flex:1;'>{$_local->gui->first_choice_word}:</span>";
+		echo "<input type='input' style='flex:3;' placeholder='{$_local->gui->required}' id='term_new_mean'/></div>";//'意思'
+		echo "<div class='mean' style='display:flex;'><span style='flex:1;'>{$_local->gui->other_meaning}:</span>";
+		echo "<input type='input' style='flex:3;' placeholder='{$_local->gui->optional}' id='term_new_mean2'/></div>";//'备选意思(可选项)'
+		echo "<div class='mean' style='display:flex;'><span style='flex:1;'>{$_local->gui->tag}:</span>";
+		echo "<input type='input' style='flex:3;' placeholder='{$_local->gui->optional}' id='term_new_tag'/></div>";//'标签'
+		echo "<div class='note'><span style='display:flex;'><span>{$_local->gui->encyclopedia} & {$_local->gui->note}:</span>";
+		echo "<guide gid='term_pedia_sys' style='margin-left: auto;'></guide></span>";
+		echo "<textarea width='100%' height='3em'  placeholder='{$_local->gui->optional}' id='term_new_note'></textarea></div>";//'注解'
 		echo "<button onclick=\"term_data_save('')\">{$_local->gui->save}</button>";//保存
 		echo "</div>";
 		echo "</div>";

+ 25 - 0
documents/users_guide/en/sent_trans.md

@@ -0,0 +1,25 @@
+## 译文输入
+此处的设计是针对**信达雅**三大翻译指标中的**雅**,即文学性。在词源拆分上满足了**信**,在单词含义上满足了**达**,我们便可以更加自由地追求**雅**。
+### 操作方法
+- 点击输入框,输入框会自动展开;
+- 在其中键入文字,输入框上方将自动显示预览;
+- 当鼠标点击其他地方时(输入框失去焦点),输入框里的内容将自动保存。
+## 术语大兼容系统
+在佛教翻译中,术语使用在历史沿革中一直存在大量争论,这是在纸媒体的时代永远无法解决的。
+
+然而在电子阅读时代,这个问题是可以通过兼容的方式,同时照顾**译者**和**读者**两大群体的感受。
+### 操作方法
+- [视频链接]
+- 点击逐词解析中的术语
+- 检查**词典原型**是否为空,如果为空请填入去掉变化之后的能够在词典中查询到的**原型**
+- 点击页面右上角的<svg id="icon_term" viewBox="0 0 24 24" style='fill:#6baaff;height: 15px; width: 15px;'><path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"></path></svg>调出侧边栏
+- 点击**新建**按钮,在其中键入**首选术语**(必填),其他为选填
+- 之后,在键入译文的时候,如下:
+```
+[[isipatana]] [[migadāya]]:由仙人们起飞和降落而得名。由于给予[[miga]]安全感,而划定为[[migadāya]]的区域。
+```
+<b>[[pāḷi]]</b>会被自动替换,最终显示为:
+```
+落仙坪(isipatana 仙人降落处,仙人堕处,仙人落处 ) 野生保护(区)(migadāya 鹿野苑 ):由仙人们起飞和降落而得名。由于给予野兽(miga 鹿,野生动物 )安全感,而划定为野生保护(区)的区域。
+```
+注:该替换优先依照读者的个性化术语系统

+ 20 - 1
documents/users_guide/zh-cn/SUMMARY.md

@@ -5,8 +5,27 @@
   * [强力拆分](comp_split.md)
   * [性]
     * [阳性](grammar_m.md)
+    * [阴性](grammar_f.md)
+    * [中性](grammar_nt.md)
   * [数]
+    * [单数](grammar_sg.md)
+    * [复数](grammar_pl.md)
   * [格]
+    * [主格](grammar_nom.md)
+    * [宾格](grammar_acc.md)
+    * [工具格](grammar_inst.md)
+    * [目的格](grammar_dat.md)
+    * [来源格](grammar_abl.md)
+    * [属格](grammar_gen.md)
+    * [处格](grammar_loc.md)
+    * [呼格](grammar_voc.md)
 * [译经楼](studio.md)
-  * 
+  * [整体含义](studio_general_meaning.md)
+  * [拆分方式](studio_break_down.md)
+  * [拆分含义](studio_part_meaning.md)
+  * [语法信息](grammar_abbr.md)
+  * [词典原型](studio_parent.md)
+  * [衍生原型](studio_parent2.md)
+  * [协作消息](studio_message.md)
+  * [句子编号](sent_func.md)
 * [圣书院](academy.md)

+ 25 - 0
documents/users_guide/zh-cn/sent_trans.md

@@ -0,0 +1,25 @@
+## 译文输入
+此处的设计是针对**信达雅**三大翻译指标中的**雅**,即文学性。在词源拆分上满足了**信**,在单词含义上满足了**达**,我们便可以更加自由地追求**雅**。
+### 操作方法
+- 点击输入框,输入框会自动展开;
+- 在其中键入文字,输入框上方将自动显示预览;
+- 当鼠标点击其他地方时(输入框失去焦点),输入框里的内容将自动保存。
+## 术语大兼容系统
+在佛教翻译中,术语使用在历史沿革中一直存在大量争论,这是在纸媒体的时代永远无法解决的。
+
+然而在电子阅读时代,这个问题是可以通过兼容的方式,同时照顾**译者**和**读者**两大群体的感受。
+### 操作方法
+- [视频链接]
+- 点击逐词解析中的术语
+- 检查**词典原型**是否为空,如果为空请填入去掉变化之后的能够在词典中查询到的**原型**
+- 点击页面右上角的<svg id="icon_term" viewBox="0 0 24 24" style='fill:#6baaff;height: 15px; width: 15px;'><path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"></path></svg>调出侧边栏
+- 点击**新建**按钮,在其中键入**首选术语**(必填),其他为选填
+- 之后,在键入译文的时候,如下:
+```
+[[isipatana]] [[migadāya]]:由仙人们起飞和降落而得名。由于给予[[miga]]安全感,而划定为[[migadāya]]的区域。
+```
+<b>[[pāḷi]]</b>会被自动替换,最终显示为:
+```
+落仙坪(isipatana 仙人降落处,仙人堕处,仙人落处 ) 野生保护(区)(migadāya 鹿野苑 ):由仙人们起飞和降落而得名。由于给予野兽(miga 鹿,野生动物 )安全感,而划定为野生保护(区)的区域。
+```
+注:该替换优先依照读者的个性化术语系统

+ 2 - 2
documents/users_guide/zh-cn/studio_general_meaning.md

@@ -2,10 +2,10 @@
 在这里输入的含义,会被系统自动根据**语法信息**来套用**虚词公式**;
 ### 点词查询
 - 点击某个单词
-- 点开右上角的<svg id="icon_dict" viewBox="0 0 32 32" style='fill:#6baaff;height: 10px; width: 15px;'><g transform="translate(-4 -4)"><path class="a" d="M24.4,2,17.9,7.85v14.3l6.5-5.85V2M8.15,5.9A12.09,12.09,0,0,0,1,7.85V26.908a.7.7,0,0,0,.65.65c.13,0,.195-.091.325-.091A15.85,15.85,0,0,1,8.15,26.05,12.09,12.09,0,0,1,15.3,28a15.659,15.659,0,0,1,7.15-1.95,13.241,13.241,0,0,1,6.175,1.378.565.565,0,0,0,.325.039.7.7,0,0,0,.65-.65V7.85A8.867,8.867,0,0,0,27,6.55V24.1a15.106,15.106,0,0,0-4.55-.65A15.659,15.659,0,0,0,15.3,25.4V7.85A12.09,12.09,0,0,0,8.15,5.9Z" transform="translate(5 4)"></path></g></svg>中
+- 点开右上角的<svg id="icon_dict" viewBox="0 0 32 32" style='fill:#6baaff;height: 15px; width: 15px;'><g transform="translate(-4 -4)"><path class="a" d="M24.4,2,17.9,7.85v14.3l6.5-5.85V2M8.15,5.9A12.09,12.09,0,0,0,1,7.85V26.908a.7.7,0,0,0,.65.65c.13,0,.195-.091.325-.091A15.85,15.85,0,0,1,8.15,26.05,12.09,12.09,0,0,1,15.3,28a15.659,15.659,0,0,1,7.15-1.95,13.241,13.241,0,0,1,6.175,1.378.565.565,0,0,0,.325.039.7.7,0,0,0,.65-.65V7.85A8.867,8.867,0,0,0,27,6.55V24.1a15.106,15.106,0,0,0-4.55-.65A15.659,15.659,0,0,0,15.3,25.4V7.85A12.09,12.09,0,0,0,8.15,5.9Z" transform="translate(5 4)"></path></g></svg>中
 - 右侧边栏会显示词典查询结果
 
-在本行末端的<span><svg viewBox='0 0 24 24' id='ic_more' style='fill:#6baaff;height: 10px; width: 15px;'><path d='M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'></path></svg></span>可以显示系统匹配的含义列表,通过点选实现快捷输入
+在本行末端的<span><svg viewBox='0 0 24 24' id='ic_more' style='fill:#6baaff;height: 15px; width: 15px;'><path d='M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'></path></svg></span>可以显示系统匹配的含义列表,通过点选实现快捷输入
 
 
 註:

+ 7 - 0
documents/users_guide/zh-cn/term_pedia_sys.md

@@ -0,0 +1,7 @@
+## 术语百科系统
+术语+注释书名词解释=巴利百科词条
+
+* 首先[创建术语]("按住Ctrl键点开")
+* 然后[复制句子编号](https://v.youku.com/v_show/id_XNDgwOTg4OTA0NA==.html "按住Ctrl键点开")
+* 将句子编号黏贴到下面的输入框中
+* 系统会自动根据句子编号,返回巴利原文、译文以及引用路径

+ 25 - 0
documents/users_guide/zh-tw/sent_trans.md

@@ -0,0 +1,25 @@
+## 譯文輸入
+此處的設計是針對**信達雅**三大翻譯指標中的**雅**,即文學性。在詞源拆分上滿足了**信**,在單詞含義上滿足了**達**,我們便可以更加自由地追求**雅**。
+### 操作方法
+- 點選輸入框,輸入框會自動展開;
+- 在其中鍵入文字,輸入框上方將自動顯示預覽;
+- 當滑鼠點選其他地方時(輸入框失去焦點),輸入框裡的內容將自動儲存。
+## 術語大相容系統
+在佛教翻譯中,術語使用在歷史沿革中一直存在大量爭論,這是在紙媒體的時代永遠無法解決的。
+
+然而在電子閱讀時代,這個問題是可以通過相容的方式,同時照顧**譯者**和**讀者**兩大群體的感受。
+### 操作方法
+- [視訊連結]
+- 點選逐詞解析中的術語
+- 檢查**詞典原型**是否為空,如果為空請填入去掉變化之後的能夠在詞典中查詢到的**原型**
+- 點選頁面右上角的<svg id="icon_term" viewBox="0 0 24 24" style='fill:#6baaff;height: 15px; width: 15px;'><path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"></path></svg>調出側邊欄
+- 點選**新建**按鈕,在其中鍵入**首選術語**(必填),其他為選填
+- 之後,在鍵入譯文的時候,如下:
+```
+[[isipatana]] [[migadāya]]:由仙人們起飛和降落而得名。由於給予[[miga]]安全感,而劃定為[[migadāya]]的區域。
+```
+<b>[[pāḷi]]</b>會被自動替換,最終顯示為:
+```
+落仙坪(isipatana 仙人降落處,仙人墮處,仙人落處 ) 野生保護(區)(migadāya 鹿野苑 ):由仙人們起飛和降落而得名。由於給予野獸(miga 鹿,野生動物 )安全感,而劃定為野生保護(區)的區域。
+```
+注:該替換優先依照讀者的個性化術語系統