node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

osekkai

Osekkai

Build Status Coverage Status

日本語平文を組版に合わせて最適化する、日本語出版史上最強のお節介(予定)

理想

input: "199X年、世界は核の炎に包まれた!"
 
json: [
    {
        type: "upright",
        text: "1",
        original: "1"
    },
    {
        type: "upright",
        text: "9",
        original: "9"
    },
    {
        type: "upright",
        text: "9",
        original: "9"
    },
    {
        type: "upright",
        text: "X",
        original: "X"
    },
    {
        type: "plain",
        text: "年、世界は核の炎に包まれた"
    },
    {
        type: "upright",
        text: "!",
        original: "!"
    },
    {
        type: "margin",
        value: "full",
        original: ""
    }
]
 
plain: 199X年、世界は核の炎に包まれた!