Hi Gil,
thank you for providing the ooRexx set of scripts! Nice that you now use a property file for the
configuration instead of environment variables!
A question ad the name "bldoc_orx": what does it stand for?
One suggestion: a readme.txt file that briefly explains the sequence of scripts to use (and what
they do) would be very helpful for newcomers who try to use the scripts to create the documentation
on their own.
---
Just ran "setup.rex" on Windows to get the necessary programs downloaded. At the end the following
error came up:
Making Apache FOP package available. (5/5)
Downloading fop-2.6-bin.zip
Start-BitsTransfer : HTTP-Status 404: Die angeforderte URL ist auf diesem
Server nicht vorhanden.
At line:1 char:1
+ Start-BitsTransfer https://mirror.nodesdirect.com/apache/xmlgraphics/ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer],
Exception
+ FullyQualifiedErrorId :
StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
TransferCommand
Error retrieving fop-2.6-bin.zip; RC was 1.
The reason being that the package name has changed on that location to
"fop-2.7-bin.zip".
Changed the name and it is nice to see that setup.rex will pick up right there,
great!
---
Ran:
docpath.rex path to oorexx\docs\trunk
docprep.rex rexxref
doc2pdf.rex
Noticed that docprep.rex copies the book's en-US files into work_folder, however the subdirectory
"en-US\images" and its subfolders are missing, so not sure, whether the raildiagrams can make it.
The fo file got created (fo_files\rexxref.fo):
Directory of G:\oorexx.tmp\gilDocs\bldoc_orx\fo_files
05.07.2022 11:53 <DIR> .
05.07.2022 11:53 <DIR> ..
05.07.2022 11:24 56 info.txt
05.07.2022 11:54 11 533 942 rexxref.fo
However the pdf file was not created.
Looking up the logfile:
G:\oorexx.tmp\gilDocs\bldoc_orx>type log_files\rexxref.log
Juli 05, 2022 11:54:27 AM org.apache.fop.apps.FopConfParser configure
INFO: Default page-height set to: 297mm
Juli 05, 2022 11:54:27 AM org.apache.fop.apps.FopConfParser configure
INFO: Default page-width set to: 210mm
Juli 05, 2022 11:54:27 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: java.net.MalformedURLException: unknown
protocol: f
java.net.MalformedURLException: unknown protocol: f
at org.apache.fop.util.LogUtil.handleException(LogUtil.java:57)
at
org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:113)
at
org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229)
at
org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82)
at
org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
at
org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
at
org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
at
org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
at
org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:75)
at
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
at
org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
at
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:363)
at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:109)
at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
at org.apache.fop.apps.Fop.<init>(Fop.java:78)
at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:184)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:108)
at org.apache.fop.cli.Main.startFOP(Main.java:183)
at org.apache.fop.cli.Main.main(Main.java:214)
Caused by: java.net.MalformedURLException: unknown protocol: f
at java.base/java.net.URL.<init>(URL.java:681)
at java.base/java.net.URL.fromURI(URL.java:748)
at java.base/java.net.URI.toURL(URI.java:1139)
at
org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:94)
... 17 more
---------
java.net.MalformedURLException: unknown protocol: f
at java.base/java.net.URL.<init>(URL.java:681)
at java.base/java.net.URL.fromURI(URL.java:748)
at java.base/java.net.URI.toURL(URI.java:1139)
at
org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:94)
at
org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229)
at
org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82)
at
org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
at
org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
at
org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
at
org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
at
org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:75)
at
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
at
org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
at
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:363)
at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:109)
at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
at org.apache.fop.apps.Fop.<init>(Fop.java:78)
at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:184)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:108)
at org.apache.fop.cli.Main.startFOP(Main.java:183)
at org.apache.fop.cli.Main.main(Main.java:214)
So something seems to be wrong with detecting the fonts, which got downloaded
by setup.rex to:
G:\oorexx.tmp\gilDocs\bldoc_orx>dir "Liberation Fonts"
Volume in drive G is root_g
Volume Serial Number is 2F1A-EC34
Directory of G:\oorexx.tmp\gilDocs\bldoc_orx\Liberation Fonts
05.07.2022 11:41 <DIR> .
05.07.2022 11:41 <DIR> ..
05.07.2022 05:41 301 684 LiberationMono-Bold.ttf
05.07.2022 05:41 277 912 LiberationMono-BoldItalic.ttf
05.07.2022 05:41 274 984 LiberationMono-Italic.ttf
05.07.2022 05:41 313 408 LiberationMono-Regular.ttf
05.07.2022 05:41 353 936 LiberationSans-Bold.ttf
05.07.2022 05:41 349 724 LiberationSans-BoldItalic.ttf
05.07.2022 05:41 355 608 LiberationSans-Italic.ttf
05.07.2022 05:41 350 200 LiberationSans-Regular.ttf
05.07.2022 05:41 4 469 SIL Open Font License.txt
---
You are using powershell in setup.rex to download and unzip the archives. If you were to use curl
(it became part of Windows 10 and is usually available on Unix systems) for downloading, then
setup.rex might be used to also download resources for Unix as well (ad unzipping: that should be
possible by default on Unix systems with unzip).
Best regards
---rony
P.S.: <https://wi.wu.ac.at/rgf/wu/lehre/slides/BusinessProgramming/060_ooRexx_commands_V14.pdf>
contains a couple of curl examples that can be used on any operating system.
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel