# Script Request

**URL:** <https://community.wanikani.com/t/script-request/13717>\
**Category:** API And Third-Party Apps\
**Created:** [July 2, 2016, 3:34pm UTC](https://community.wanikani.com/t/script-request/13717 "2016-07-02T15:34:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![riccyjay](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/riccyjay/32/5221_2.png) [@riccyjay](https://community.wanikani.com/u/riccyjay)\
**Post date:** [July 2, 2016, 7:34am UTC](https://community.wanikani.com/t/script-request/13717/1 "2016-07-02T07:34:13Z")

</div>

I have a script for NHK easynews&nbsp;that allows me to turn on and off the furigana. It’s really useful. What I’d love now would be if someone could make roughly&nbsp;the same thing but&nbsp;for real books. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Hexagenic](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/hexagenic/32/290_2.png) [@Hexagenic](https://community.wanikani.com/u/Hexagenic)\
**Post date:** [July 2, 2016, 7:38am UTC](https://community.wanikani.com/t/script-request/13717/2 "2016-07-02T07:38:35Z")

</div>

I’ll need ten years and a research grant

---

<div class="post-metadata">

**Author:** ![Mempo](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/mempo/32/4886_2.png) [@Mempo](https://community.wanikani.com/u/Mempo)\
**Post date:** [July 2, 2016, 7:55am UTC](https://community.wanikani.com/t/script-request/13717/3 "2016-07-02T07:55:24Z")

</div>

> akranis said... I'll need ten years and a research grant

&nbsp;If the furigana need to be actual Japanese characters, then I bet it'll take at least twelve years.

---

<div class="post-metadata">

**Author:** ![riccyjay](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/riccyjay/32/5221_2.png) [@riccyjay](https://community.wanikani.com/u/riccyjay)\
**Post date:** [July 2, 2016, 8:11am UTC](https://community.wanikani.com/t/script-request/13717/4 "2016-07-02T08:11:30Z")

</div>

> Mempo said...
> 
> > akranis said... I'll need ten years and a research grant
> 
> &nbsp;If the furigana need to be actual Japanese characters, then I bet it'll take at least twelve years.

&nbsp;Just to clarify: it's more for the purpose of turning them&nbsp;_off_ in children's books and manga. Will that shorten development time?  
  
I actually tried making a script myself, but when I ran it on volume 1 of Dragonball, I kept ending up with a 'ripped pages' error.

---

<div class="post-metadata">

**Author:** ![Lostick](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/lostick/32/6678_2.png) [@Lostick](https://community.wanikani.com/u/Lostick)\
**Post date:** [July 2, 2016, 8:15am UTC](https://community.wanikani.com/t/script-request/13717/5 "2016-07-02T08:15:46Z")

</div>

Is real books a website/program or are you asking for something that can proactively scan your screen for kanji+furigana and remove the furigana part?

---

<div class="post-metadata">

**Author:** ![riccyjay](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/riccyjay/32/5221_2.png) [@riccyjay](https://community.wanikani.com/u/riccyjay)\
**Post date:** [July 2, 2016, 8:37am UTC](https://community.wanikani.com/t/script-request/13717/6 "2016-07-02T08:37:23Z")

</div>

> Lostick said... Is real books a website/program or are you asking for something that can proactively scan your screen for kanji+furigana and remove the furigana part?

&nbsp;Real Books is a task I've been running IRL for decades now. After an initial 5-7 years of difficulty, I hadn't&nbsp;had any real problems with it&nbsp;until recently - when&nbsp;I started trying it in Japanese.

---

<div class="post-metadata">

**Author:** ![Mempo](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/mempo/32/4886_2.png) [@Mempo](https://community.wanikani.com/u/Mempo)\
**Post date:** [July 2, 2016, 8:53am UTC](https://community.wanikani.com/t/script-request/13717/7 "2016-07-02T08:53:01Z")

</div>

> riccyjay said...
> 
> > Mempo said...
> > 
> > > akranis said... I'll need ten years and a research grant
> > 
> > &nbsp;If the furigana need to be actual Japanese characters, then I bet it'll take at least twelve years.
> 
> &nbsp;Just to clarify: it's more for the purpose of turning them&nbsp;_off_ in children's books and manga. Will that shorten development time?  
>   
> I actually tried making a script myself, but when I ran it on volume 1 of Dragonball, I kept ending up with a 'ripped pages' error.

&nbsp;Ow, bummer. That's gonna take ages to debug. Have you tried catching the error, or just ignore it?

---

<div class="post-metadata">

**Author:** ![riccyjay](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/riccyjay/32/5221_2.png) [@riccyjay](https://community.wanikani.com/u/riccyjay)\
**Post date:** [July 2, 2016, 9:03am UTC](https://community.wanikani.com/t/script-request/13717/8 "2016-07-02T09:03:32Z")

</div>

> Mempo said...
> 
> > riccyjay said...
> > 
> > > Mempo said...
> > > 
> > > > akranis said... I'll need ten years and a research grant
> > > 
> > > &nbsp;If the furigana need to be actual Japanese characters, then I bet it'll take at least twelve years.
> > 
> > &nbsp;Just to clarify: it's more for the purpose of turning them&nbsp;_off_ in children's books and manga. Will that shorten development time?  
> >   
> > I actually tried making a script myself, but when I ran it on volume 1 of Dragonball, I kept ending up with a 'ripped pages' error.
> 
> &nbsp;Ow, bummer. That's gonna take ages to debug. Have you tried catching the error, or just ignore it?

&nbsp;I did catch the error. But since I couldn't work out how to fix it I just used the source as&nbsp;kindling.

---

<div class="post-metadata">

**Author:** ![crihak](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/crihak/32/6630_2.png) [@crihak](https://community.wanikani.com/u/crihak)\
**Post date:** [July 2, 2016, 9:11am UTC](https://community.wanikani.com/t/script-request/13717/9 "2016-07-02T09:11:27Z")

</div>

This is something of a hack, I admit, but try this:  
  
function hideFurigana() {  
&nbsp; &nbsp;&nbsp;int squintFactor = 0; // 0 = no squinting  
&nbsp;&nbsp;&nbsp;&nbsp;while (book.read().checkFuriganaVisible()) {  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;squintFactor++;  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;foreach (eyeLid in body.getEyelids()) {  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;eyeLid.setSquintFactor(squintFactor);  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}  
&nbsp; &nbsp;&nbsp;}  
&nbsp; &nbsp; // Oops! Squinted too much! Better unsquint a bit  
&nbsp; &nbsp; if (!book.read().checkKanjiVisible()) {  
&nbsp; &nbsp; &nbsp; &nbsp; squintFactor–;  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;foreach (eyeLid in body.getEyelids()) {  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;eyeLid.setSquintFactor(squintFactor);  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}  
&nbsp; &nbsp; }  
}  
  
function showFurigana() {  
&nbsp; &nbsp; // Reset squint factor  
&nbsp; &nbsp; foreach (eyeLid in body.getEyelids()) {  
&nbsp; &nbsp; &nbsp; &nbsp; eyeLid.setSquintFactor(0);  
&nbsp; &nbsp; }  
}  
  
Also, I’m not used to coding without continuous debugging, so if you encounter any bugs, let me know and I’ll try to get them fixed in the next version.

---

<div class="post-metadata">

**Author:** ![rfindley](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/rfindley/32/35202_2.png) [@rfindley](https://community.wanikani.com/u/rfindley)\
**Post date:** [July 2, 2016, 9:29am UTC](https://community.wanikani.com/t/script-request/13717/10 "2016-07-02T09:29:13Z")

</div>

> crihak said...Also, I'm not used to coding without continuous debugging, so if you encounter any bugs, let me know and I'll try to get them fixed in the next version.

&nbsp;If he encounters a bug, he can just close the book and reopen it again. &nbsp;That'll squash it.

---

<div class="post-metadata">

**Author:** ![Calfuray](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/calfuray/32/7183_2.png) [@Calfuray](https://community.wanikani.com/u/Calfuray)\
**Post date:** [July 2, 2016, 9:44am UTC](https://community.wanikani.com/t/script-request/13717/11 "2016-07-02T09:44:02Z")

</div>

> crihak said... This is something of a hack, I admit, but try this:  
>   
> function hideFurigana() {  
> &nbsp; &nbsp;&nbsp;int squintFactor = 0; // 0 = no squinting  
> &nbsp;&nbsp;&nbsp;&nbsp;while (book.read().checkFuriganaVisible()) {  
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;squintFactor++;  
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;foreach (eyeLid in body.getEyelids()) {  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;eyeLid.setSquintFactor(squintFactor);  
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}  
> &nbsp; &nbsp;&nbsp;}  
> &nbsp; &nbsp; // Oops! Squinted too much! Better unsquint a bit  
> &nbsp; &nbsp; if (!book.read().checkKanjiVisible()) {  
> &nbsp; &nbsp; &nbsp; &nbsp; squintFactor--;  
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;foreach (eyeLid in body.getEyelids()) {  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;eyeLid.setSquintFactor(squintFactor);  
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}  
> &nbsp; &nbsp; }  
> }  
>   
> function showFurigana() {  
> &nbsp; &nbsp; // Reset squint factor  
> &nbsp; &nbsp; foreach (eyeLid in body.getEyelids()) {  
> &nbsp; &nbsp; &nbsp; &nbsp; eyeLid.setSquintFactor(0);  
> &nbsp; &nbsp; }  
> }  
>   
> Also, I'm not used to coding without continuous debugging, so if you encounter any bugs, let me know and I'll try to get them fixed in the next version.

&nbsp;You're brilliant XD

---

<div class="post-metadata">

**Author:** ![crihak](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/crihak/32/6630_2.png) [@crihak](https://community.wanikani.com/u/crihak)\
**Post date:** [July 2, 2016, 9:45am UTC](https://community.wanikani.com/t/script-request/13717/12 "2016-07-02T09:45:14Z")

</div>

> rfindley said...
> 
> > crihak said...Also, I'm not used to coding without continuous debugging, so if you encounter any bugs, let me know and I'll try to get them fixed in the next version.
> 
> &nbsp;If he encounters a bug, he can just close the book and reopen it again. &nbsp;That'll squash it.

Yeah, or restart his nervous system.&nbsp;

---

<div class="post-metadata">

**Author:** ![anon8814123](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/wanikanicommunity/original/3X/f/d/fd4c154120954695f788402f3bcf4e616499bc2d.png) [@anon8814123](https://community.wanikani.com/u/anon8814123)\
**Post date:** [July 2, 2016, 10:14am UTC](https://community.wanikani.com/t/script-request/13717/13 "2016-07-02T10:14:50Z")

</div>

> crihak said...
> 
> > rfindley said...
> > 
> > > crihak said...Also, I'm not used to coding without continuous debugging, so if you encounter any bugs, let me know and I'll try to get them fixed in the next version.
> > 
> > &nbsp;If he encounters a bug, he can just close the book and reopen it again. &nbsp;That'll squash it.
> 
> Yeah, or restart his nervous system.&nbsp;

&nbsp;I recommend electric-shock therapy using 2000 volts of electricity. Can confirm 100% safe.  

![](https://global.discourse-cdn.com/wanikanicommunity/original/3X/b/8/b80fc33fb2edd7f0ecc2dd5d452642ac132cc2ad.gif)

---

<div class="post-metadata">

**Author:** ![riccyjay](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/riccyjay/32/5221_2.png) [@riccyjay](https://community.wanikani.com/u/riccyjay)\
**Post date:** [July 2, 2016, 2:58pm UTC](https://community.wanikani.com/t/script-request/13717/14 "2016-07-02T14:58:13Z")

</div>

> Calfuray said...
> 
> > crihak said... This is something of a hack, I admit, but try this:  
> >   
> > function hideFurigana() {  
> > &nbsp; &nbsp;&nbsp;int squintFactor = 0; // 0 = no squinting  
> > &nbsp;&nbsp;&nbsp;&nbsp;while (book.read().checkFuriganaVisible()) {  
> > &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;squintFactor++;  
> > &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;foreach (eyeLid in body.getEyelids()) {  
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;eyeLid.setSquintFactor(squintFactor);  
> > &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}  
> > &nbsp; &nbsp;&nbsp;}  
> > &nbsp; &nbsp; // Oops! Squinted too much! Better unsquint a bit  
> > &nbsp; &nbsp; if (!book.read().checkKanjiVisible()) {  
> > &nbsp; &nbsp; &nbsp; &nbsp; squintFactor--;  
> > &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;foreach (eyeLid in body.getEyelids()) {  
> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;eyeLid.setSquintFactor(squintFactor);  
> > &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}  
> > &nbsp; &nbsp; }  
> > }  
> >   
> > function showFurigana() {  
> > &nbsp; &nbsp; // Reset squint factor  
> > &nbsp; &nbsp; foreach (eyeLid in body.getEyelids()) {  
> > &nbsp; &nbsp; &nbsp; &nbsp; eyeLid.setSquintFactor(0);  
> > &nbsp; &nbsp; }  
> > }  
> >   
> > Also, I'm not used to coding without continuous debugging, so if you encounter any bugs, let me know and I'll try to get them fixed in the next version.

&nbsp;This looks great, but how should I run it? I tried scrawling it in block characters across the pages with a maker pen but all I got was an obscured reading.  
  
(Also this:)  
  

> Calfuray said...&nbsp;You're brilliant XD

---

<div class="post-metadata">

**Author:** ![Mempo](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/mempo/32/4886_2.png) [@Mempo](https://community.wanikani.com/u/Mempo)\
**Post date:** [July 2, 2016, 5:45pm UTC](https://community.wanikani.com/t/script-request/13717/15 "2016-07-02T17:45:12Z")

</div>

> riccyjay said...
> 
> > Calfuray said...
> > 
> > >
> 
> &nbsp;This looks great, but how should I run it? I tried scrawling it in block characters across the pages with a maker pen but all I got was an obscured reading.

&nbsp;Try to find any unused USB-ports on your body. If you don't have any available, there's also a hacky alternative. Because the program is so small, you could try to load it onto a floppy disk. After that, you need to crack one of your output ports so it accepts the floppy as input device. I've heard this is an unpleasant, yet necessary part of the process. You may have to apply some force for this to work. After that, rebooting the BODIES and clearing the eyes of any fluids created during the installation process should do the trick. Good luck!

---

<div class="post-metadata">

**Author:** ![crihak](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/crihak/32/6630_2.png) [@crihak](https://community.wanikani.com/u/crihak)\
**Post date:** [July 3, 2016, 4:15am UTC](https://community.wanikani.com/t/script-request/13717/16 "2016-07-03T04:15:42Z")

</div>

> Danny1145 said...
> 
> > crihak said...
> > 
> > > rfindley said...
> > > 
> > > > crihak said...Also, I'm not used to coding without continuous debugging, so if you encounter any bugs, let me know and I'll try to get them fixed in the next version.
> > > 
> > > &nbsp;If he encounters a bug, he can just close the book and reopen it again. &nbsp;That'll squash it.
> > 
> > Yeah, or restart his nervous system.&nbsp;
> 
> &nbsp;I recommend electric-shock therapy using 2000 volts of electricity. Can confirm 100% safe.  
> 
> ![](https://global.discourse-cdn.com/wanikanicommunity/original/3X/b/8/b80fc33fb2edd7f0ecc2dd5d452642ac132cc2ad.gif)

&nbsp;This seems completely legit and I fully support this method.

---

<div class="post-metadata">

**Author:** ![Hisao](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/hisao/32/3089_2.png) [@Hisao](https://community.wanikani.com/u/Hisao)\
**Post date:** [July 3, 2016, 5:46am UTC](https://community.wanikani.com/t/script-request/13717/17 "2016-07-03T05:46:04Z")

</div>

As always, there’s a relevant XKCD strip:  
[http://xkcd.com/1425/](http://xkcd.com/1425/)

---

<div class="post-metadata">

**Author:** ![Gorgophone](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/gorgophone/32/6887_2.png) [@Gorgophone](https://community.wanikani.com/u/Gorgophone)\
**Post date:** [July 3, 2016, 12:39pm UTC](https://community.wanikani.com/t/script-request/13717/18 "2016-07-03T12:39:56Z")

</div>

> Mempo said...
> 
> > riccyjay said...
> > 
> > > Calfuray said...
> > > 
> > > >
> > 
> > &nbsp;This looks great, but how should I run it? I tried scrawling it in block characters across the pages with a maker pen but all I got was an obscured reading.
> 
> &nbsp;Try to find any unused USB-ports on your body. If you don't have any available, there's also a hacky alternative. Because the program is so small, you could try to load it onto a floppy disk. After that, you need to crack one of your output ports so it accepts the floppy as input device. I've heard this is an unpleasant, yet necessary part of the process. You may have to apply some force for this to work. After that, rebooting the BODIES and clearing the eyes of any fluids created during the installation process should do the trick. Good luck!

&nbsp;I tried this but now my eyes won't stop squinting and I can't find an eject button for the floppy.

---

<div class="post-metadata">

**Author:** ![Mempo](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/mempo/32/4886_2.png) [@Mempo](https://community.wanikani.com/u/Mempo)\
**Post date:** [July 3, 2016, 1:47pm UTC](https://community.wanikani.com/t/script-request/13717/19 "2016-07-03T13:47:25Z")

</div>

> Gorgophone said...
> 
> > Mempo said...
> > 
> > > riccyjay said...
> > > 
> > > > Calfuray said...
> > > > 
> > > > >
> > > 
> > > &nbsp;This looks great, but how should I run it? I tried scrawling it in block characters across the pages with a maker pen but all I got was an obscured reading.
> > 
> > &nbsp;Try to find any unused USB-ports on your body. If you don't have any available, there's also a hacky alternative. Because the program is so small, you could try to load it onto a floppy disk. After that, you need to crack one of your output ports so it accepts the floppy as input device. I've heard this is an unpleasant, yet necessary part of the process. You may have to apply some force for this to work. After that, rebooting the BODIES and clearing the eyes of any fluids created during the installation process should do the trick. Good luck!
> 
> &nbsp;I tried this but now my eyes won't stop squinting and I can't find an eject button for the floppy.

&nbsp;Pretty sure there are pills for that. Ask the nearest doctor and/or IT nerd for 'eject pills'

---

<div class="post-metadata">

**Author:** ![crihak](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/crihak/32/6630_2.png) [@crihak](https://community.wanikani.com/u/crihak)\
**Post date:** [July 4, 2016, 4:06am UTC](https://community.wanikani.com/t/script-request/13717/20 "2016-07-04T04:06:12Z")

</div>

> Gorgophone said...
> 
> > Mempo said...
> > 
> > > riccyjay said...
> > > 
> > > > Calfuray said...
> > > > 
> > > > >
> > > 
> > > &nbsp;This looks great, but how should I run it? I tried scrawling it in block characters across the pages with a maker pen but all I got was an obscured reading.
> > 
> > &nbsp;Try to find any unused USB-ports on your body. If you don't have any available, there's also a hacky alternative. Because the program is so small, you could try to load it onto a floppy disk. After that, you need to crack one of your output ports so it accepts the floppy as input device. I've heard this is an unpleasant, yet necessary part of the process. You may have to apply some force for this to work. After that, rebooting the BODIES and clearing the eyes of any fluids created during the installation process should do the trick. Good luck!
> 
> &nbsp;I tried this but now my eyes won't stop squinting and I can't find an eject button for the floppy.

Did you try to run showFurigana()? That one should reset the squinting, but maybe I need to have another look at the documentation, I may be calling the wrong method... Nevertheless, rest assured that&nbsp;I have noted the bug and will work towards resolving it if I ever release a bug fix!  
  
In the meantime, did you try the electroshock therapy method for restarting your nervous system?
