Parece que Paratext 8 tiene un problema al migrar glosas interlineales si se utiliza la herramienta Interlinearizer en la versión 7 para glosar el texto usando el griego del NT como texto modelo. Un usuario pidió ayuda en esta situación, y vi que después de la migración, el código de idioma en lexicon.xml y en los archivos de glosas por libro era “el”, mientras que el código para el griego del NT debería ser “grc”. (En un proyecto de prueba, glosé algunas palabras en griego, luego migré, y en este proyecto migrado, el código para el griego del NT se convirtió en “lbj”, el código de un idioma de la India. He reportado este problema a los desarrolladores).
El código de idioma se utiliza en tres lugares en los datos del interlinearizer.
- Dentro del archivo lexicon.xml, en el campo “Gloss Language”. Este campo aparece para cada palabra a la que se le asigna una glosa en ese idioma.
- En el nombre de la subcarpeta y en el nombre del archivo del interlinearizer por libro. Por ejemplo, “interlinearizer_el_MAT.xml” es el archivo para glosas en el idioma “el” para Mateo.
- Dentro de cada archivo por libro, en el campo glossLanguage en la segunda línea del archivo.
¿Cómo supe que “grc” era el código correcto para el griego del NT? Glosé una palabra en Paratext 8 con el griego como modelo, guardé el cambio y luego revisé los archivos.
Así que, para convertir manualmente estos datos, hice lo siguiente:
0) cerrar Paratext si está abierto
-
una búsqueda y reemplazo en lexicon.xml, y reemplacé “el” con “grc”, por ejemplo:
<Gloss Language="el">δέ</Gloss>
se convierte en
<Gloss Language="grc">δέ</Gloss>
Para limitar el cambio solo a los códigos y no a cualquier cadena “el” dentro de una palabra más grande, incluya las comillas (comillas dobles rectas) en la cadena de búsqueda y en la cadena de reemplazo.
2a) cambie el nombre de la carpeta “Interlinear_el” dentro de la carpeta del proyecto a “Interlinear_grc”. (Si ha creado un archivo de prueba con el código deseado, primero eliminaría la carpeta y su archivo).
2b) cambie los nombres de los archivos dentro de esta carpeta de "Interlinear_el_[Bookcode].xml a "Interlinear_grc_[Bookcode].xml
-
cambie el código de Glosslanguage en la segunda línea de cada archivo por libro al código deseado. Por ejemplo
<InterlinearData ScrTextName="MP8" GlossLanguage="el" BookId="MAT">
becomes
<InterlinearData ScrTextName="MP8" GlossLanguage="grc" BookId="MAT">
-
Inicie Paratext y vea si funcionó.
Al editar los archivos XML, asegúrese de no cambiar ningún código < o > o </ o />, estos son como barras invertidas en USFM. Si comete un error, Paratext puede rechazar su lexicon.xml editado y cambiar su nombre a lexicon.xmlcorrupt, y comenzar a crear uno nuevo. Si guarda una copia de su archivo lexicon.xml en otra ubicación antes de editarlo, podría restaurarla si tiene este problema y no puede identificar qué salió mal en su archivo editado.
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.
Traducción automática desde English