PDF's Bookmarks for Samyutta Nikaya are broken

The latest edition of Samyutta Nikaya, dated 13 Jan 2025, has issues with bookmarks:


Volume 1 starts with chapter 9

In Volume 2, chapter 13 and above are deeply embedded within other chapters.

In Volume 3, chapter 23 and above are deeply embedded within other chapters.


Volume 4, ditto

Volume 5, same

1 Like

@HongDa ?

Above is Adobe, but I see the same in Sumatra.

There are also issues with the AN pdf toc which should be obvious if you look. Numbered-Discourses-sujato-2025-01-20

EDIT: DN and MN have same problem.

To be clear: The issue is with the bookmark/navigation table of contents, not (it seems) the actual hard toc in the book itself.

I’ll mention again it would be great if tests could be written to check these before they go live.

Bhante @sujato, I think you are involved with these now for the Pirivena project.

3 Likes

That’s strange. I don’t see any similar issue with DN or MN. Although, the copy that I have is one week earlier than what Bhante is using.

Thanks @WayChuang @Snowbird

The publication should be regenerated in the next two days. Let’s see if the problem still exists.

2 Likes

@HongDa
It looks like the latest publication (2025-01-28) still has similar issue.

I also noticed that editions-main file size is 612MB instead of 150MB displayed on the web. I’m not sure where the majority of the bloat came from, but there seems to be duplicates here and there.

 Get-FileHash .\Middle-Discourses-sujato.zip

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA256          23844373CC7B595ECB4F14EF0EFEA58D3B77C21147E4CCCA51815A42234B50EC       

Get-FileHash .\Middle-Discourses-sujato-2025-01-27.zip

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA256          23844373CC7B595ECB4F14EF0EFEA58D3B77C21147E4CCCA51815A42234B50EC       

Same checksum, same content packed twice.

The hardcover edition of MN has to 3 sets of zip files dated differently, that of 28th, 27th and 25th of January.

What’s the difference between hardcover edition and paperback edition? Both of them use 5.8 x 8.7 inch.

1 Like

@HongDa any idea what is going on?

1 Like

SN’s directory structure is different from others, I’m trying to figure out how to fix it.

1 Like

We recently added a hardcover edition, which increased the zip file size.

1 Like

I think the duplicates can be found in the paperback folder too, while the hardcover folder has multiple copies of different dates.

Welcome back. CNY must be very exhausting. :stuck_out_tongue_closed_eyes:

1 Like

Haha, it is true that the Spring Festival is quite tiring. :joy:

There are usually six files in the paperback directory, three of which are dated and the other three are not. This was done to facilitate downloading without having to update the front end every time a new version was updated.

The old versions under hardcover are not automatically deleted. I need to check the reasons.

SN’s bookmarks problem is still being processed and has not been completely resolved yet.

1 Like

Let me know if there’s anything that I can assist without messing with the production system. I used to write code for living, albeit, I was a mediocre one.

3 Likes

That would be great!
Gratitude for contribution to spreading Buddha’s teachings :pray:

This is the project URL:

Need to get it running on your local machine for debugging.

Line 286 contains code for the “sn” bookmark.
The generated tex file and the related directory structure seem to have no errors for the time being, but the final generated pdf bookmark has problems.

2 Likes

Oh, I was referring to redundancy in the editions tarball.

Nevertheless, I’ll look into it this weekend. Thank you for the pointer. Can’t promise I am able to resolve this. I’ll let you know if I can/cannot resolve the issue.

No problem, it’s up to you.

Regarding the redundancy issue, it may be related to a Github action. I have closed it and will check if it works when the publication is generated on Monday.

1 Like

As it turns out, this mediocre ex-software engineer better stays out of coding.

I looked at the code and tried to go through the instructions in README file to see how to generate the files. I assume that setting up and then running make run should start the building the process. It seems that the instructions for Docker build itself cannot be completed without fixing missing steps in the Dockerfile and that running make run itself will fail because API_KEY is needed. It’s not as straightforward as I thought. I am guessing that API key is needed to pull suttas from suttacentral server because I can’t see the relevant tex files for the suttas within the repo.

Hahaha, I think it is beyond my ability.

2 Likes

Yes, the api_key comes from github so that the generated files can be uploaded to the github repo.

Anyway, thank you :heart:

2 Likes