0
579 次浏览

We’ve noticed some formatting problems in PrintDraft around \b and \q1 markers. For example, with the following text:

\v 7 Nayi mǝnafǝkkaso, awo Nawi Ishayaye kǝlandon wuljǝnadǝ jire. Tiye:
\b
\q1
\v 8 “Jama adǝ cilan wuro daraja sadi,
\q1 amma karwunjan nanin kuruwujana.
\q1
\v 9 De sullo wua ambǝnsagai,

we get the following output in PrintDraft:

image

Note the extra indent at the beginning of the first line of the quote. If we remove the \b marker, the extra indent goes away, but of course so does the space before the quote:

image

I’ve played a bit with the indent settings, and if I keep the standard indents:

\Marker q1
\LeftMargin 1.25
\FirstLineIndent -1 # 1/4 inch indent, 1 inch wrap

we still have this indent problem. But if I make the first line start at 0.4 inches or later:

\Marker q1
\LeftMargin 1.25
\FirstLineIndent -.85 # 0.4 inch indent, 0.85 inch wrap

then the problem seems to go away:

image

I’ve played quite a bit with the settings for the \b marker, to make it look a lot more like a plain \p marker, but that doesn’t seem to help.

I have this gut feel that there is something simple I’m missing, but haven’t come up with it yet. Any suggestions?

较早的帖子 - 以原始语言显示
Paratext (1.4k 分) 发布 | 579 次浏览

7 个回答

0
最佳答案

When a migration happens on a project, the stylesheet used by the project is compared with the 8.0 usfm.sty file and any differences are put into the project’s custom.sty file. This is done because stylesheets were S/R’d in PT7 and there wasn’t any way to know what customizations a project might have done to their usfm.sty file. In your case, because you had an existing custom.sty file, the changes were merged into your existing file. Your file size was probably much bigger because your stylesheet must have differed a lot.

There should be a custom.sty.bak file containing the original file contents on the machine that did the migration. If you want to just go back to only overriding those settings, you can delete the custom.sty file created by the migration and go back to using the one used in PT7 (the format of the file is the same).

If you want to just take the default usfm.sty file, you can just remove the custom.sty file created by the migration.

较早的帖子 - 以原始语言显示
[Expert]
(16.7k 分) 发布

已重新显示
0

jeffh - what version of PT are you doing this in? I’m using 8.0.100.50 and get the results I would expect. What file are you modifying? Any changes for the Print Draft should be in PrintDraft-mods.sty

In my copy of the file there is no listing for \b so I’m assuming it gets handled by the default USFM.sty. As a test you might make sure your USFM.sty. You might remove any custom.sty you are using and then remove any PrintDraft-mods.sty and let the Print Draft recreate that file.

较早的帖子 - 以原始语言显示
(9.9k 分) 发布
0

I’m using the latest Paratext .100.50, and I loaded the file that shows the error into a test project, using the standard usfm.sty stylesheet, and having PrintDraft create the -mods.sty file from scratch (so standard there as well).

I sent my test file (the book of Matthew in a language of Niger) to anon848905, and he ran a similar test and saw the same problems. This problem doesn’t show up, however, in all of the places that a \q1 block is surrounded by \b markers. So maybe there is some specific combination of markers that causes the problem? But none of my hypotheses so far have panned out.

I have now reported an error from within PT8, but if someone else wants to see that book of Matthew that shows the error to attempt to solve this reproducible problem, let me know.

较早的帖子 - 以原始语言显示
(1.4k 分) 发布

I see the issue in the test project you submitted. If this helps, I don’t see the extra indenting if I save to RTF, nor do I see it if I change the \q1 markers to \q2.

较早的帖子 - 以原始语言显示

Just a thought, I know \q
equates to \q1. But does dropping the 1 from the marker make
any difference?

较早的帖子 - 以原始语言显示

\q has extra indent problem on first line, just like \q1.

