--
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 view this discussion visit https://groups.google.com/d/msgid/pretext-support/4aee2665-3e74-4897-b645-2b849a16c8c9%40alaska.edu.
Pretext/prefigure code snippet is below. All speech works when I deploy it on a test site. It is the second figure at the URL: http://www.math.uaa.alaska.edu/~afmaf/web_test/sec-section-name.html
The errors show up when I run pretext to produce html (or run Prefigure directly on just that diagram in a separate file). The speech error is repeated many times. The errors are repeated for both prefigure diagrams (one is the sample from the documentation).
compiling PreFigure source file prefigure-diffeq.xml to SVG
Unable to load locale: base
Unable to load locale: en
Something went wrong computing speech.
<figure xml:id="figure-prefigure-curve">
<caption>Limit example</caption>
<image width="70%">
<prefigure label="prefigure-limit1"
xmlns="https://prefigure.org">
<diagram dimensions="(300,300)" margins="5">
<definition>f(x) = 10 / (1 + exp(-0.8 * (x -
6)))</definition>
<coordinates bbox="[-1,-1,13,11]">
<axes xlabel="x" ylabel="f(x)"
hticks="(0,2,12)" hlabels="(0,2,12)"
vticks="(0,1,10)" vlabels="(0,1,10)"
arrows="0"/>
<line at="guide" endpoints="((6,0),(6,10))"
stroke="blue" />
<graph at="graph" function="f" stroke="lightgreen"
thickness="2" />
</coordinates>
<annotations>
<annotation ref="figure" text="The graph of a function">
<annotation ref="graph" text="On the left the graph
begins at the bottom rising slowly at first then faster then
slowly again. It has no breaks." sonify="yes" />
<annotation ref="guide" text="Vertical line at x equal 6
guiding you to the curve" />
</annotation>
</annotations>
</diagram>
</prefigure>
</image>
</figure>
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CANXmVMAW0oYmObs3UGiJ%3D1uD2RLd6gKZxyOX7WJDSu1oqJyRew%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/21133869-3d93-4234-a1dd-0039828fac67%40alaska.edu.
The error message is the same for both figures. That source is on the Prefigure web site (https://prefigure.org/docs/sec-annotations.html)
This suggests something not installed/configured on my installation. Using -vv with prefig I get the following. I am uncertain how to make liblouis work. I have downloaded the files for windows, added them to the path, and install the python louis package, but the error message persists. That also appears unconnected with speech.
No PreFigure publication file applied.
Building from PreFigure source prefigure-image1.xml
cairo imported
Failed to import louis so we cannot make braille labels
See the installation instructions at https://prefigure.org
The rest of the diagram will still be built.
debug: Initializing PreFigure diagram
debug: Processing PreFigure elements
debug: Processing definition: f(x) = 10 / (1 + exp(-0.8 * (x -
6)))
debug: Processing element coordinates
debug: Processing element axes
debug: Processing element line with handle guide
debug: Processing element graph with handle graph
debug: Processing element annotations
debug: Processing annotation with ref=figure
debug: Processing annotation with ref=graph
debug: Processing annotation with ref=guide
debug: Positioning labels
debug: Using MathJax to produce mathematical labels
debug: Writing the diagram and any annotations
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CANXmVMCOdLL-sDfVbANhV7zHTeEApFt-OXsozhqmrxm8Qdnz4g%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/3d928930-0267-4f08-b533-59f1ffa26673%40alaska.edu.
My prefig is installed in the virtual environment where pretext is installed. MathJax was installed as part of that (prefig init). I just updated node (v24.14.0). The error persists. It happens on both my work computer and my personal computer.
This is not time critical, so I will keep playing with this. Probably it will eat up too much of my spring break next week.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CANXmVMDG%2B6o8i0gNV0gSz231X6bBGWyWGB7VXAWjocZ4PA%3D7Nw%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/07bec2f0-1591-4be5-ab54-07c9dbf10269%40alaska.edu.
This makes no sense to me. The file is there at exactly that address.
node mj-sre-page.js --svg --svgenhanced --depth deep
/c/bin/testing/mj_in.html
node:fs:440
return binding.readFileUtf8(path,
stringToFlags(options.flag));
^
Error: ENOENT: no such file or directory, open
'C:\bin\testing\mj_in.html'
at Object.readFileSync (node:fs:440:20)
at Object.<anonymous>
(C:\bin\testing\mj-sre-page.js:119:32)
at Module._compile (node:internal/modules/cjs/loader:1812:14)
at Object..js (node:internal/modules/cjs/loader:1943:10)
at Module.load (node:internal/modules/cjs/loader:1533:32)
at Module._load (node:internal/modules/cjs/loader:1335:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain]
(node:internal/modules/run_main
:154:5)
at node:internal/main/run_main_module:33:47 {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\bin\\testing\\mj_in.html'
}
Node.js v24.14.0
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CANXmVMDyymP40H%2BvDRMpwLuXwNh-Wq9so%3DLqNo7YTboeRdSMNQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/db85c12a-018d-43ef-af9b-68574cbea469%40alaska.edu.
That was silly. - and not _
Still gives the errors below. Output attached.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CANXmVMBc0mvPYha3TAuQc%3DP0cgqegEBuL-nmSPQjJQLkiedsqg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/01cfc11c-559c-4f97-aa30-932d2725d690%40alaska.edu.