I think it may be in the CLI.
But you need to install liblouis, and setup the Python bindings. The README for liblouis explains the binding setup, and I recently contributed updates to that.
Rob
On December 15, 2025 8:00:00 PM MST, David Austin <
david.a...@gmail.com> wrote:
>I'm pretty sure the braille conversion is not available through the CLI.
>You'll need to use the pretext/pretext script. Write back if you need help
>with that.
>
>David
>
>On Mon, Dec 15, 2025 at 9:30 PM Michael Duffy <
mjbmicha...@gmail.com>
>wrote:
>
>> I've been trying to use WSL to get Braille output from the CLI.
>>
>> I have added *<target name="braille" format="braille"
>> braille-mode="emboss"/>* to the project.ptx manifest. Then, running *pretext
>> build braille* gives the error
>> critical: The "louis" module, providing Python bindings for LibLouis, is
>> required for Braille output. See the PreTeXt Guide for instructions.
>>
>> I have *liblouis-3.36.0*,* liblouisutdml*, *libxml2* unzipped from their
>> tarballs into my *~/*, and am able to use *lou_translate* as a command,
>> for example. So I know I have the louis module somewhere.
>>
>> *$ pip install louis *tells me
>> This environment is externally managed
>> with the recommendation to run *$ apt install python3-louis* (altho I
>> need to run this as sudo apt),* $ python3 -m venv myenv*, or *$* *pip
>> install louis* *--break-system-packages*.
>>
>> *$ sudo apt install python3-louis* tells me
>> python3-louis is already the newest version (3.29.0-1build1)
>>
>> I run *$* *python3 -m venv myenv *and then *$ source myenv/bin/activate *and
>> then *$* *pip install louis*, and since I've already done it in this
>> venv, it tells me
>> Requirement already satisfied: louis in
>> ./myenv/lib/python3.12/site-packages (1.3)
>> Still I get the same error when I run *(myenv) $ pretext build braille *(i.e.
>> the same build command but inside the venv).
>>
>> *$ pip install louis* *--break-system-packages *tells me
>> Requirement already satisfied: louis in /usr/lib/python3/dist-packages
>> (3.29.0)
>> and when I run *$ cd /usr/lib/python3/dist-packages*, I find the
>> directories *louis* and *louis-3.29.0.egg-info*.
>>
>> So I do in fact have *louis* installed in my WSL machine. My question:
>> <
https://groups.google.com/d/msgid/pretext-dev/8728d85b-8ac6-4581-8c06-ff06e4452641n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>