Changeset 4220

Show
Ignore:
Timestamp:
04/24/08 12:26:10 (2 months ago)
Author:
pmoura
Message:
Added a "lgttxt.xsl" XSLT style-sheet and two shell scripts, "lgt2txt.sh" and "lgt2txt.js", for converting XML documenting files into text files.
Location:
trunk
Files:
3 added
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/RELEASE_NOTES.txt

    r4217 r4220  
    106106    category relations introduced in version 2.31.0. 
    107107 
    108     Updated the "lgtxml.xsl" XSLT stylesheet to ensure that the generated  
     108    Added a "lgttxt.xsl" XSLT style-sheet and two shell scripts, "lgt2txt.sh"  
     109    and "lgt2txt.js", for converting XML documenting files into text files. 
     110 
     111    Updated the "lgtxml.xsl" XSLT style-sheet to ensure that the generated  
    109112    HTML files are fully compliant with the HTML 4.01 standard. 
    110113 
  • trunk/scripts/cplgtdirs.js

    r4102 r4220  
    117117link.Save(); 
    118118 
     119link = WshShell.CreateShortcut(logtalk_user + "\\xml\\lgt2txt.js.lnk"); 
     120link.Description = "Shortcut to lgt2txt script"; 
     121link.TargetPath = logtalk_home + "\\xml\\lgt2txt.js"; 
     122link.Save(); 
     123 
    119124link = WshShell.CreateShortcut(logtalk_user + "\\xml\\logtalk.dtd.lnk"); 
    120125link.Description = "Shortcut to Logtalk DTD"; 
  • trunk/scripts/cplgtdirs.sh

    r4102 r4220  
    9494ln -sf "$LOGTALKHOME"/xml/lgt2pdf.sh "$LOGTALKUSER"/xml/lgt2pdf 
    9595ln -sf "$LOGTALKHOME"/xml/lgt2xml.sh "$LOGTALKUSER"/xml/lgt2xml 
     96ln -sf "$LOGTALKHOME"/xml/lgt2txt.sh "$LOGTALKUSER"/xml/lgt2txt 
    9697ln -sf "$LOGTALKHOME"/xml/logtalk.dtd "$LOGTALKUSER"/xml/logtalk.dtd 
    9798ln -sf "$LOGTALKHOME"/xml/logtalk.rng "$LOGTALKUSER"/xml/logtalk.rng 
  • trunk/scripts/debian/postinst

    r4208 r4220  
    3131 
    3232echo 
    33 echo "Links to the \"cplgtdirs\", \"lgt2pdf\", \"lgt2html\", and \"lgt2xml\" scripts have" 
    34 echo "been created on \"/usr/bin\"." 
     33echo "Links to the \"cplgtdirs\", \"lgt2pdf\", \"lgt2html\", \"lgt2xml\", and " 
     34echo "\"lgt2txt\" scripts have been created on \"/usr/bin\"." 
    3535echo 
    3636echo "The following integration scripts are installed for running Logtalk" 
  • trunk/scripts/install.sh

    r4132 r4220  
    5656ln -sf ../share/logtalk/xml/lgt2html.sh lgt2html 
    5757ln -sf ../share/logtalk/xml/lgt2xml.sh lgt2xml 
     58ln -sf ../share/logtalk/xml/lgt2txt.sh lgt2txt 
    5859 
    59 echo "Links to the \"cplgtdirs\", \"lgt2pdf\", \"lgt2html\", and \"lgt2xml\" scripts" 
    60 echo "have been created on \"$prefix/bin\"; you may need to add this directory" 
    61 echo "to your execution path." 
     60echo "Links to the \"cplgtdirs\", \"lgt2pdf\", \"lgt2html\", \"lgt2xml\", and" 
     61echo "\"lgt2txt\" scripts have been created on \"$prefix/bin\";" 
     62echo "you may need to add this directory to your execution path." 
    6263echo 
    6364 
  • trunk/scripts/linux/logtalk.spec

    r4208 r4220  
    5252ln -sf ../share/logtalk/xml/lgt2html.sh lgt2html 
    5353ln -sf ../share/logtalk/xml/lgt2xml.sh lgt2xml 
     54ln -sf ../share/logtalk/xml/lgt2txt.sh lgt2txt 
    5455 
    5556%clean 
     
    6768rm -f lgt2pdf 
    6869rm -f lgt2xml 
     70rm -f lgt2txt 
    6971rm -f plclgt 
    7072rm -f qplgt 
     
    104106/usr/local/bin/lgt2html 
    105107/usr/local/bin/lgt2xml 
     108/usr/local/bin/lgt2txt 
    106109/usr/local/bin/bplgt 
    107110/usr/local/bin/ciaolgt 
     
    123126echo "Installed Logtalk on \"$RPM_INSTALL_PREFIX/share\"." 
    124127echo 
    125 echo "Links to the \"cplgtdirs\", \"lgt2pdf\", \"lgt2html\", and \"lgt2xml\" scripts" 
    126 echo "have been created on \"$RPM_INSTALL_PREFIX/bin\"; you may need to add this directory" 
    127 echo "to your execution path." 
     128echo "Links to the \"cplgtdirs\", \"lgt2pdf\", \"lgt2html\", \"lgt2xml\", and" 
     129echo "\"lgt2txt\" scripts have been created on \"$RPM_INSTALL_PREFIX/bin\";" 
     130echo " you may need to add this directoryto your execution path." 
    128131echo 
    129132echo "The following integration scripts are installed for running Logtalk" 
  • trunk/scripts/uninstall.sh

    r4132 r4220  
    5353rm -f lgt2pdf 
    5454rm -f lgt2xml 
     55rm -f lgt2txt 
    5556rm -f plclgt 
    5657rm -f qplgt 
  • trunk/xml/NOTES.txt

    r4205 r4220  
    7878    Edit the file if you use a different encoding. 
    7979 
     80lgttxt.xsl 
     81 
     82    XSLT file to output simple text files from the XML files. UTF-8 encoding  
     83    is assumed. Edit the file if you use a different encoding. 
    8084 
    8185lgtpdf.xsl 
     
    218222 
    219223 
     224lgt2txt.sh 
     225    (bash shell script) 
     226lgt2txt.js 
     227    (JScript command-line script for Windows; requires WSH 5.6 or  
     228    later version) 
     229 
     230    Sample scripts to batch convert XML files to text files. 
     231 
     232    These scripts assumes that the LOGTALKHOME and LOGTALKUSER environment  
     233    variables are defined. 
     234 
     235    The scripts should be called from the directory containing the XML files  
     236    you wish to convert. Call the scripts with the help option for a description  
     237    of the available optional parameters (type "cscript lgt2txt.js help" or  
     238    "lgt2txt.sh -h"; depending on your Logtalk installation, you may simply  
     239    need to type "lgt2txt" in order to run the script). 
     240 
     241 
    220242Note that you can write other XSL files for converting the XML files to  
    221243other formats besides PDF or (X)HTML. You can also write alternative CSS