看起來 Paratext 8 在遷移逐字對照(interlinear)註釋時存在問題,如果您在 Paratext 7 中使用 Interlinearizer 並以新約希臘文作為模型文本進行註釋。一位用戶在此情況下尋求幫助,我發現遷移後,lexicon.xml 和每卷書的註釋檔案中的語言代碼是 “el”,而新約希臘文的代碼應該是 “grc”。(在一個測試專案中,我用希臘文註釋了幾個單詞,然後進行遷移,在這個遷移後的專案中,新約希臘文的代碼變成了 “lbj”,這是印度某種語言的代碼。我已向開發人員報告了此問題)。
語言代碼在逐字對照資料中用於三個地方。
在 lexicon.xml 檔案內,位於 “Gloss Language” 欄位中。此欄位出現在每個以該語言提供註釋的單詞中。
在每卷書逐字對照檔案的子資料夾名稱和檔案名稱中。例如,“interlinearizer_el_MAT.xml” 是馬太福音中 “el” 語言註釋的檔案。
在每個每卷書檔案內,位於檔案第二行的 glossLanguage 欄位中。
我是如何知道 “grc” 是新約希臘文的正確代碼的?我在 Paratext 8 中以希臘文為模型註釋了一個單詞,儲存變更後查看了檔案。
因此,要手動轉換這些資料,我執行了以下操作:
0) 如果 Paratext 已開啟,請關閉它
對 lexicon.xml 進行搜尋並取代,將 “el” 取代為 “grc”,例如:
<Gloss Language="el">δέ</Gloss>
變成
<Gloss Language="grc">δέ</Gloss>
為了將變更僅限制在代碼上,而不影響較大單詞內的任何 “el” 字串,請在搜尋字串和取代字串中包含引號(直雙引號)。
2a) 將專案資料夾內的 “Interlinear_el” 資料夾名稱更改為 “Interlinear_grc”。(如果您已使用目標代碼建立了測試檔案,請先刪除該資料夾及其檔案)。
2b) 將該資料夾內的檔案名稱從 "Interlinear_el_[Bookcode].xml 更改為 "Interlinear_grc_[Bookcode].xml
將每個每卷書檔案第二行中的 Glosslanguage 代碼更改為目標代碼。例如
<InterlinearData ScrTextName="MP8" GlossLanguage="el" BookId="MAT">
becomes
<InterlinearData ScrTextName="MP8" GlossLanguage="grc" BookId="MAT">
啟動 Paratext 並查看是否成功。
在編輯 XML 檔案時,請確保不要更改任何 < 或 > 或 </ 或 /> 代碼,這些類似於 USFM 中的反斜線。如果您犯錯,Paratext 可能會拒絕您編輯後的 lexicon.xml,將其名稱更改為 lexicon.xmlcorrupt,並開始建立一個新的檔案。如果您在編輯前將 lexicon.xml 檔案的副本儲存在其他位置,當遇到此問題且無法識別編輯檔案中出了什麼錯時,您可以恢復該副本。
It seems that Paratext 8 has a problem migrating interlinear glosses if you use the Interlinearizer in 7 to gloss text using the NT Greek as your model text. A user asked for help in this situation, and I saw that after migration, the language code in the lexicon.xml and in the per-book gloss files was “el” while the code for NT greek should be “grc”. (In a test project, I glossed a few words in Greek, then migrated, and in this migrated project, the code for NT Greek became “lbj”, the code for a language from India. I have reported this issue to the developers).
The language code is used in three places in the interlinearizer data.
Inside the lexicon.xml file, in the “Gloss Language” field. This field occurs for every word that is given a gloss in that language.
in the subfolder name and the file name of the per-book interlinearizer file. For example, “interlinearizer_el_MAT.xml” is the file for glosses in the “el” language for Matthew.
Inside each per-book file, in the glossLanguage field in the second line of the file.
How did I find out that “grc” was the right code for NT greek? I glossed one word in Paratext 8 with Greek as the model, saved the change then looked at the files.
So to manually convert this data, I did:
0) close Paratext if it is open
a search-replace of lexicon.xml, and replaced “el” with “grc”, for example:
<Gloss Language="el">δέ</Gloss>
becomes
<Gloss Language="grc">δέ</Gloss>
To limit the change just to the codes and not any “el” strings inside a larger word, include the quote marks (straight double quotes) in the search string and in the replace string.
2a) change the name of the “Interlinear_el” folder inside the project folder to “Interlinear_grc”. (If you’ve created a test file in the desired code, you would delete the folder and its file first).
2b) change the file names inside this folder from "Interlinear_el_[Bookcode].xml to "Interlinear_grc_[Bookcode].xml
change the Glosslanguage code in the second line of each per-book file to the desired code. For instance
<InterlinearData ScrTextName="MP8" GlossLanguage="el" BookId="MAT">
becomes
<InterlinearData ScrTextName="MP8" GlossLanguage="grc" BookId="MAT">
Start Paratext and see if it worked.
When editing the XML files, make sure you don’t change any < or > or </ or /> codes, these are like backslashes in USFM. If you make a mistake, Paratext may reject your edited lexicon.xml and change its name to lexicon.xmlcorrupt, and start creating a new one. If you save a copy of your lexicon.xml file in another location before editing, you could bring that back if you hit this problem and cannot identify what went wrong in your edited file.
機器翻譯自 English 顯示原文