Late to the party, and it is a party, since I am very excited with what
transpired at the last meeting of the braille group.
Seems AI, when fed the PreTeXt Guide, can churn out pretty nice PreTeXt source,
and then that could be made into braille (or anything else!). Sure to be some
bumps in the road, but very promising. Alexei - I hope you can keep us posted
on progress from the students and your own experiments.
While Oscar tackles the problem of making this easier, you can make braille
today, if
1. You use the pretext/pretext script
2. Install MathJax to run offline via node
3. Install liblouis with its Python bindings
Rob
On 8/9/25 13:04, David Austin wrote:
> For Alexei: Once Oscar has this working, I think the pretext format you want is
> "braille-emboss" or "braille-electronic" rather than just "braille", which is
> for math elements only. At least, that's the case with the pretext/pretext
> script, and I assume that the CLI just passes the format on to the pretext core.
>
> On Sat, Aug 9, 2025 at 9:48 AM Oscar Levin <
oscar...@gmail.com
> <mailto:
oscar...@gmail.com>> wrote:
>
> I haven't figured out how to get braille to work with the CLI yet; recently
> we changed how core pretext imports the braille_format.py file, so now this
> should be possible, I just haven't had a chance to implement it on the CLI
> side. I can try to tackle that soon.
>
> On Friday, August 8, 2025 at 9:58:35 PM UTC-6
alexei.s....@gmail.com
> *Short version.* I am trying to build a braille output from a PreTeXt
> article in codespace.
>
> $ pretext build braille
> leads to an error that braille target is not found.
>
> Adding <targetname="braille"format="braille"/>
> to the publication file fixes that, but leads to
>
> critical: cannot import name 'braille_format' from 'pretext.core' (/opt/
> venv/lib/python3.11/site-packages/pretext/core/__init__.py)
>
> because the lines with braille are commented out in the __init__.py file.
>
> Does the capability to build a braille output exist in the codespace?
>
> *Longer version (why).*
> Recently, two students working with Al Maneki managed to build a GPT
> that produces PreTeXt markup from either spoken mathematical text or
> from a PDF file. Not perfect, but pretty good: if a blind student is
> trying to get homework solutions to her professor or the professor
> trying to get the handout into an accessible form, this would go a long way.
>
> The hope is to use GPT (or some other AI tool) to generate a PreTeXt
> file from either spoken input or from a PDF, and then pass the PreTeXt
> file to codespace to get either braille or HTML (for the student) or PDF
> (with student's homework solutions).
>
> Maybe codespace is not the way to do it?
>
> Any information would be appreciated.
>
> Best regards,
>
> --Alexei
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
pretext-dev...@googlegroups.com <mailto:
pretext-
>
dev+uns...@googlegroups.com>.
> bbfc6568-c11a-4746-9355-2383930fc380n%
40googlegroups.com <https://
>
groups.google.com/d/msgid/pretext-dev/bbfc6568-
> c11a-4746-9355-2383930fc380n%
40googlegroups.com?
> utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to
pretext-dev...@googlegroups.com <mailto:
pretext-
>
dev+uns...@googlegroups.com>.
> CANXmVMDTJ8LH_%3DcZwDtE25uv3zAAvEmkK%2BjFj3zYi7BxA7WcJw%
40mail.gmail.com
> <
https://groups.google.com/d/msgid/pretext-dev/
> CANXmVMDTJ8LH_%3DcZwDtE25uv3zAAvEmkK%2BjFj3zYi7BxA7WcJw%
40mail.gmail.com?
> utm_medium=email&utm_source=footer>.