0 votes
263 vues
Existe-t-il un moyen de mettre à jour les données du projet sans ouvrir Paratext et sans intervention humaine ? Je me souviens vaguement qu'il existait une API permettant cela, mais je ne trouve aucune information à ce sujet.

Contexte : j'aide un projet qui souhaite créer un système d'intégration continue pour vérifier automatiquement les mises à jour des données PT, et générer de nouvelles versions d'applications, de pages web et de documents imprimés lorsque de telles mises à jour sont détectées.
Traduit automatiquement depuis English
Paratext par (1,9k points) | 263 vues

1 Réponse

0 votes

Paratext Lite dispose d'un ensemble d'arguments de ligne de commande, dont un permet des opérations Send/Receive automatisées.

paratextlite --help

Usage:
  ParatextLite [command] [options]

Options:
  --projectsPath <projectsPath>    specify paratext projects path.
  -d, --debug                      debugging: enable logging to terminal + dev tools.
  --addTimings                     debugging: if debugging enabled, add api timings to output.
  --disableHost                    debugging: Start backend and wait. (listens at http://localhost:8888/)
  --useBundle <useBundle>          debugging: specify bundle.js
  --websocketPort <websocketPort>  Override websocket port used internally. Default : 9999
  --webserverPort <webserverPort>  Override webserver port used internally. Default : 8888
  --disableErrorReports            Disable automatic error reports
  --rdwrtp8                        (obsolete) 'rdwrtp8 -r|-w project book chapter|0 fileName (-x)'
                                    -x : use usx.
                                    -r : save from paratext to specified fileName
                                    -w : update paratext with content from specified fileName
  --version                        Show version information
  -?, -h, --help                   Show help and usage information

Commands:
  reset                  revert to default settings.
  sendreceive            send receive project and exit.
  export, read, save     Save paratext project content to file.
  import, update, write  Update a paratext project with the contents of specified file.
  exportlayout           Save a named layout to file.
  importlayout           Add or Update a named layout from file.
  regcode                Read/Update current reg code.
  listprojects           list avaliable projects

paratextlite sendreceive --help

Description:
  send receive project and exit.

Usage:
  ParatextLite sendreceive [options]

Options:
  -p, --projects <projects> (REQUIRED)  projects to use. Specify one or more. []
  --projectsPath <projectsPath>         specify paratext projects path.
  --allProjects                         Use all valid registered projects that the registered user can S/R. If specified, --projects
                                       is ignored. [default: False]
  -?, -h, --help                        Show help and usage information

Traduit automatiquement depuis English
par [Moderator]
(2,4k points)
Merci beaucoup ! Je viens de le tester, et pour l'instant, cela semble être exactement ce que je cherchais... même plus simple que je ne l'imaginais.
Traduit automatiquement depuis English

Questions connexes

0 votes
1 réponse 248 vues
PrintDraft uses xetex (which in turn uses ptx2pdf macros) to do the printing to pdf in Paratext. Presumably, PT ... be able to run nice looking drafts straight from PrintDraft.
mnjames 1,9k posée mai 7, 2015
0 votes
2 réponses 402 vues
A team I support has been publishing selected Psalms and other chapters to their Scripture app as the chapters are approved ... might be useful to other teams in other regions too.
anon469793 155 posée nov. 11, 2019
0 votes
1 réponse 240 vues
I know there are a lot of features everyone would like. I am not asking for a new one (just yet) but wondering if ... was reading it on a machine with the Paratext project on it.)
Kent Spielmann 1,8k posée déc. 21, 2018
0 votes
1 réponse 162 vues
Arguments de ligne de commande de Paratext Lite. Ceci ne s'applique pas à Android. (Bureau uniquement) Ceci est ... également sur les plateformes de bureau non Linux comme macos )
[Moderator]
hindlemail
2,4k
posée août 19
0 votes
2 réponses 248 vues
J'aide à la gestion de ScriptureEarth.org. Nous rêvons de la possibilité de mettre en place une option permettant aux ... . Est-ce que cela semble raisonnable ? --Loren Hawthorne
LorenHawthorne 173 posée août 5, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For we were all baptized by one Spirit so as to form one body—whether Jews or Gentiles, slave or free—and we were all given the one Spirit to drink.
1 Corinthians 12:13
3,051 questions
6,010 réponses
5,676 commentaires
2,030 utilisateurs