This project is a web application that automatically arranges Japanese text based on the concepts of stepwise and tiered line text layouts. The goal is to enhance the reading experience by optimizing eye movement and increasing reading speed without sacrificing comprehension. This method is based on research in improving Japanese text layout for more efficient reading, focusing on segmenting text at natural linguistic units (bunsetsu) and applying various visual strategies.
- Automatic Text Layout: Users can input Japanese text, which the system analyzes and formats according to a stepped and tiered layout style, designed to optimize reading flow.
- Improved Reading Speed: By aligning text at natural linguistic breaks and structuring text with an incremental indentation, the system supports reading speeds up to 1.6 times faster compared to conventional layouts.
- Responsive Design: The layout dynamically adjusts based on the screen size to provide an optimal reading experience on any device.
- Text Input: Users input a block of Japanese text into the web application.
- Text Processing: The app processes the text using morphological analysis to break it into meaningful units (bunsetsu) and applies the tiered layout logic.
- Dynamic Layout Generation: The app dynamically applies CSS and JavaScript to display the text in a stepwise manner, with incremental indentation and other layout features designed to aid reading efficiency.
- User Experience: The user reads the text with the improved layout, enjoying a smoother eye movement and faster reading experience.
- Next.js 14(Approuter): Used to dynamically apply the tiered and stepped text layout in the browser.
- Typescript: A Javascript superset for types setting.
- Kuromoji(Morphological Analysis): A Javascript library For analyzing and breaking down the Japanese text into bunsetsu.
- SCSS: Provides flexible text formatting and responsive design.
- Shadcn/ui: A well-designed components styled by tailwindCSS.
- Vecel: Frontend Cloud provides the developer experience and infrastructure to build, scale, and secure a faster, more personalized web.
- GSAP: (Optional) For additional text animations, if enabled.
This project is based on research in optimizing Japanese text layouts for electronic reading devices. Key findings show that by adjusting line breaks and text alignment based on natural linguistic units, such as bunsetsu, reading speeds can be significantly improved without compromising comprehension.
The following research papers were instrumental in the development of this project:
- Kobayashi, J. "Development of Japanese Text Layout System for Improving Reading Speed".
- Kobayashi, J. "Stepped and Tiered Line Text Layout for Improving Reading Rate in Japanese Electronic Text Readers".
- Kobayashi, J. "Designing Japanese Text Layout for Efficient Reading".
To run the app locally:
-
Clone the repository:
git clone https://github.com/your-repo/text-layout-app.git cd text-layout-app
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
.
- Input your Japanese text in the text box.
- Press the "送信(Command + Enter)" button or press Command+Enter key for macOS, Ctrl+Enter for WindowsOS.
- The text will be displayed in the optimized stepped layout format with animation.
- Add support for various customization options (e.g., font size, color schemes).
- Incorporate support for right-to-left text layout for vertical Japanese text reading.
- Enable user-driven layout adjustments such as background color or line spacing.
This project is licensed under the MIT License.