Updating XFG configuration files for JavPrint menu-item

Required    :: updated binaries FileGarden and PClass_Command_RedStone_01.so
               installation of JavPrint from here
               copy XFGMemoInsertJavPrintTag to your [HOME]/redstone/resource directory

Update XFG configuration files :: 

:: [HOME]/redstone/FileGarden/xfg.conf

...
...


[xfgMemoMenu]
...
...
Format ...=%CREATENEW%
Insert ...=%CREATENEW%
JavPrint=%CREATENEW%
...


[JavPrint]
JavPrint tag=%CREATENEW%
----seperator00=1
Print.MEMOIN.ps=%GetCustomCommand%XFGMemoInsertAtLine%GetValue%XFGMemoInsertXFGCommandTag
Print.TXT.ps=%GetCustomCommand%XFGMemoInsertAtLine%GetValue%XFGMemoInsertXFGCommandTag
Print.IMG.ps=%GetCustomCommand%XFGMemoInsertAtLine%GetValue%XFGMemoInsertXFGCommandTag


[JavPrint tag]
load.TXT=%GetCustomCommand%XFGMemoInsertAtLine%GetValue%XFGMemoInsertJavPrintTag
load.IMG=%GetCustomCommand%XFGMemoInsertAtLine%GetValue%XFGMemoInsertJavPrintTag
load.IMG.dimension=%GetCustomCommand%XFGMemoInsertAtLine%GetValue%XFGMemoInsertJavPrintTag
load.FONT=%GetCustomCommand%XFGMemoInsertAtLine%GetValue%XFGMemoInsertJavPrintTag
load.newPage=%GetCustomCommand%XFGMemoInsertAtLine%GetValue%XFGMemoInsertJavPrintTag


:: [HOME]/redstone/resource/XFGMemoInsertXFGCommandTag

...

[Command]
...
...
Print.MEMOIN.ps=xterm -hold -e 'java TestPrintNewJPSIMAGE %XFGMemoInsertExecuteThisCommand_L% 25 15 35 72 SansSerif 12 0 1 1 0 %XFGMemoInsertExecuteThisCommand_L%.ps;echo " ";echo "----------------------------------------------------------------";echo "Viewing postscript file ::";echo "Don''t forget saving a copy of the postscript before exiting the viewer";echo " ";echo "Please wait ...";echo " ";gv %XFGMemoInsertExecuteThisCommand_L%.ps'
Print.TXT.ps=xterm -hold -e 'FILENAME=$(uuidgen);mkdir .${FILENAME};java TestPrintNewJPSIMAGE %XFGMemoInsertExecuteThisCommand% 25 15 35 72 SansSerif 12 0 1 1 0 .${FILENAME}/${FILENAME}.ps;echo " ";echo "----------------------------------------------------------------";echo "Viewing postscript file ::";echo "Don''t forget saving a copy of the postscript before exiting the viewer";echo " ";echo "Please wait ...";echo " ";gv .${FILENAME}/${FILENAME}.ps;rm -rf .${FILENAME}'
Print.IMG.ps=xterm -hold -e 'FILENAME=$(uuidgen);mkdir .${FILENAME};echo "{loadImage=%XFGMemoInsertExecuteThisCommand%}" > .${FILENAME}/${FILENAME};java TestPrintNewJPSIMAGE .${FILENAME}/${FILENAME} 25 15 35 72 SansSerif 12 0 1 1 0 .${FILENAME}/${FILENAME}.ps;echo " ";echo "----------------------------------------------------------------";echo "Viewing postscript file ::";echo "Don''t forget saving a copy of the postscript before exiting the viewer";echo " ";echo "Please wait ...";echo " ";gv .${FILENAME}/${FILENAME}.ps;rm -rf .${FILENAME}'


:: content of [HOME]/redstone/resource/XFGMemoInsertJavPrintTag


load.TXT={loadTextfile=%XFGMemoInsertWithLine%}    
load.IMG={loadImage=%XFGMemoInsertWithLine%}
load.IMG.dimension={loadImage=0,350=%XFGMemoInsertWithLine%}
load.FONT={loadFont= 0,14,0}%XFGMemoInsertWithLine%
load.newPage={loadNewPage}%XFGMemoInsertWithLine%

notes :: replacing val [HOME] with user home directory whenever possible ...

         configure font face, font size, image dimension for specific needs. Or source the 
         commandline from a script file
	 
         basically updates for print to postscript directly from selection of text within the 
         memo editor with updated configuration val %XFGMemoInsertExecuteThisCommand_L%



the above should work but if you have problems using and configuring the menuitem , feel free 
to reach me at Email :: alred2@lycos.com