0
834 次浏览

In Print Draft (PT 9), if I select Page Size A5 and also select two columns, the format of the first page is all wrong: the whole page is shifted to the left so that the left edge of the left column isn’t included in the output. A5 one-column is just fine.

We use A5 so that we can do booklet printing and get two A5 pages on one A4.

较早的帖子 - 以原始语言显示
Paratext (296 分) 发布
已重新显示 | 834 次浏览

4 个回答

0
最佳答案

That probably means that there is a problem in XeTeX, or in our scripts that run inside XeTeX. It’s probably best to create a problem report (Help > Give feedback) so we can look at it.

Unfortunately, anyone who knew XeTeX has left the Paratext development team, so I’m not making any guarantees that it will be fixed quickly. :weary:

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

I’ve duplicated it on a Thai script project. See PTX-19734.

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

Where do I find PTX-19734 ?

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

That is for the Paratext developers, I made a report of the issue to be investigated and that was its number.

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

The problem is because of what is in the custom.sty. The comments in custom.sty explain which lines create problems for the margins.

Your test project probably avoided the problem by not having the custom.sty file.

AF4CFF7919D945BB9AFB15D34185BAD2[3334886].png

sewhite
White
Language Technology Use
SIL International

[Email Removed]
M: 704-589-0271
O: 704-843-6337
Eastern Time (UTC -5:00 / -4:00)

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

No, I copied custom.sty to the new project. [BUT – only to the
PrintDraft folder, so see below]

I see now I didn't copy NestedStyles.sty.
Copied NestedStyles.sty, no change.
Copied figures folder, no change.
Copied AdjLists folder, no change.

However, I see that the NestedStyles.sty file on the new project

gets changed to an empty file when I run PrintDraft. Not sure what
the double definition of marker wjXw is meant to do.

Using Ctrl+Shift+Enter to preserve intermediate files.
(a) .log file: only difference (other than the differently named

projects) is:

Reading Paratext stylesheet “custom.sty”…

  Reading Paratext stylesheet "NestedStyles.sty"... \wjXw \wjXw

vs

  Reading Paratext stylesheet

“NestedStyles.sty”…

So, the new project is not reading the custom.sty file. Not sure how

to get it to do that. (Or is it located somewhere else and copied??)

(b) printdraft-PDMP-MAT.tex file (other than date and filename

differences):

%%%%% Stylesheets %%%%%

  \stylesheet{usfm.sty}

  \stylesheet{custom.sty}

  \stylesheet{NestedStyles.sty}

vs

%%%%% Stylesheets %%%%%

\stylesheet{usfm.sty}

\stylesheet{NestedStyles.sty}

So, again, it doesn't pick up the custom.sty file.

*.parlocs files are different (as would be expected since the output

is different.

I see now that there's a custom.sty file in the PDMP folder, so I

copied that to my PDMP2 folder. And now I see the issue with the
incorrect margins on page 1.

Thanks,

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

Hi, sewhite. Thanks for investigating this. It sounds like your reply is specific to the PDMP project referenced above, is that right?

I wonder whether you could provide guidance as to what I should look for in our project’s (by no means minimal!) custom.sty. I would also love to know where I could find documentation on well-formed (and ill-formed) code for .sty files in Paratext. Thanks.

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

The issue seems to be using the - character to turn off an attribute.
I think in your custom.sty you had some of these in the \Marker nd section.

I think your’s had this part:
Marker nd
\OccursUnder ip im ipi imi ipq imq ipr iq iq1 iq2 li li1 li2 li3 li4 m mi nb p pc pi pi1 pi2 pi3 pr
pmo pm pmc pmr q q1 q2 q3 q4 qc qr qm qm1 qm2 sp tc1 tc2 tc3 ms ms1 s1 s2 spd d ip
im ili ili1 ili2 io io1 io2 f fe NEST
\Regular
\SmallCaps -
\Underline -
\Italic

I think the last three lines are problems. Another project I saw recently had this same problem with a line that read
\Bold -

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

I’ve encountered this issue many time in the past, and also seen recent mention of it (maybe on the ptxprint email list). As with a few other clashes between PT implementation and the xetex macros, I’m not sure who is ‘right’. I don’t think the USFM standard defines this sort of styling, does it?

The help built into PT explicitly states that you can use the - symbol to turn off styling (see “How do I implement a custom stylesheet for my project?”). But that usage also causes problems with the ptx2pdf macros, which expect you to use \Regular to reset font styling like bold and italics. Should the PT help files be edited to remove references to the - usage, or are there good reasons for using that over \Regular?

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

Do other page sizes work correctly with two-column layout?

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

1/2 Letter double column is also broken (same problem).

Double column for (full) Letter and A4 work fine. Single column works correctly for all four sizes.

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

If the Paratext project can be shared with both

  • Martin Hosken
  • Bobby

then we might be able to fix the issue. Both of us are involved with the macros that XeTeX uses.

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

I just noticed today you offered to help with this. I’ve shared a project called PDMP with you and Martin. If you make a printdraft in double columns with paper size of A5 or 1/2 letter, the left margin of the first column goes off the left edge of the paper.

Getting rid of the style attributes in custom.sty for the nd marker seems to avoid the problem. But why would modifying the attributes of a character style make the margins go crazy?

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

This problem has been around for many years. I never reported it as a bug (though it is). it would be great if it could be corrected.
My solution has been to use Adobe Acrobat (the paid version): Select all the text on the first page, and then move it over.

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

Another option is to use the new experimental PTXPrint program. This does not show funny margins when a project uses the - key to turn off formatting. But apparently this can cause other problems as well, so using - in custom.sty should be avoided.

Download PTXPrint here: https://tiny.cc/ptxprint

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

相关问题

0
1 个回答 222 次浏览
I found several threads here about Print Draft Changes. I have used them for a few years now. For one project I would ... or two working examples, that would help a lot. Thank you.
Tim 934 发布 提问于 二月 1, 2019
0
1 个回答 253 次浏览
Print Draft is mostly working fine. We have people with special needs, so managed to boost font size to 16. And got the ... grasp of the print draft will help a lot. Thank you.
Tim 934 发布 提问于 七月 11, 2018
0
3 个回答 517 次浏览
I filed a problem report a while ago but I also wanted to ask whether anyone has seen this sort of problem or has ... might be possible and what dependencies I could look out for.
rowbory 510 发布 提问于 八月 9, 2017
0
1 个回答 355 次浏览
A user is using the Khmer script for their project. They are using the Khmer Mondulkiri font. In the project text ... of how it looks in PrintDraft, U+17C9 incorrectly above letter
[Expert]
sewhite
3.3k 发布
提问于 四月 27, 2015
0
19 个回答 1.1k 次浏览
是否可以在对开页(Facing Pages)上创建双栏对照本(Diglot)或双文对照本(Discript),并使用单栏(Single Column)布局? 有人为此提出了请求,用于歌本(Song Books),因为 A5 纸张的双栏布局会导致过多的换行。 我目前无法使其正常工作(v2.0.30 和 v2.1.8 版本)。 谢谢,Mike
listentwice 1.2k 发布 提问于 三月 17, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Every day they continued to meet together in the temple courts. They broke bread in their homes and ate together with glad and sincere hearts, praising God and enjoying the favor of all the people. And the Lord added to their number daily those who were being saved.
Acts 2:46-47
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户