Code Monkey home page Code Monkey logo

genkoyoshi's Introduction

Genkō yōshi

Genkō yōshi (原稿用紙), also romanized at genkoyoshi, is a type of Japanese paper used for writing. It is printed with squares. There are typically 200 or 400 squares on each sheet. Each square designed to accommodate a single Japanese character or punctuation mark.

There are lots of PDFs available online but sometimes the squares are too big or too small, the page size is wrong, etc.

I found some good ones from Ed Halley at http://halley.cc/nihon/patterns.html These genkouyoushi PDFs gives a nice faint space for furigana. But, again. we will always want to have the posibility to adapt it to our own needs. So these Asymptote http://asymptote.sourceforge.net/ scripts with several parameters allow the customization of the page size, the size of the boxes, margins, line thickness and color, etc.

##Rules of use

While genkō yōshi can be used for horizontal writing, it is most commonly used for vertical writing, which is read from right to left. The first page is therefore the right hand side of the sheet. The title is placed on the first line, usually leaving two or three leading blank spaces. The author's name is placed on line 2, with an empty square or two below and an empty square between the given and family names. The first sentence begins on line 3 or 4.

In Japanese, each paragraph, including the first one, is usually indented by a square. However, when writing quoted text such as direct speech, the opening quotation mark (﹁ or ﹃ in vertical writing) is placed in the first square of the line.

Like printed vertical Japanese, full stops, commas, and small kana are placed in the top right corner of their own square All punctuation marks, other marks (such as parentheses), and small kana usually occupy their own square, unless this would place them at the top of a new line, in which case they share the last square of the previous line with the character in that square. (This is the kinsoku shori rule.) A full stop followed directly by closing quotation mark are written in one square.[1] A blank square is left after non-Japanese punctuation marks (such as exclamation points and question marks). Ellipses and dashes use two squares.

Furigana are written to the right of the relevant character, in small print.

Words, phrases, and sentences in Western characters (such as Roman letters) except acronyms like USA and NATO are often, but not always, written vertically by turning the page a quarter turn counterclockwise, so that when the page is viewed normally they are sideways. Each square can accommodate two Western characters.

Scripts usage

Then assuming you have already installed asymptote, the following command will generate a PDF file that you can print or share:

asy -f pdf traditional.asy

Note that en this example we use the traditional.asy file, this may differ in your case.

genkoyoshi's People

Contributors

carlosalvesuy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.