sillsdev / ptx2pdf

XeTeX based macro package for typesetting USFM formatted (Paratext output) scripture files
21 stars 7 forks source link

Missing entry in AdjList causing following adjustments to fail? #963

Open KimB2017 opened 1 week ago

KimB2017 commented 1 week ago

I can't get past chapter 32 in typesetting the nsn Genesis doc. The +/- tweaks I've made to the adjlist don't take effect, nor do some of the custom tweaks in changes.txt such as \p^94 are not working either.

I forced a few columns to balance by adjusting a picture size to get as far as I did, but I can't get any farther. So I generated a new default AdjList in a copy of the config and compared it with the working one in my 30Jun config, which has had various style and layout tweaks throughout its history (this is my first "real" typesetting job with PTXprint on a long book so I've definitely not been as consistent as I should have been). I'm feeling my way a bit.

Anyway, a few paragraphs that are in the text were missing their corresponding AdjList entries. This is likely because I added a few \ps in the text earlier on, and just today I wondered if they need Adj entries.

I had also added a \p at GEN 30:36 in changes.txt, and I realize that an entry was not generated in my fresh default AdjList. I entered these into the "working" AdjList in 30Jun and suddenly a bunch of my "-1" adjustments took effect, I think. So I think there's a problem, but it's beyond me to analyze it further. nsnNehan-30Jun-ch22done_nsnGEN-Margins38-gtsPTXprintArchive.zip

I'm attaching the 30Jun archive, current version, to see if you see anything weird. Play with the AdjList entries from ch 33 and beyond. And also with the changes.txt entries.

Thanks in advance!!! Blessings, Kim

mhosken commented 1 week ago

That usually means you have a wrong entry in the adjlist somewhere before the adjustment that isn't 'working'. Somewhere between the last that did work and the first that didn't. Often it's a misspelled book or a wrong chapter number.

GB, Martin

On Sun, 30 Jun 2024, 13:03 Kim Blewett, @.***> wrote:

I can't get past chapter 32 in typesetting the nsn Genesis doc. The +/- tweaks I've made to the adjlist don't take effect, nor do some of the custom tweaks in changes.txt such as \p^94 are not working either.

I forced a few columns to balance by adjusting a picture size to get as far as I did, but I can't get any farther. So I generated a new default AdjList in a copy of the config and compared it with the working one in my 30Jun config, which has had various style and layout tweaks throughout its history (this is my first "real" typesetting job with PTXprint on a long book so I've definitely not been as consistent as I should have been). I'm feeling my way a bit.

Anyway, a few paragraphs that are in the text were missing their corresponding AdjList entries. This is likely because I added a few \ps in the text earlier on, and just today I wondered if they need Adj entries.

I had also added a \p at GEN 30:36 in changes.txt, and I realize that an entry was not generated in my fresh default AdjList. I entered these into the "working" AdjList in 30Jun and suddenly a bunch of my "-1" adjustments took effect, I think. So I think there's a problem, but it's beyond me to analyze it further. nsnNehan-30Jun-ch22done_nsnGEN-Margins38-gtsPTXprintArchive.zip https://github.com/user-attachments/files/16044421/nsnNehan-30Jun-ch22done_nsnGEN-Margins38-gtsPTXprintArchive.zip

I'm attaching the 30Jun archive, current version, to see if you see anything weird. Play with the AdjList entries from ch 33 and beyond. And also with the changes.txt entries.

Thanks in advance!!! Blessings, Kim

— Reply to this email directly, view it on GitHub https://github.com/sillsdev/ptx2pdf/issues/963, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLMO3N4IH46D4DVIYUA3KDZJ7X27AVCNFSM6AAAAABKEBMBVGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DEMRSGM4DENY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

KimB2017 commented 1 week ago

Thanks Martin! I found it and managed to finish the fitting of GEN today! I think more than one entry was blocking the adjlist... but an entry with a verse bridge was the first blocker. There are a couple other verse bridges that don't cause a problem; maybe I'd typed the wrong hyphen or something. I'm wondering whether I also had a bad entry in changes.txt, or perhaps the adjlist blocker also blocked changes.txt entries beyond that point?

davidg-sil commented 6 days ago

The adjust list and changes.txt use entirely separate mechanisms (TeX code directly from the file for the adjust list, and python regular expression matching for changes.txt) so it's (a) impossible for the adjust list to break changes.txt but (b) by adding/removing paragraphs, or damaging bridge-verses, it's quite possible for changes.txt to break an adjust list.

Related to the above, the USFM that reaches XeTeX (i.e. after changes.txt) should use a simple minus/hyphen (U+002D) for bridge verses. XeTeX is then able to process them and display them nicely, including in the running header, etc.