0 votos
811 visualizações

One of our uses pointed out that the Hyphenation markers in the ThSV_11 resource are shown in all views. In Paratext 7.5 we could hide those with some CCT files, but we can not drop those into the .p8z file in Paratext 8.

What can we do to to hide these?

Publicação antiga - exibida no idioma original
Paratext por (478 pontos) | 811 visualizações

3 Respostas

0 votos
Melhor resposta

I did not see this question until just now.

In P8 this is controlled by “Project > Language Settings > Other Characters > Word break characters”.

If you have a project that uses /'s and ^'s as places where lines can break without a hyphen and ='s as places where lines can break with a hyphen you need to enter the following in this field:

=(00AD) /(200B) ^(200B)

If you do this, when you switch to Preview view you will no longer see = / ^ but instead see ZWSP (which are invisible but allow line breaks) and hyphens for = (if the line breaks at that point).

Since the default replacement is ZWSP this could also be entered as

=(00AD) / ^

We have some issues that need to be fixed

  • If you enter characters in this field with the wrong format, on my machine at least, you do not get an error message, it just disables the OK button.

  • The guide does not mention that you need parenthesis or how to specify multiple characters.

I will write a bug report for this.

Publicação antiga - exibida no idioma original
por
reexibida

With regard to hyphenation. The Thai projects that I am aware of do not use hyphenatedwords.txt. They mark up the hyphenation for each word of the text individually. It would be a good thing if we could figure out how to get past that but we have not worked on it yet. The Thai texts that I am aware of also mark subdivisions within a word

/ word boundary
^ a place where a word can break without a hyphen
= a place where a word can break with a discretionary hyphen

We mark places where a word can break because Thai is difficult to justify since there are not many spaces to expand and expanding individual letters or letter spacing can only be done in small amounts or the text starts to look loose and ugly.

It would also be good if we could figure out how to standardize these ^'s in the hyphenatedwords.txt file since it is a major time chunk to put them all in manually.

Publicação antiga - exibida no idioma original

Thank you anon451647. So to repeat what I understand you to be saying. If we want to assist the copyright holder of THSV_11 in cleaning up the project. We would advise them to add = (00AD) / ^ to the Word break Characters section of ‘Other Characters’, then save the project and submit the revision to the DBL.

Publicação antiga - exibida no idioma original

I tried to edit this post, but couldn’t find the option and then opted to delete the post and then create a new one.

Publicação antiga - exibida no idioma original

yes, that is the change that would allow you to view the text in w/o extra decorations in Preview mode

Publicação antiga - exibida no idioma original
0 votos

Unfortunately, it is now up to the resource creators (or someone they designate) to fix their resources. :worried:

Publicação antiga - exibida no idioma original
por [Expert]
(16,7k pontos)

So the resources will now have to be updated to match the current scheme for hyphenation. Is there a write-up on the current scheme? I imagine that we'll be the ones to get this updated.

Publicação antiga - exibida no idioma original
0 votos

The typical scheme for hyphenation is that nothing is marked directly in Paratext. A hyphenatedWords.txt file is included in the project that has the possible hyphenation points marked with the equal signs.

Publicação antiga - exibida no idioma original
por (9,9k pontos)

For information purposes, this file can be "edited" by using the Wordlist (View > Show Hyphenation) inside Paratext which may or may not be easier than editing the file directly.

Publicação antiga - exibida no idioma original

I should clarify that this resource is in Thai Script using the standard Thai convention of not using spaces to mark word boundaries. In 7.5 and prior versions, the / would be used to mark word boundaries. You could see these / in the unformatted view, but the formatted views would have the / presented as a zero width space.

So Part 1 of the question was, or ought to have been, really how do we handle the = in this resource and the answer is that the resource owner or their designee will have to go through and remove the = from the text itself and then work with the hyphenation tool…and then resubmitting it to the DBL.

Part 2 of the question is, how do you handle word boundaries for languages that do not use spaces for the word boundary? Is there another place somewhere that instructs Paratext 8 to present the / as a Zero Width Space?

Publicação antiga - exibida no idioma original

I can use the find replace to replace / with 200b (and then using alt-x switch 200b to the zero width space). That would work for this resource as it’s not a live project, but ongoing projects are going to have problems typing 200b and hitting alt-x for every word break as there are no keyboards (that I am aware of) which have a Zero Width Space as a valid keystroke.

So question 3 would then be how does one denote where a zero width space should go in Paratext 8. Perhaps I should turn this into it’s own question.

Publicação antiga - exibida no idioma original

There are a couple of options here.
1) If a team needs to "see" the zero width space then you would continue to use / and simply change it for publication (the output process can change this).
2) You could add a line in the autocorrect.txt file that says something like:
/-->\u200b

Then if the user types a / it simply autocorrects this to a zero width space.

Publicação antiga - exibida no idioma original

In Paratext 7.5 we had the ability to, with cct files, use the / to mark a Zero Width Space and have the / appear in the unformatted view but be hidden in the preview view. Does Paratext 8 not have that sort of capability…to show / in the unformatted view, but replace / with the Zero Width Space in the preview or formatted view?

Publicação antiga - exibida no idioma original

Perguntas relacionadas

0 votos
1 resposta 217 visualizações
When I run a marker check on my back matter I get errors. When I look at in Standard view some of the markers are red. What should I do?
anônimo perguntada Abr 10, 2015
0 votos
1 resposta 215 visualizações
I was just helping a user who's project seems to be ignoring the line breaking rules. We have several projects using ... This project is Paratext 9 Any ideas? Thank you, MSEAIT/LT
MSEAIT_LT 478 perguntada Out 28, 2019
0 votos
1 resposta 332 visualizações
We have a language that is sesquisyllabic and would like to have hyphenation turned off. Is that possible? We are ... of a hyphenation point. Any help would be appreciated.
MSEAIT_LT 478 perguntada Jul 25, 2017
0 votos
1 resposta 207 visualizações
We have a well working setup and a long file hyphenatedWords.txt and I believe I have understood the system in PT8. We ... we need as linguists, but which would be ugly in print:
Tim 934 perguntada Jul 13, 2018
0 votos
1 resposta 444 visualizações
Gostaria de exportar o projeto para HTML para que eu possa compartilhar rascunhos com as pessoas. Não quero exportar ... faço para ocultar os marcadores USFM do HTML exportado?
bit 495 perguntada Abr 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
So Peter was kept in prison, but the church was earnestly praying to God for him.
Acts 12:5
3,049 perguntas
6,007 respostas
5,672 comentários
2,029 usuários