Reading vertically: scroll position out of control
Configuration: Windows 10, Lute v. 3.10.1 installed via pip
Hello. The traditional way to write Japanese, Chinese and Korean is in lines written vertically from top to bottom, with those lines ordered on the page starting on the right side of the page and moving towards the left side of the page. I have been learning Japanese for a long while and have always been reading Japanese in the traditional way because I greatly enjoy it. I also do the same thing every day with Lute by changing the way the reading screen text is displayed via the Settings screen's CSS text box.
Several Lute versions ago, we got the update that maintains the reading screen's scroll position when creating a multi-word (or multi-character) term and moves the reading screen's scroll position to the beginning of the page when turning the page. Unfortunately these do not apply when reading vertically, so the reading screen's scroll position jumps all over the place when I create a multi-character term and when I turn the page. This feels jarring and unpleasant. It would be great if we could please have this update applied to vertical reading as well, so that the user can have the ability to fully enjoy reading Japanese, Chinese and Korean either in the traditional way or in the modern way depending on their preference.
Below is the CSS I have been using to make the reading screen's text be displayed in the proper manner for reading Japanese/Chinese/Korean in the traditional way (it has been tested with Japanese, Chinese and Korean and works as intended). The width and the max height may need tweaking depending on personal preference.
div#read_pane_left > div#thetext { width: 90%; max-height: 67%; writing-mode: vertical-rl; text-orientation: upright; overflow: auto; }
It could be useful to include a vertical reading option in each language's settings screen, as a tick box. Then, if a user is learning Japanese, Chinese or Korean and wishes to read in the traditional way, they could easily switch by ticking that box (or perhaps a vertical reading tick box plus the right-to-left tick box). This would make things easier for users who have little or no knowledge of coding.
Thank you for your excellent software.
That's nice CSS work, @Inquisitor-Ignotorum , thanks for mentioning it! I too liked reading Japanese vertically, it feels more fun for some reason.
Right, vertical makes sense. It's too bad that I didn't "lock down" certain languages, it (might?) would simplify adding some features like this.
I'm not sure at the moment how to fix this for vertical reading, but perhaps someone smarter than I will see this issue and will have an idea. Cheers!