Hi Gil and thanks for the info. This is not my problem then since I require the 
user to install the tools beforehand. 

On my own Mac (where also the official doc build is running) I have fop 2.8, on 
macOS I just do a brew update - brew upgrade every now and then.

The risk is, ofcourse, that I might break something with a new version, so far 
it did not happen though.

For Linux I need to work myself back into how it actually works, again. Pain. 
But for Manãna :-)

I sorted my tools out and made sure they were up to date btw.

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se



> On 4. Jan 2023, at 17:57, Gilbert Barmwater <gi...@bellsouth.net> wrote:
> 
> Hi P.O.,
> 
> So the problem with the FOP toolset is that it is an active project so the 
> website changes periodically.  That includes the level - it is now 2.8 - and 
> the mirror sites from which you can download it.  I had originally "hard 
> coded" both the level and the mirror site in setup.rex.  However, as soon as 
> the next level of FOP came out, the level I had hard coded was not found 
> (they move it to an archive site).  So I changed the code to "get" the Web 
> page - you could use cURL for example - where the current level was listed 
> and used that value in place of what I had hard coded.  Now I need to "get" 
> the page where the recommended mirror site is listed and use that value in 
> place of the hard coded value.  HTH,
> 
> Gil
> 
> On 1/4/2023 2:51 AM, P.O. Jonsson wrote:
>> Dear Gil,
>> 
>> Can you share some info on the non-existent FOP mirror? I have a similar 
>> problem with using my docbuild tools on Ubuntu, they used to work but when I 
>> retry them now they do not work. Could be the same problem.
>> 
>> Hälsningar/Regards/Grüsse,
>> P.O. Jonsson
>> oor...@jonases.se <mailto:oor...@jonases.se>
>> 
>> 
>> 
>> 
>>> Am 03.01.2023 um 23:04 schrieb Gilbert Barmwater <gi...@bellsouth.net 
>>> <mailto:gi...@bellsouth.net>>:
>>> 
>>> Thanks for catching this Rony!  I will investigate as I have time along 
>>> with the problem with setup.rex on Windows using a non-existent FOP mirror.
>>> 
>>> Gil
>>> 
>>> On 1/3/2023 12:32 PM, Rony G. Flatscher wrote:
>>>> On 03.01.2023 15:00, Gilbert Barmwater wrote:
>>>> 
>>>>> While being there we should also consider to rename the directory 
>>>>> "docs/trunk/oorexx" to "docs/trunk/Common_Content" as it gets used for 
>>>>> all books. After doing so, we should also consider to change all the 
>>>>> xml-files that refer to "Common_Content" to refer relatively to it which 
>>>>> would allow us to forgo copying "oorexx\en-US" into all 
>>>>> "books\en-US\Common_Content".  
>>>>> -1
>>>>> 
>>>>> This would "break" the Publican tools and, IMHO, does not provide any 
>>>>> real benefit as the "copying" step is only done during the "docprep" 
>>>>> stage, once per document and, as the file is very small, does not impose 
>>>>> a performance hit.
>>>>> 
>>>> Checked oout "bldoc_orx" and could learn that the logic has changed (did 
>>>> not realize that): rather than copying "docs/trunk/oorexx/en-US" to 
>>>> ${book}/en-US/Common_Content" you copy the xml files to work with to 
>>>> "bldoc_orx/work_folder" and change the reference "Common_Content" in those 
>>>> files to point to "docs/trunk/oorexx/en-US" instead (and also the base 
>>>> element in work_folder/fop.cfg).
>>>> 
>>>> As a result, unlike earlier versions, the checked out docs/trunk directory 
>>>> structure does not get changed anymore, which is what I was after. So 
>>>> please discard this request, or with other words: -1 from my side as well! 
>>>> :)
>>>> 
>>>> ---
>>>> 
>>>> One observation though: generating the html-rendering will use the 
>>>> absolute path to srcdir"/oorexx/en-US" instead of "Common_Content" in the 
>>>> index.html:
>>>> 
>>>> <span class="inlinemediaobject <>"><img 
>>>> src="F:/work/svn/oorexx/docs/trunk/oorexx/en-US/images/oorexx.jpg 
>>>> <f:/work/svn/oorexx/docs/trunk/oorexx/en-US/images/oorexx.jpg>" 
>>>> align="middle <>" /></span>
>>>> As a result the oorexx.jpg image is not displayed on the front page 
>>>> (index.html, line # 4). index.html is the only html-file that I found that 
>>>> would use that wrong (hard coded) path.
>>>> 
>>>> ---rony
>>>> 
>>>> P.S.: While testing doc2pdf.rex on my Windows machine there is an error 
>>>> when trying to load the Liberation fonts, despite the fact that they got 
>>>> installed into Windows (from the "Liberation Fonts" directory). Here the 
>>>> log file:
>>>> 
>>>> G:\oorexx.tmp\gilDocs\bldoc_orx>type log_files\rexxref.log
>>>> JΣn 03, 2023 6:16:12 PM org.apache.fop.apps.FopConfParser configure
>>>> INFO: Default page-height set to: 297mm
>>>> JΣn 03, 2023 6:16:12 PM org.apache.fop.apps.FopConfParser configure
>>>> INFO: Default page-width set to: 210mm
>>>> JΣn 03, 2023 6:16:12 PM org.apache.fop.cli.Main startFOP
>>>> SEVERE: Exception
>>>> org.apache.fop.apps.FOPException: 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.net.URL.<init>(URL.java:618)
>>>>         at java.net.URL.<init>(URL.java:508)
>>>>         at java.net.URL.<init>(URL.java:457)
>>>>         at java.net.URI.toURL(URI.java:1089)
>>>>         at 
>>>> org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:94)
>>>>         ... 17 more
>>>> 
>>>> ---------
>>>> 
>>>> java.net.MalformedURLException: unknown protocol: f
>>>>         at java.net.URL.<init>(URL.java:618)
>>>>         at java.net.URL.<init>(URL.java:508)
>>>>         at java.net.URL.<init>(URL.java:457)
>>>>         at java.net.URI.toURL(URI.java:1089)
>>>>         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)
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Oorexx-devel mailing list
>>>> Oorexx-devel@lists.sourceforge.net 
>>>> <mailto:Oorexx-devel@lists.sourceforge.net>
>>>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel 
>>>> <https://lists.sourceforge.net/lists/listinfo/oorexx-devel>
>>> _______________________________________________
>>> Oorexx-devel mailing list
>>> Oorexx-devel@lists.sourceforge.net 
>>> <mailto:Oorexx-devel@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel 
>>> <https://lists.sourceforge.net/lists/listinfo/oorexx-devel>
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Oorexx-devel mailing list
>> Oorexx-devel@lists.sourceforge.net 
>> <mailto:Oorexx-devel@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel 
>> <https://lists.sourceforge.net/lists/listinfo/oorexx-devel>
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to