- Access to my Google Account (good luck).
- Up to date Google API credentials and token (credentials.json in ./app/ or a safer place).
- A virtual environment /w requirements installed:
Note: if something doesn't work, try moving stuff around, running commands from ./app/DocYoinker manually, or just activate the virtual environment manually and go ham & salami. Note 2: Remember to source your venv before trying to install shit from the terminal. It's a cheap and easy trip-up.
-
Put the GDoc Document object's JSON in a.json. - Option to check what docs are downloaded to not waste bandwith. (and also compare revisionId to see if there were any changes.)
- Save doc metadata somewhere.
- Make a stash of functions to handle different parts of it.
-
First, the hard part - search for all images and their positions (so,"hard part" lolPositionedObject's). - Download all of the images
../yoinkstash/pos_objs/and put their ID's into../yoinkstash/pos_objs/rawposobjs.json - Then grab all the text and tables.
-
- Find and put tables in a
../yoinkstash/tables/tables.json
- Find and put tables in a
- The rest goes to
../yoinkstash/text/rawtext.json -
- Develop some system to identify your headers and etc (initially only for Notebook Zero).
-
- Implement an separate general header segmenting system for non-Notebook-Zero notebooks.
-
-
- Split
rawtext.jsonintosegtext.json(segmented text). 09/11/24 NOTE: maybe that's stupid.
- Split
-
- Make the app into a CLI to control what it is supposed to do any given time.
- <❗> Everything stores its position!
- The first hellish attempt at trying to convert everything to XML
or even HTML... -
- <❗> ....but maybe converting the JSON data into a very decent XML format i can engineer is a better idea?
- Connect with Table of Contents; separate implementation!
- Fetch and load ToC data.
- Plug in chi Notes Bash scripts. (if it's worth it)
- Put chi Notes page numbers statistics into ToC.
- (❗ONLY when some initial GDoc export feat is done!!!) insert/"weave" omega Notes chapters/subchapters into chi Notes
-
- And then into psi Notes!
-
select <SERIES>/s‼️ IMPORTANT‼️ A general Ntb. selection system!!
- Have a core template for testing (ala
main.tex) and a Bash script that updates everything (mayhaps /w sed-diff-pipe tricks??) when something new is added to the doc format! - Comment block from-template-file Notebook identification.
-
select <SERIES>/ssave a document ID to working memory file - As above, select notebook updating.
-
listall(la) print big pretty formatted list of ALL table of contents -
select <SERIES>/ssave a sheet ID to working memory file -
list [SERIES]/llist (prettystyle) table of contents of the selected sheet -
listchapters [SERIES]/lc [SERIES]list all chapters in a selected Notebook series -
listsubchapters [SERIES] <CHAPTER>/lsc -
insert <section_number> [name]/i -
delete/das above -
update/uas above
