Hola de nuevo,
Estoy regresando a este hilo para preguntar sobre la mejor práctica para manejar estos y otros errores relacionados con marcas que surgen cuando se ejecutan las verificaciones básicas. Dado que su validez se define en los archivos .sty, me hace pensar que se deben realizar configuraciones allí para resolver los errores, pero no quiero estar metiéndome en el interior del sistema si hay algo que debería estar cambiando en otro lugar.
Había estado ignorando/negando errores de marcas durante un tiempo, pero ahora estoy preparando un libro para su envío a la DBL y parece que estos errores deberían resolverse de manera más adecuada. Hay tres errores generales con marcas que no puedo resolver:
\xt no permitido en párrafos de Introducción (\ip);
\ior no permitido en párrafos de Esquema de Introducción (\io#); y
marcas incrustadas reportadas como “desconocidas” (por ejemplo, un enlace de glosario incrustado dentro de las palabras de Jesús con una marca \+w).
La información de la hoja de estilos en la pestaña Avanzada de Propiedades del Proyecto indica que está usando la Hoja de Estilos usfm.sty, señalando que está “Personalizada”. Cambié la versión de USFM a 3, pero no hubo cambio en los resultados de las Verificaciones Básicas. Cuando miro en usfm.sty en la carpeta “C:\My Paratext 9 Projects”, muestra “Version=3.0.2”. Dado que las Propiedades del Proyecto informan que usa una Hoja de Estilos “Personalizada”, también miré el archivo custom.sty en mi carpeta de proyecto. Los comentarios en la parte superior de ese archivo dicen que “fue creado por la actualización a Paratext 8.0. Se basa en los archivos de estilo originales utilizados por su proyecto. Estos archivos han sido eliminados, pero se ha guardado una copia de seguridad de los archivos en usfm-color.sty.bak y custom.sty.bak ” No veo ninguno de esos archivos .bak en mi carpeta de proyecto actual, pero asumo que deben haber estado en la carpeta de Paratext 8.
Renombré temporalmente custom.sty en mi carpeta de proyecto (es decir, para que la pestaña Avanzada ya no informara una hoja de estilos “Personalizada” cuando reinicié Paratext). Ya no tenía el mismo estilo de color personalizado al que estábamos acostumbrados, pero cuando ejecuté las verificaciones básicas con esa configuración, los errores con \xt y \ior se resolvieron. La marca +w, sin embargo, seguía siendo reportada como una “Marca desconocida”.
Así que revisé las definiciones de \Marker en el archivo custom.sty en mi carpeta de proyecto actual y vi algunas pistas para resolver los errores de Marcas:
Para la regla “\Marker xt”, mi custom.sty actual tiene solo el valor “x” para su propiedad “\Occurs under”, mientras que en el archivo usfm.sty encuentro una lista bastante larga de marcas permitidas.
Para la regla “\Marker ior”, mi custom.sty actual tiene solo el valor “id” para su propiedad “\Occurs under”, mientras que en el archivo usfm.sty encuentro que se permite que ocurra bajo los diversos Esquemas de Introducción, así como el valor “NEST”.
Para la regla “\Marker w”, mi custom.sty actual tiene un subconjunto de los valores que ocurren en el archivo usfm.sty, así como falta el valor “NEST”.
Así que hice otras copias temporales del archivo custom.sty; una en la que usé todos los valores de “\Occurs under” del usfm.sty para estas tres marcas, y otra en la que simplemente comenté la información para estas marcas en el archivo custom.sty. Como se esperaba, recuperé mi estilo de color personalizado, pero los resultados de las Verificaciones Básicas fueron los mismos que cuando había eliminado custom.sty: los errores con \xt y \ior se resolvieron, pero la marca \+w seguía siendo reportada como una “Marca desconocida”.
¿Hay alguna manera de resolver los errores de “Marca desconocida” para las marcas \+w? ¿Y es editar mi archivo custom.sty como describí arriba la mejor manera de resolver los errores de “No puede ocurrir aquí” para las marcas \xt y \ior en la Introducción?
Hi again,
I’m returning to this thread to ask about the best practice for handling these and other marker-related errors that come up when basic checks. Since their validity is defined in the .sty files, it makes me think that configurations need to be done there to resolve errors, but I don’t want to mess around under the hood if there is something I should be changing somewhere else instead.
I had been ignoring/denying marker errors for a while, but now I’m getting a book ready for submission to the DBL and it seems like these errors should be resolved more properly. There are three general errors with markers that I can’t resolve:
\xt not allowed in Introduction paragraphs (\ip);
\ior not allowed in Introduction Outline paragraphs (\io#); and
embedded markers being reported as ‘unknown’ (eg. a glossary link embedded within words of Jesus with a \+w marker).
The stylesheet info in the Advanced tab of Project Properties indicates that it is using the usfm.sty Stylesheet, noting that it is “Customized”. I changed the USFM version to 3, but there was no change in the results of the Basic Checks. When I look in usfm.sty in the “C:\My Paratext 9 Projects” folder, it shows “Version=3.0.2”. Since the Project Properties reports that it uses a “Customized” Stylesheet, I looked at the custom.sty file in my project folder as well. The comments at the top of that file say that it “was created by the upgrade to Paratext 8.0. It is based upon the original style files used by your project. These files have been removed, but a backup of the files has been saved to usfm-color.sty.bak and custom.sty.bak ” I don’t see either of those .bak files in my current project folder, but I assume they must have been in the Paratext 8 folder.
I temporarily renamed custom.sty in my project folder (ie so the Advanced tab no longer reported a “Customized” stylesheet when I restarted Paratext). I no longer had the same custom color styling we were used to, but when I ran the basic checks with that setup, the errors with \xt and the \ior were resolved. The +w maker was still reported as an “Unknown marker”, though.
So I took a look through the \Marker definitions in the custom.sty fie in my current project folder, and saw some clues to resolving the Marker errors:
For the “\Marker xt” rule, my current custom.sty has only the value “x” for its “\Occurs under” property, while in the usfm.sty file I find quite a long list of permissible markers.
For the “\Marker ior” rule, my current custom.sty has only the value “id” for its “\Occurs under” property, while in the usfm.sty file I find it allowed to occur under the various Introduction Outline, as well as the “NEST” value.
For the “\Marker w” rule, my current custom.sty has a subset of the values that occur in the usfm.sty file, as well as missing the “NEST” value.
So I made other temporary copies of the custom.sty file; one in which I used all the “\Occurs under” values from the usfm.sty for these three markers, and another in which I just commented-out the informaton for these arkers in the custom.sty file. As expected, I did get my custom color styling back, but the results of the Basic Checks was the same as when I had removed custom.sty: the errors with \xt and the \ior were resolved, but \+w maker was still reported as an “Unknown marker”.
Is there any way to resolve the “Unknown marker” errors for \+w markers? And is editing my custom.sty file as I described above the best way to resolve the “Cannot occur here” errors for \xt and \ior markers in the Introduction?
Traducción automática desde English Mostrar original