Thank you very much for the reply!
I didn’t check this guide, went with the github instructions GitHub - kha-white/mokuro: Read Japanese manga inside browser with selectable text.
The only step I didn’t follow accordingly was downloading latest python since it didn’t work for me, so I went for 3.9.13
I have the ocr file, so I’ll try following the guide you sent
For windows, the “add to path” was checked but still got the “access denied”, it may be because of windows security system
Is there a way to delete everything I have done (installing Python 3.9, old version mokuro, homebrew) and redo the step but with the newest python and mokuro?
As a sanity check, can you open the _ocr and make sure there are JSON files created within it’s subfolders (not empty)? And to confirm, are you getting a .html file at least and just missing .mokuro? If so, do the html files open fine on the computers (not mobile!) browser?
If all that is good, try in the Terminal “mokuro --version” (no quotes, two dashes). the 0.2.1 release has that command tho my older fork I use (I like the .mobile.html) doesn’t support that command and errors out. Just to check that the latest is installed, as only 0.2 and up provide mokuro files.
If it doesn’t work and everything else above it good, probably wrong version. Uninstall with “pip3 uninstall mokuro” basically the opposite of how you installed. Then try the latest build.
Did you also check the “use admin privileges” box? That’s also required. I’m also assuming you are an admin user on your computer and not like a guest or child account.
The LazyGuide (scroll to local processing method) suggests a 3.10.xx version for python.
Python can be uninstalled like any other program via the GUI, at least on windows. Mokuro is in the command line “pip3 uninstall mokuro” Do this before removing python tho since you need pip.
I’ll try installing this version on a fresh computer later today (windows tho, maybe someone will come thru with a Mac in the meantime) and see if I run into anything funny.
I actually did everything all over again, but still python 3.13 did not work so I went for 3.9.13
and to install Mokuro I went for this command “pip3 install git+https://github.com/kha-white/mokuro.git@web-reader”
It worked just perfectly : now I am getting and OCR file (with json), an .html and a .mokuro file => and it works well on chrome
Now I am trying to make it work on my ipad, so I made a zip file, checked if there was any hidden file. No hidden file showed up, but it still doesn’t open on safari (ipad) edit ===> I used google drive to check my file and yes there is a MACOSX file, I don’t know why it does not show up in my finder since I use “show hidden files” option
As for windows the two were checked, I have seen online its due to malware/anti-virus that prevent from downloading
it’s hard
here what I got so far:
When I upload the .html file on chrome mokuro reader: it works but I can’t add it to my catalog, only a tab opens with the manga.
I can’t seem to find and the delete the MACOS hidden folder (its really well hidden)
I used my windows to create a zip file (checked on google drive, no hidden file), then upload it to chrome (mac) and safari (ipad), I get the folder but no images
ps: the zip file is created with the manga folder (JPG file), the .html and .mokuro file
I probably need to cool down my brain and come back to this later
Glad you got it (mostly) working!
Yeah some Mac users earlier in the thread had that issue too, and ended up using a script to remove it.
As a sanity check, make sure the zip is working on the reader when using windows before transferring. If not, something about the the zip isn’t right. If it is working, then it may be something specific to apple products.
A break is always useful
A break was needed lol I had seen the thread but couldn’t make the step in the link work. Now I see why, I didn’t scroll up to see the script “shame on me”
I made it work using MAC
In the future I’ll try to make it work on my windows, since my mac is already 10 years old and will probably die soon
Thank you very much Voi for your help and for being patient with this clueless
Glad you got it working! I’m not super computer savvy but I remember how frustrated I was trying to get mokuro working that first time so I’m glad to help.
Thank you!
Mokuro is really such a good tool for immersion, I am having a good time even tho I’m “studying”
I am having the same issue on iOS. I checked if I have hidden files and changed the file structure of the ZIP to match the expectation. Still, it does not work on any of my iOS devices.
Edit: I fixed it and it works now. I executed zip -d filename.zip __MACOSX/\*
and zip -d filename.zip \*/.DS_Store
on the zip file. The issue is that macOS creates these folders AFTER zipping the file. Hence, it is needed to execute the commands on the zipped file.
The OCR is good but holy moly the reader sucks eggs. Who thought it was a good idea to make scroll zoom, switch pages with an action, and then reset the zoom every time you switch pages. I fixed it by disabling JavaScript and adding this CSS. Now it is a single scrollable view of pages that relies on the browser’s zoom
CSS
body{
overflow: scroll;
}
.page{
display: flex !important;
margin-bottom: 10px;
}
#pagesContainer{
display: flex;
flex-direction: column;
}
a, #topMenu{
display: none !important;
}
.textBox{
opacity: 0.75;
}
Getting this weird error. Can anyone please assist in solving it? I installed Python from the official site (Python 3.6.0).
Edit: Seems to be working now after installing Python 3.8.0.
Can any of you talented people write a custom JavaScript to inject that allows the following:
Left Arrow Key - jumps to the pervious file
Right Arrow Key - jumps to the next file
Mouse Wheel Up - scrolls up
Mouse Wheel Down - scrolls down
I find the current navigation pretty counterintuitive, so having a classic navigation would be very appreciated.
Hey folks, I’ve been away but I commented on this thead a (shockingly) long time ago about a Mokuro editor/reader to fix the OCR output when reading manga output by Mokuro. And, well, I actually made the thing. I’ve been using it over the last 6ish months and I figured I should post it here in case it would be useful to others.
I’m not much of a frontend developer, but I’m pretty happy with what I made. You can find it here: Mokuro Reader. I needed to make a fork of the Mokuro project to make the changes necessary to get it all working, you can find that here: GitHub - bbonenfant/mokuro: Read Japanese manga inside browser with selectable text. There’s not a tutorial for how to use the web app (maybe if I get some spare time) but there’s a help page and some more info here: GitHub - bbonenfant/mokuro-reader: Web App for reading and editing Mokuro files
One thing to note upfront, surprisingly support for vertical text boxes varies depending on the browser. Firefox works perfectly, Chrome works mostly fine (but manually resizing text boxes is a bit broken), and Safari is the worst (trying to move your cursor around text boxes using the arrow keys is an adventure).
alrighty thinking about getting brave again…
so I had mokuro working on the laptop and after falling victim to the dreaded php version mess…got everything working a year ago or whatever it was
it happily makes files/folders like this for me:
however never got things working on my android tablet and seems like lots has changed since I originally setup mokuro a year ago ish… (now we have a ttsu equivalent)
but before I go back down the path of pain @ChristopherFritz you mentioned IIRC that don’t have to re-ocr … just need to rerun mokuro.
However, not really sure how to do that w/o messing things up and also my mokuro never made " .mokuro " files just html (unless i need to set a switch)
so what should be the least painful path forward?
Don’t really want to reinstall upgrade things and break everything…
----edit-----
(PRAYING)
----edit2-----
paranoid for nothing - whew!!!
haven’t linked the anki stuff but seems like it upgrading the old one worked!!!
if anyone needs to upgrade their mokuro
the command was “pip install mokuro --upgrade”
didn’t update or change any other packages, just did the upgrade ran fast and then re-ran mokuro
now just have to redo all the mokuro (thankfully kept all the ocr)
so should be just a dull process of telling mokuro to run again (but fast)
---- despair----
spoke too soon…thought would try with 3 images and it seemed to work but now back in error hell (booooo)
might be a project to sort out on the weekend
—will try one more time cuz why not still have reviews to do anyways
it did work but still have a question about using the reader app “https://reader.mokuro.app/”
but I had put these in a sub folder on my drive called “new to do mokuro” and then ran mokuro on the first sub folder and it succeeded the 2nd time (not sure why it died 13 images in, but the 2nd time it processed all 166).
So imported the .mokuro and zipped up the images to the reader but the file name ends up being the parent folder instead of the primary folder.
as an example:
wasn’t expecting this one - work around? or have to keep everything in the root of a drive?
I use ttsu regularly but haven’t used the mokuro reader app before (used to the html mokuro format) so…might be a dumb question but before I run through anymore new stuff and work through the older catalog…wanted to ask
---------------edit-----------------
figured it out, if you open the mokuro file in a text editor, it’s just the title and you can change it to whatever you want it seems.
It assumes the directory you are starting in is the title (which isn’t the best assumption) but at least it’s managable now. Though the mokuro version I am running is hella unstable, lots of crashes and have to rerun…the one I installed prior was rock solid. The one I get all kinds of random errors that cannot read the image or it’s missing the ocr… ugh of course it is you are supposed to be making it silly mokuro! These are new files never processed.
Anyway seems to be working, when it works (and can fix the titles now)
Is there an existing keyboard shortcut for jumping between files? I’m not a mokuro user so I just threw up a quick test file to look at your question with. This will let you page back and forth using the mousewheel, which I think is what you were asking for. If you hold down the shift key the old zoom behaviour will be used instead:
javascript:(function(){function simulateKeyPress(keyCode){const event=new KeyboardEvent('keyup',{key:keyCode===37?'ArrowLeft':'ArrowRight',keyCode:keyCode,which:keyCode,code:keyCode===37?'ArrowLeft':'ArrowRight',bubbles:true,cancelable:true});document.dispatchEvent(event)}document.addEventListener('wheel',function(event){if(event.shiftKey){return true;}event.preventDefault();event.stopPropagation();if(event.deltaY>0){simulateKeyPress(37)}else{simulateKeyPress(39)}return false},{capture:true,passive:false})})();
Notes: tested in Firefox, sometimes still scrolls for one click of the wheel after you load it but should work properly afterwards. This is not a “proper” fix for the reader keybindings - it just hijacks the mousewheel event, cancels it, and injects a left or right arrow key event instead.
Trouble in paradise. It seems like I won’t be recommending Amazon as a fairly easy way to buy books
Though I do wonder if this feature removal will be extended to the other way, where you’d just download the desktop kindle app and fetch the books from its download cache folder
I bought an old Kindle a few weeks ago specifically so I could do this I need to figure out if I can at least still download them in AZW3 from that particular device via Wifi…
so with this link:
I dont need to install on my pc any files? Just upload the pages in jpg and that’s all?