较早的帖子 - 以原始语言显示
0

Note that the problem goes away with \q2 because the indent is larger. If I increase the indent on \q1 the problem also “goes away”. In my playing around I think I saw that if the first line is indented 0.4 inches or more from the margin, then I don’t see the occasional extra indent on the first \q1 line after the \b.

较早的帖子 - 以原始语言显示
(1.4k 分) 发布
0

I think this is somewhat related to this thread on PrintDraft doing strange things in PT8…

I’ve just spent an hour comparing all the settings files used with PrintDraft in PT7.6 and PT8.0
Hopefully my hour of pain will prevent someone else having to spend that much time searching for clues.

For some (unknown) reason, the PDFs were coming out great in 7.6. but had minor issues in 8.0 (wrong fonts on verse numbers, strange spacing on \s lines, etc.). I had almost given up when I noticed that one of the PrintDraft settings files calls the custom.sty file (from the main project folder, not from the PrintDraft folder).
My old (7.6) file was just 3kb, but the new (8.0) file was a massive 17kb - so I guessed something in there was causing the trouble. And yes, as soon as I swapped one file out for the other, I was finally able to create a “perfect” PDF in PT8.0

When I look at the PT8 version of custom.sty, there are a load of extra markers with additional “occurs under” settings. Presumably this is something related to the enhanced checks in PT8, but it seems to be tripping up PrintDraft.

Has anyone else come across this? What is the solution? I have tried “blending” the two files, but still have trouble with a faulty PDF. For now, the only way to get a successful PDF is to put the old/short custom.sty file back.

较早的帖子 - 以原始语言显示
(3.2k 分) 发布
已重新显示
0

Just to say that I don’t think Mark’s issue is the same problem that I’m having. My project is just using the standard usfm.sty file. There is a custom.sty file in the My Paratext 8 Projects root, but it is small, just has some color definitions, and I don’t see reference to it anywhere in PrintDraft.

But I do still have this problem! If I export to RTF, it appears fine. If I set the View in PT8 to Preview or Formatted, it appears fine. But if I PrintDraft, XeTeX produces a PDF where certain \q1’s that show up after a \b have too much indent. Is there anyone else who might be able to help?

较早的帖子 - 以原始语言显示
(1.4k 分) 发布
0

Just in case anyone has this problem again… On the XeTeX list I found out that putting an extra blank \p before the \b seems to make it behave. Not pretty to have that in Paratext, but if you are doing any pre-processing of your texts before you typeset them, you might be able to add them there.

较早的帖子 - 以原始语言显示
(1.4k 分) 发布

相关问题

0
5 个回答 577 次浏览
We're using single quotes in footnotes to show the meaning of a word. For example: ... \ft "Messiah" in Hebrew means 'Anointed ... ' Quotes Continuer required at: p p/q1 b/q1
anon469793 155 发布 提问于 一月 29, 2020
+2
1 个回答 204 次浏览
A user reported on another list that a font they installed on Windows 10 was not working with PrintDraft. ... could possibly have the same issue if Paratext called fontconfig.
Bobby 185 发布 提问于 五月 29, 2019
0
1 个回答 293 次浏览
How can I adjust my PrintDraft output so that the verse numbers are not superscript?
anon010520 110 发布 提问于 四月 20, 2019
0
0 个回答 133 次浏览
When I run PrintDraft, I immediately get an error about Marker errors detected even when running the actual Run Basic ... error in my PT8 setup and not in a particular project.
mnjames 1.9k 发布 提问于 十一月 5, 2017
0
4 个回答 377 次浏览
I am having a (new) problem with Print Draft. The output file is not handling the one special character we use, ... since it last worked okay. Thanks for any help. anon101508
anon101508 117 发布 提问于 七月 13, 2017
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Live in harmony with one another. Do not be proud, but be willing to associate with people of low position. Do not be conceited.
Romans 12:16
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户