I HAVE NO CLUE HOW TO USE FORUMS I REALLY HOPE I POSTED THIS RIGHT
this was a very fun project that i actually used as my Python final!
view it at https://github.com/Turtlecodez/txttobasic/
it would be incredibly helpful if anyone with a monochrome-screen calculator could test this or look over the code, because i was only able to test this on my 84 Plus CE as I don't have any older calculators. :(
I might attempt to add support for epub files later on, maybe add a GUI, not sure.
this was very fun to make though!
again, if you guys find any errors or want to contribute to it, make a pull request, open an issue, or post something here
Seems to do what it says on the tin, though style-wise it would be good to split it up into multiple files, with your e-reader code being data instead of a string literal inside the main program.

Also, there are tools such as tivars_lib_py which can programmatically produce the final TI-BASIC file format, without the need for TI-Connect's text editor as a tokenizer.
I really wanted to use tivars_lib_py, but the documentation is extremely confusing and doesn't really just tell me "if you do this you can pop out a valid 8xp file into x directory". I'm also pretty new to python, so it's hard for me to figure these things out myself.
Did you read the README? It has an example of precisely what you want to do. There are also several other examples.
i believe i am legally blind
because i managed to miss that TWICE somehow
thank you for making me look at it again
update: i added usage of tivars_lib_py to the program, it now directly spits out an 8xp
update 2: i forgot that ti connect basically has a maximum file size it can transfer to the calculators, i am making my program split the file into multiple files if it's too chonky
it appears that it can handle around 145 different blocks total.
hopefully i'll have fixed that shortly
frootdaproot wrote:
update: i added usage of tivars_lib_py to the program, it now directly spits out an 8xp

Good work. FYI, you don't need to .export() the program since you already .save() it to disk.
an updoot that i'm sure a lot of people care about because this is like the most popular program on this forum frfr

it now implements TIvars to spit out an 8xp file instead of a txt file that you need to put through ti-connect
it now supports epub files
and i fixed the error that i somehow didn't catch by making it split too large files into different, smaller files

it is now ACTUALLY USABLE!!!! woooo yaay
i never ended up fixing the thing kg mentioned because um ... i'm not actually sure why
but i can confidently say i'm done with the program (that is, until someone mentions something that i might be able to add, well, then i'll just have to add it or else i won't be able to sleep at night)
minor update:
added more comments and stopped a certain function from spitting out warnings
i can now consider this done
if you have anything else you want me to add (or if monochrome calculator support doesn't work), please mention it 🙂
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement