-
-
Notifications
You must be signed in to change notification settings - Fork 6
DownloadOptions
Describes the types of downloads.
“PathwayB” allows Pathway to be run from a batch file. This allows other processes to be run after the configured dictionary export and before it is converted to the output format. For example Consistent Changes or Python could be used to make changes. Also if the program is having problems running out of memory, running PathwayB separately can overcome this problem. (It has no user interface except the command line and installs with Pathway. Here is the short version of the documentation:
Usage: PathwayB [Options]
where options include:
--input | -i <type> (required) type of content. Can be one of:
Dictionary Dictionary content.
Scripture Scripture content.
--inputformat | -if <format>
(required) content input format. Can be one of:
usfm Unified Standard Format Marker content.
usx USX content from Paratext 7.x.
xhtml XHTML from FieldWorks (FLEX or TE).
ptb Paratext bundle from Paratext 7.3.
--directory | -d <path> (required) full path to the content.
--files | -f {<file>[, <file>] | *}
(required) files to process, or * for all files in
the directory specified by the -d flag.
--target | -t <format> (required) desired output format. Can be one of:
"E-Book (.epub)" .epub format.
"Go Bible" Go Bible .jar format.
"PDF (using OpenOffice/LibreOffice)"
.pdf format.
"PDF (using Prince)" .pdf format.
"InDesign" .idml format.
"OpenOffice/LibreOffice" .odt format.
"XeLaTex" .tex format.
--css | -c stylesheet file name (required for xhtml only).
--showdialog | -s Show the Export Through Pathway dialog, and take
the values for target format, style, etc. from
the user's input on the dialog.
--launch | -l launch resulting output in target back end.
--name | -n [main] Project name.
Examples:
PathwayB.exe -d "D:\MyProject" -if usfm -f * -t "E-Book (.epub)"
-i "Scripture" -n "SEN"
Creates an .epub file from the USFM project found in D:\MyProject.
PathwayB.exe -d "D:\MyDict" -if xhtml -c "D:\MyDict\main.css"
-f "main.xhtml", "FlexRev.xhtml"
-t "E-Book (.epub)" -i "Dictionary"
-n "Sena 3-01"
Creates an .epub file from the xhtml dictionary found in D:\MyDict.
Both main and reversal index files are included in the output.
PathwayB.exe -d "D:\Project2" -if usfm -f * -i "Scripture" -n "SEN"-s
Displays the Export Through Pathway dialog, then generates output from
the USFM project found in D:\Project2 to the user-specified output
format and style.
Notes:
- Not all output types may be available, depending on your installation
Package. To verify the available output types, open the Configuration
Tool, click the Defaults button and click on the Destination drop-down.
The available outputs match the selections in this list.
- For dictionary output, the reversal index file needs to be named
"FlexRev.xhtml". this is to maintain consistency with the file naming
convention used in Pathway.
It is also possible to automate running scripts ahead of the conversion by putting them in a folder named Process that is a sibling to where the output will be created. This folder will need to have a batch file called BeforePwConvert.bat The xhtml file will be passed as a parameter and the same file will be used to continue the process after the batch file is completed.
SetupPw7BTE is the Bible Translation Edition that works with the FieldWorks 7 and 8 release and Paratext. It will provide an item on the File, Export dialogue for Pathway in FieldWorks and an item on the File menu for Paratext as well as a stand-alone configuration tool. This is the program we are trying to test and remove all the bugs from in preparation for a wider release.
SetupPw7SE doesn't have the Bible translation options but will handle all the dictionary exports.