Bonjour Loren,
Oui, PTXprint fonctionne sous Linux et dispose d'options en ligne de commande qui devraient rendre votre idée relativement facile à réaliser. Il suffit d'exécuter PTXprint dans un terminal avec -h pour afficher toutes les options. Si vous regardez dans le fichier C:\Program Files\PTXprint\ptxprint\AboutPTXprint.txt, vous verrez qu'il y a toute une série d'exemples sur la façon d'exécuter PTXprint directement depuis la ligne de commande (c'est-à-dire sans interface graphique).
Ainsi, par exemple,
"C:\Program Files\PTXprint\PTXprint.exe" -b ROM -P XYZ
créera directement un PDF de ROMAINS à partir du projet XYZ en utilisant la configuration Default (et aucune interface graphique n'apparaîtra, car -P a été utilisé pour cliquer directement sur "Imprimer" à votre place).
Notez que vous devez probablement d'abord ouvrir PTXprint pour ce projet et configurer une police, une mise en page, etc. Bien que pour les textes latins/romains, cela pourrait simplement fonctionner, je ne sais pas.
Si vous essayez de l'exécuter sans la structure de fichiers Paratext normale, tout ce que vous avez à faire est de lui donner -p (minuscule) pour pointer vers un dossier qui est équivalent à "C:\My Paratext N Projects". Il cherche dans chaque sous-dossier les fichiers USFM et ajoute ce dossier à la liste des "Projets". J'ai donc une icône sur mon bureau qui exécute cette commande :
"C:\Program Files\PTXprint\PTXprint.exe" -p C:\Users\mark\Downloads qui lance PTXprint en cherchant uniquement des projets dans mon dossier Téléchargements.
Nous avons déjà envisagé l'idée de fournir une version en ligne légèrement limitée de PTXprint (moins d'options à choisir) et MH pourrait peut-être donner des détails sur la façon de procéder.
D'autres personnes ont déjà fait quelque chose de similaire, mais avec un nombre limité de textes disponibles.
Regardez : paper.bible qui a une interface web facile à utiliser. J'adore leur vidéo promotionnelle, et la simplicité de l'interface.
Hi Loren,
Yes, PTXprint runs on Linux and has command-line options that should make your idea relatively easy to pull off. Just run PTXprint in a terminal with the -h to show all the options. If you look in the C:\Program Files\PTXprint\ptxprint\AboutPTXprint.txt file you will see that there are a whole bunch of examples of how to run PTXprint directly from the command-line (i.e. headless).
So for example,
"C:\Program Files\PTXprint\PTXprint.exe" -b ROM -P XYZ
will directly create a PDF of ROMANS from the XYZ project using the Default configuration (and no GUI will appear, as -P was used to directly hit "Print" for you).
Note that you probably need to first open PTXprint for that project and set up a font and layout etc. Although for Latin/Roman texts it might just work, I don't know.
If you're trying to run it without the normal Paratext file structure, all you need to do is give it the -p (lowercase) to point to a folder which is equivalent to "C:\My Paratext N Projects". It looks in each subfolder for USFM files and adds that folder to the list of "Projects". So I have an icon on my desktop which runs this command:
"C:\Program Files\PTXprint\PTXprint.exe" -p C:\Users\mark\Downloads which fires up PTXprint looking only for projects in my Downloads folder.
We have already toyed with the idea of providing a slightly limited online version of PTXprint (fewer options to choose from) and MH might chip in with specifics about how to go about that.
There are others who have already done something similar, but with a limited number of texts available.
Check out: paper.bible which has an easy-to-use web interface. I love their promo video, and the UI simplicity.