Temos uma lista substancial de dados de hifenização criados manualmente, importados para o PTXPrint a partir de um projeto PT subjacente via > Fonts+Scripts > Hyphenation > Import List...
Encontrei um arquivo aqui que parece ser o resultado dessa importação:
"D:\[path]\PT9\[project]\shared\ptxprint\hyphen-[project].tex"
Este arquivo .tex está codificado em UTF8 e vejo apenas hífens "normais" na forma U+002D. Agora, gostaria de usar uma expressão regular para reduzir as opções de hifenização que são "possíveis, mas feias":
Vou fechar o PTXPrint, fazer uma cópia de segurança, aplicar minhas alterações removendo certos hífens, executar o PTXPrint novamente e tentar "Print" (ou "Make PDF"). Isso parece razoável, ou vou destruir o projeto do PTXPrint dessa forma? Se for o segundo caso, existe uma maneira melhor de ajustar a hifenização?
Observação: não preciso de ajuda com a expressão regular, obrigado. A pergunta aqui é apenas sobre o funcionamento interno do PTXPrint.
Resumo:
Consideramos o projeto PT como a "fonte" para muitas publicações possíveis, conforme demonstrado na galeria de amostras online do PTXPrint. Portanto, dentro do Paratext, mantemos cuidadosamente a lista mestre de hifenização manualmente, onde marcamos todas as opções legais, mesmo as que não são muito bonitas.
Para a publicação atual, temos um público-alvo de leitores adultos e temos um layout, tamanho de página e tamanho de fonte que nos dão "um pouco mais de liberdade" e flexibilidade. Portanto, podemos filtrar algumas das opções de hifenização permitidas, mas não ideais. Por exemplo, quero remover todas as opções que deixariam apenas um caractere como "órfão" no final de uma linha impressa e o mesmo para caracteres solitários no 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.
Tradução automática de English