Comprehensive TeX Archive Network

CTAN up­date: tex­os­query

Date: March 27, 2017 7:43:55 AM CEST
Ni­cola Tal­bot sub­mit­ted an up­date to the tex­os­query pack­age. Ver­sion num­ber: 1.2 2017-03-23 Li­cense type: lp­pl1.3 Sum­mary de­scrip­tion: Cross-plat­form Java ap­pli­ca­tion to query OS in­for­ma­tion An­nounce­ment text:
* Now has three .jar files de­pend­ing on the Java in­stal­la­tion: - tex­os­query-jre8.jar Full ap­pli­ca­tion. May be used with the CLDR lo­cale provider (Uni­code Con­sor­tium's Com­mon Lo­cale Data Re­pos­i­tory). Re­quires at least Java 8 (use with java -Djava.lo­cale.providers=CLDR,JRE or add "java.lo­cale.providers=CLDR,JRE" to the JAVA_TOOLS_OPTIONS en­vi­ron­ment vari­able to ac­cess the CLDR) - tex­os­query.jar The de­fault ver­sion of the ap­pli­ca­tion. Can't be used with CLDR. Less lo­cale sup­port. Re­quires at least Java 7. - tex­os­query-jre5.jar Cut-down ver­sion of the ap­pli­ca­tion with sig­nif­i­cantly less lo­cale sup­port. Pro­vided for old sys­tems that can't up­grade, but not rec­om­mended. (Use of Java 5 or 6 is dep­re­cated.) Re­quires at least Java 5. * New tex­os­query.cfg con­fig­u­ra­tion file. Edit the def­i­ni­tion of \TeXOSIn­vok­erName to in­di­cate which ap­pli­ca­tion you need to use. For ex­am­ple, if Java 8 is in­stalled: \def\TeXOSIn­vok­erName{tex­os­query-jre8} See the in­stal­la­tion sec­tion of the man­ual for fur­ther de­tails. * New com­mand line switches. * Ac­tions --list (-i) and --fil­terlist (-f) now have an op­tional ar­gu­ment to in­di­cate the sort or­der. * When ac­cess­ing file in­for­ma­tion, the TEXMF openin_any set­ting is first checked to de­ter­mine if read ac­cess is per­mit­ted. * Re­turned val­ues now in­clude some short­hand markup that's in­ter­nally con­verted when read in by \TeXOSQuery. For ex­am­ple "tex­os­query -n" now re­turns \pdfd \fcln 20161113161156\fpls 00\fcsq 00\fcsq in­stead of D:20161113161156+00'00' To re­store the orig­i­nal be­haviour use --com­pat­i­ble 1 See man­ual for fur­ther de­tails.
The pack­age's Cat­a­logue en­try can be viewed at http://www.ctan.org/pkg/tex­os­query The pack­age's files them­selves can be in­spected at http://mir­ror.ctan.org/sup­port/tex­os­query
Thanks for the up­load. For the CTAN Team Erik Braun
We are sup­ported by the TeX users groups. Please join a users group; see http://www.tug.org/user­groups.html .

tex­os­query – Cross-plat­form Java ap­pli­ca­tion to query OS in­for­ma­tion

This pack­age pro­vides a cross-plat­form Java ap­pli­ca­tion to query OS in­for­ma­tion de­signed for use in ’s shell es­cape mech­a­nism.

The ap­pli­ca­tion can query the fol­low­ing:

  • lo­cale and code­set
  • cur­rent work­ing di­rec­tory
  • user home di­rec­tory
  • tem­po­rary di­rec­tory
  • OS name, arch and ver­sion
  • Cur­rent date and time in PDF for­mat (for for­mats that don’t pro­vide \pdfcre­ation­date)
  • Date-time stamp of a file in PDF for­mat (for for­mats that don't pro­vide \pdf­file­mod­date)
  • Size of a file in bytes (for for­mats that don’t pro­vide \pdf­file­size)
  • Con­tents of a di­rec­tory (cap­tured as a list)
  • Direc­tory con­tents fil­tered by reg­u­lar ex­pres­sion (cap­tured as a list)
  • URI of a file
  • Canon­i­cal path of a file

All paths use a for­ward slash as di­rec­tory di­vider so re­sults can be used, for ex­am­ple, in com­mands like \in­clude­graph­ics.

There are files pro­vided for easy ac­cess in doc­u­ments:

  • tex­os­query.tex: generic code
  • tex­os­query.sty: pack­age

This pro­vides com­mands to run tex­os­query us­ing ’s shell es­cape mech­a­nism and cap­ture the re­sult in a con­trol se­quence. The cat­e­gory code of most of ’s de­fault spe­cial char­ac­ters (and some other po­ten­tially prob­lem­atic char­ac­ters) is tem­porar­ily changed to 12 while read­ing the re­sult.

Ver­sion1.3 2017-03-31
Main­tainerNi­cola Tal­bot



Guest Book Sitemap Contact Contact Author