Commit Graph

68 Commits

Author SHA1 Message Date
dan
677f430dd5 updated readme 2024-08-29 19:33:01 -05:00
Daniel Jones
d79f2658d4 fixed Cargo.toml field 2023-11-20 08:54:11 -06:00
Daniel Jones
a5400a841e updated documentation to get ready to publish to crates.io 2023-11-20 08:49:44 -06:00
c0c02ba073 added some notifications to alert user to errors. 2023-11-18 18:36:13 +00:00
6275b255d5 updated documentation headers for better readability. 2023-11-18 17:34:03 +00:00
d27a7b4ac6 added previous page button and bookmark button. Base functionality completed. Now is time for quality control and bug fixing. 2023-11-18 17:28:30 +00:00
5956afc314 added previous page button and bookmark button. Base functionality completed. Now is time for quality control. 2023-11-18 17:27:25 +00:00
7e29e89a78 added rudementary page turning. Updated description. Previous pages unavailable, next goal in mind. 2023-11-18 16:07:44 +00:00
Daniel Jones
bdb41ccbd2 Added documentation and made compilable for testing reasons 2023-11-14 16:53:08 -06:00
Daniel Jones
c627c95363 Tried a few things out, learned that page_num will outlive s. This causes the program to crash. Because of this, I will have page_num save to a file and open it when needed. That way it will not outlive S, and automatic bookmarking will already be implemented.
Does not run as-is, need to clean up and refactor code to fix the bugs.
2023-11-03 11:44:56 -05:00
Daniel Jones
2670e6ffd4 page turning figured out. Must make get_text recursive so that you can call it again once you are done reading. 2023-11-03 11:27:38 -05:00
Daniel Jones
87cdb7239e Figured out how to call a function upon pressing a button without throwing an error.
Solution: Open the file every time the button is pressed and go to specified page. File outlasts s function, so error called every time function is called.
2023-11-03 11:21:56 -05:00
Daniel Jones
e5b8490128 firgured out scrolling 2023-10-24 14:57:52 -05:00
Daniel Jones
4da4809969 firgured out scrolling 2023-10-24 14:57:04 -05:00
Daniel Jones
7bb7b3deb1 Working on getting scrolling working so that you can read the whole page 2023-10-15 00:23:54 -05:00
Daniel Jones
93eadf68c8 set termion as backend, curses as frontend.
setup for new page turning system to accomodate cursive
2023-10-14 22:06:56 -05:00
Daniel Jones
af933bbc0b Created initial display 2023-10-14 18:23:13 -05:00
dan
84f86e1d77 Fixed stack underflow bug. Must find more elegant solution later. 2023-09-02 15:36:26 -05:00
dan
0c231d8fed - Full Terminal Size now used
- Still working on getting newlines working
2023-09-02 15:21:36 -05:00
Daniel Redd Jones
227b47f4d3 - Added page turning
TODO: add scrolling and newline support
2023-07-27 18:56:14 -05:00
Daniel Redd Jones
8cef3a5c8c - Created library directory with exception check.
- Added page display for TUI
2023-07-27 18:23:41 -05:00
Daniel Redd Jones
68a862cb5a - Added q as quit button 2023-07-24 18:40:33 -05:00
Daniel Redd Jones
3d8bc47cf3 - figured out TUIkit printing 2023-07-24 18:36:08 -05:00
Daniel Jones
2fe2421e6d - Refactored code to return text
- This is to make sending data to the TUI easier
2023-07-20 10:28:40 -05:00
Daniel Redd Jones
305b74abd3 test push 2023-07-19 22:48:51 -05:00
Daniel Jones
a2777e0737 - Updated documentation 2023-06-28 14:10:07 -05:00
Daniel Jones
e93cf49694 - Updated README.md formatting 2023-06-28 13:53:05 -05:00
Daniel Jones
dfce66abc5
Create rust.yml 2023-06-28 13:45:31 -05:00
Daniel Jones
6223dbc5fd
Create README.md 2023-06-28 13:28:22 -05:00
Daniel Jones
e3fa7d856f - str_content is now a tuple as required by the epub library update
- changed html_module(str_content); to html_module::main(str_content.0); to fix bug that was created by the update.
2023-06-28 13:15:01 -05:00
Daniel Jones
326ddfcddc Merging scraper branch to main. 2023-06-28 13:07:21 -05:00
Daniel Jones
addc510b73 Merge branch 'master' into scraper_framework 2023-06-28 12:59:00 -05:00
Daniel Jones
47cf88ef55 - Can now format HTML
- No longer returns to main.rs. Main function in html_module.rs now reads to console locally.
2023-06-28 12:53:13 -05:00
Daniel Jones
fd9ce23a96 Commit to scraper_framework branch
- changing framework from Soup to Scraper
 - removed ncurses library. Will use different library instead.
2023-06-28 12:16:21 -05:00
Daniel Jones
65b7e5ecc0 Commit to scraper_framework branch
- changing framework from Soup to Scraper
 - removed ncurses library. Will use different library instead.
2023-06-28 12:16:04 -05:00
Daniel Redd Jones
13d6b85165 Updated epub library to latest version 2023-05-29 17:41:05 -05:00
Daniel Redd Jones
471f435269 Added basic ncurses functionality 2023-05-29 16:44:05 -05:00
Daniel Jones
a1f2b96b98
Delete pg8800.epub
Not needed in main branch.
2023-05-20 20:53:59 -05:00
Daniel Jones
b2ace05ae3 Modified .gitignore 2023-05-20 20:51:03 -05:00
Daniel Jones
d70f3aa14a added ncurses library, module, and documentation. 2023-05-20 20:03:54 -05:00
Daniel Jones
e5f65f66f9 Page turning 2023-05-20 18:44:13 -05:00
Daniel Redd Jones
7e626d1c29 Added todo to remind myself to switch up the library. For now it is working, but it will not on a future version of Rust. Must find replacement for Soup in the future. 2023-05-19 19:13:38 -05:00
Daniel Redd Jones
31fcab91e5 removed regex library, as I thought I would need it but did not 2023-05-19 18:47:21 -05:00
Daniel Redd Jones
5418a2b7c6 Figured out HTML rendering, backing up just in case if I mess something up in the future. 2023-05-19 18:44:10 -05:00
Daniel Redd Jones
f491225902 Getting error "assertion failed" when running. Backing up to github until I figure something out. 2023-05-19 18:15:48 -05:00
Daniel Jones
14eb1a482e Got the string passed to the HTML Module. Content is <String, Error> so I unwrapped it and saved the value as only a string. Tomorrow I parse the HTML in html_module. 2023-05-18 22:01:14 -05:00
Daniel Jones
e7dfddc8f8 Added HTML framework and module.
Found HTML crate. This crate will allow me to render the HTML syntax to the TUI.
2023-05-15 13:33:14 -05:00
Daniel Jones
0426525804 Page turning
Not working. Calling it a night. Will figure out page turning tomorrow.
2023-05-01 20:35:42 -05:00
Daniel Jones
0dc6e19dd1 grab epub text
Got it to grab the text. It is formatted as HTML so next step is to parse that.
2023-05-01 19:26:22 -05:00
Daniel Jones
383457db62 Added epub functions
Still not properly grabbing the text, but must leave it for now. Uploading to Github for later access.
2023-05-01 15:31:08 -05:00