Contamos con una lista sustancial de datos de hifenización elaborados a mano, importados en PTXPrint desde un proyecto PT subyacente a través de > Fuentes+Guiones > Hifenización > Importar lista...
He encontrado un archivo aquí que parece ser el resultado de esa importación:
"D:\[path]\PT9\[project]\shared\ptxprint\hyphen-[project].tex"
Este archivo .tex está codificado en UTF8 y solo veo guiones "normales" en la forma U+002D. Ahora me gustaría usar una expresión regular para reducir las opciones de hifenización que son "posibles pero feas":
Detendría PTXPrint, haría una copia de seguridad, aplicaría mis cambios eliminando ciertos guiones, ejecutaría PTXPrint de nuevo e intentaría "Imprimir" (es decir, "Crear PDF"). ¿Suena razonable o destruiré el proyecto de PTXPrint de esa manera? Si es lo segundo, ¿hay una mejor manera de ajustar la hifenización?
Nota: No necesito ayuda con la expresión regular, gracias. La pregunta aquí es solo sobre el funcionamiento interno de PTXPrint.
Resumen:
Consideramos el proyecto PT como la "fuente" para muchas publicaciones posibles, como se demuestra bien en la galería de muestras en línea de PTXPrint. Por lo tanto, dentro de Paratext mantenemos cuidadosamente y manualmente la lista maestra de hifenización, donde marcamos todas las opciones legales, incluso las que no son muy estéticas.
Para la presente publicación, tenemos un público objetivo de adultos y tenemos un diseño, tamaño de página y tamaño de fuente que nos dan "un poco más de libertad" y flexibilidad. Así que podemos filtrar algunas de las opciones de hifenización permitidas pero no ideales. Por ejemplo, quiero eliminar todas las opciones que dejarían solo un carácter como "huérfano" al final de una línea impresa y lo mismo para caracteres solitarios al final.
We are having a substantial list of hand-crafted hyphenation data, pulled into PTXPrint from an underlying PT-project via > Fonts+Scripts > Hyphenation > Import List...
I have found a file here, that seems to be a result of that import:
"D:\[path]\PT9\[project]\shared\ptxprint\hyphen-[project].tex"
This .tex file is encoded in UTF8 and I see only "normal" hyphens in form of U+002D. Now I would like to use a regex to reduce hyphenation-options which are "possible but ugly":
I would shut down PTXPrint, make a backup-copy, apply my changes by removing certain hyphens, run PTXPrint again, and attempt to "Print" aka "Make PDF". Does this sound reasonable, or will I destroy the PTXPrint-project that way? If the latter, is there a better way to tune the hyphenation?
Note: I do not need help with the regex, thank you. The question here is only about the inner workings of PTXPrint.
TL/DR:
We consider the PT-project as the "source" for many possible publications, as demonstrated nicely on the PTXPrint online sample gallery. So inside Paratext we carefully manually maintain the hyphenation master-list, where we mark all legal options, even the not-very-pretty ones.
For the present publication we have a certain adult-readers target audience and we have a layout, page-size, font-size, which gives us "a little more freedom" and flexibility. So we can filter-out some of the allowed but not-ideal hyphenation-options. For example, I want to remove all options, which would leave only one character like a "orphan" on the end of a printed line and similar for trailing lonely characters.
Traducción automática desde English