Closed kendonB closed 4 years ago
This is already been implemented and you can experiment with the following file printing out to the natlike status window. configdebug.txt
Instructions to use configdebug.txt on the latest version of Caster Development branch.
Edit or replace configdebug.txt in C:\Users\%USERNAME%\.caster\data Then say refresh debug file to load the debug grammar.
Note: After enabling say "generate token" then replace the token in configdebug.txt for security purposes.
python PyLaTeX.py
to generate PDF.
miktex MiKTeX is a distribution of the TeX/LaTeX typesetting system for Microsoft Windows. This might need to be installed to generate the PDF. Someone might have to test that as I already have it installed for generating the PDF using CasterQuickReference.tex through Texmaker.
We can use CasterQuickReference.tex as a guide to re-create the structure in PyLaTeX.
Most of the CasterQuickReference.tex
outside of formatting subsections consists of \command{Command Name}{printed result}
We delineated each subsection by grammar name from rpc. Then for each grammar name store in variables the rules in the grammar along with any special formatting for that section like a footer and so forth.
Some groundwork may need to be laid within Caster such as consistent grammar names and so forth.
Is it necessary to continue using the .tex file? That approach is nice for printing stuff out on paper but a simple .md is much easier to deal with. Given we have "bring me" now, pulling up an arbitrary doc page is fast and easy ("bring me python docs", for example).
Is it necessary to continue using the .tex file? That approach is nice for printing stuff out on paper but a simple .md is much easier to deal with. Given we have "bring me" now, pulling up an arbitrary doc page is fast and easy ("bring me python docs", for example).
Yes it is much easier to utilize .md
, However is very limited in terms of actual formatting. Markdown doesn't have no header or footer with notations that help us explain complex commands. In addition .tex
allows for clean customizable tables.
All that being said if you can create .md
documentation that's capable of displaying complex commands and looks decent I would be interested! Then we could try formulating this automation with .md instead.
So footnotes are a bit awkward to code up but are possible:
It looks like a start ! I'll have to give it a closer look in a couple weeks when I'm finished up with my program. We will have to see if it scales to quick reference versus the application quick reference.
closing this in favor of https://github.com/dictation-toolbox/Caster/issues/234
If so, how? If not, how might we?