sillsdev / ptx2pdf

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

build process for debian, to adapt to gentoo. #591

Closed hanetzer closed 2 years ago

hanetzer commented 2 years ago

Ello. Came across your project looking into interlinear bible tools for use with latex. I use gentoo linux, which is not packaged for this system. I was hoping you could point me at how you build the debian package, and where the files should end up, so I could write a gentoo ebuild for this.

Running python setup.py install --user works but it says paratex is not installed and asks where the USFM projects are/will be stored.

mhosken commented 2 years ago

It sounds like you have the program running as written.

PTXprint is typically used by people who are using ParaTExt to create the scripture they are typesetting. PTXprint doesn't actually need ParaTExt installed to run. All that you need to do is to point PTXprint at the directory above the directory containing the sfm files. This is because the assumed directory structure is of a directory containing project directories, one per project, each containing the SFM files and other files.

If you set a suitable directory, PTXprint will remember that going forward. You can override it from the command line (PTXprint -h is quite fun).

hanetzer commented 2 years ago

Hrm. where are the sfm files at, then? I'm only seeing them under the tests directory. What does a 'suitable directory' look like?

mhosken commented 2 years ago

A suitable is test/projects as in it contains project directories: projects/WEBorig/01GENWEBorig.SFM. The sfm files are the files that you as a translator are creating through diligence and hard work. An appropriate free tool might be bibledit.

hanetzer commented 2 years ago

Huh. I was under the impression this project at least came with some 'barebones' skeleton projects to start working from. My mistake, then. Eyeballing the file you pointed out, it doesn't resemble latex as I'm familiar with it. Is this format documented somewhere?

markpenny commented 2 years ago

I have a feeling that you have mistakenly understood Paratext to be some kind of ParaTeX which would obviously lead to a LOT of confusion and frustration. You need to understand that PTXprint is primarily for existing users of Paratext (which uses USFM markup for scripture text).

hanetzer commented 2 years ago

A very distinct possibility. Thanks for some leads, however. Think that should do the trick for now.

mhosken commented 2 years ago

Ptxprint does not use latex, the macro package is built on top of plain tex.

On Thu, 2 Dec 2021, 16:27 hanetzer, @.***> wrote:

A very distinct possibility. Thanks for some leads, however. Think that should do the trick for now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sillsdev/ptx2pdf/issues/591#issuecomment-984446092, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLMO3OWYANN4FIYW4TLDIDUO43XNANCNFSM5I364ZYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.