--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To post to this group, send email to pretext...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/b8ee8846-460a-424b-ab15-c04fe1a49aa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Validation for me uses the following two commands:java -classpath $(JING_DIR)/build -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration -jar $(JING_DIR)/build/jing.jar $(MB)/schema/pretext.rng $(MAINFILE) > schema_errors.txt
xsltproc --xinclude $(MB)/schema/pretext-schematron.xsl $(MAINFILE) >> schema_errors.txt
The file schema_errors.txt will be written to the CURRENT DIRECTORY IN WHICH YOU EXECUTE THE COMMAND. I like to do this in a scratch or output directory (or put a more specific path than schema_errors.txt, and then it will be written exactly where you tell it to). You can then find the errors from both stages of validation in schema_errors.txt.
https://groups.google.com/d/topic/pretext-announce/46hruyDuZpw/discussion
https://pretextbook.org/doc/author-guide/html/schematron.html
https://github.com/rbeezer/mathbook/blob/dev/schema/README.md
I think this is my turn to help, since I suspect I’m one of the few hard-core validators who uses macOS :)Here are my suggestions:* Don’t worry about what which java returns. Mine (macOS 10.14.5) returns /usr/bin/java as well.* That echo $(/usr/libexec/java_home) fails definitely indicates a problem. I think you’re right that you’ve not got the JDK installed correctly. I would suggest going to https://jdk.java.net/12/ and getting the open source JDK. Unfortunately, it comes without an installer. Fortunately, you really don’t need one. Unzip the file you download until you have a directory called jdk-12.0.1.jdk. Put that directory somewhere useful. I’ll pretend that you put it in your home directory and that your user is called jane, which means that the directory is now at /Users/jane/jdk-12.0.1.jdk.* In a terminal, run export JAVA_HOME=/Users/jane/jdk-12.0.1.jdk (Of course, the path should be the correct path to jdk-12.0.1.jdk. If you put it in your home directory, it will be exactly what I called it here, but with your username in there instead of jane.)* Now in that same terminal window, use cd to get to the jing-trang directory.* Once you’re in the jing-trang directory, run ./ant and you should be in business. You can verify success by looking in the build directory inside your jing-trang directory. You should have jing.jar and trang.jar in there.Validation for me uses the following two commands:java -classpath $(JING_DIR)/build -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration -jar $(JING_DIR)/build/jing.jar $(MB)/schema/pretext.rng $(MAINFILE) > schema_errors.txtxsltproc --xinclude $(MB)/schema/pretext-schematron.xsl $(MAINFILE) >> schema_errors.txtReplace $(JING_DIR) with the path to your jing-trang directory. Replace $(MB) with your path to the mathbook directory. Replace $(MAINFILE) with your main PreTeXt file (the one that has the <pretext> tag in it).The file schema_errors.txt will be written to the CURRENT DIRECTORY IN WHICH YOU EXECUTE THE COMMAND. I like to do this in a scratch or output directory (or put a more specific path than schema_errors.txt, and then it will be written exactly where you tell it to). You can then find the errors from both stages of validation in schema_errors.txt.
Hope this resolves your issues. If not, check back in, and I’ll see what other ideas I have.
On Jun 12, 2019, at 7:48 PM, Jane Butterfield <jane.bu...@gmail.com> wrote:
I have been setting up my work computer for PreTeXt work, and all of the things I need to install are going just fin...other than jing.The step I'm failing at is setting my `JAVA_HOME` environment, and I suspect it is failing because I have not actually obtained the JDK from Oracle that I thought I had. I wonder whether that is related to their new licence that started April this year, because I'm not convinced anything actually installed (I cannot find it). Sadly, I suspect it's just caused by me not installing things properly and not understanding terminal commands (both are things I know I limp through). Evidence: when I ask which java I get the same reply now as I did before attempting to obtain the JDK, namely /usr/bin/javaI've read through and attempted to replicated the first few steps in the jing readme file, but they're listed explicitly only for linux and for windows and I don't have the command-line literacy to work out what to do for mac. As suggested in the pretext author guide subsection on jing-trang, I also tried the two suggested echo commands, both of which responded with No such file or directory.I'm going to walk away from this for the day, and strongly suspect it's not the sort of thing someone can help me with without looking over my shoulder. It's probably fair to say that if I cannot work out how to get jing sorted then I shouldn't be reporting any errors that would require me to use it anyway! I certainly have everything set up well enough to author, which is my immediate goal.--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext...@googlegroups.com.
To post to this group, send email to pretext...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/b8ee8846-460a-424b-ab15-c04fe1a49aa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/b6ad72a0-33af-439e-93d6-9ae2023933b9%40googlegroups.com.
Download JDK (current release is 12.0.2). Unzip that download until you have the directory called jdk-12.0.2.jdk, and put that directory somewhere sensible. We will assume you put it in your home directory (/Users/username/jdk-12.0.2.jdk).
Run export JAVA_HOME=/Users/username/jdk-12.0.2.jdk/Contents/Home (with path to jdk-12.0.2.jdk adjusted as appropriate).
In the same terminal window, cd into the jing-trang directory and run ./ant
Thanks for the review (since the last time I owned an Apple computer was about
23 years ago!).
On 7/24/19 4:39 PM, Mitch Keller wrote:
> Looks reasonable to me.
>
>> On Jul 24, 2019, at 6:19 PM, Rob Beezer <bee...@ups.edu> wrote:
>>
>> Thanks, Jane, for sticking with this one, and Mitch, for the careful assist. I'll remind Jane that the schema needs a bit of love right now, so don't panic, and ask here if something does not seem right.
>>
>> I've done my best to record these steps properly into a new appendix of the Guide which can contain instructions on installing Mac-specific tools. (I'll find it useful when working with authors on a Mac!) Corrections welcome, if necessary. (I can make minor edits if a PR is too big a hurdle.)
>>
>> https://pretextbook.org/doc/guide/html/mac-os-java.html
>>
>> Rob
>>
>> --
>> You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to pretext...@googlegroups.com.