An open API service indexing awesome lists of open source software.

https://github.com/hakatashi/osekkai

日本語平文を組版に合わせて最適化する、出版史上最もお節介な機能
https://github.com/hakatashi/osekkai

javascript publication text-processing

Last synced: 6 months ago
JSON representation

日本語平文を組版に合わせて最適化する、出版史上最もお節介な機能

Awesome Lists containing this project

README

          

Osekkai
=======

[![Build Status][travis-img]][travis-url]
[![Coverage Status][codecov-img]][codecov-url]
[![Greenkeeper badge](https://badges.greenkeeper.io/hakatashi/osekkai.svg)](https://greenkeeper.io/)

[travis-img]: https://travis-ci.org/hakatashi/osekkai.svg?branch=master
[travis-url]: https://travis-ci.org/hakatashi/osekkai
[codecov-img]: https://codecov.io/gh/hakatashi/osekkai/branch/master/graphs/badge.svg
[codecov-url]: https://codecov.io/gh/hakatashi/osekkai/branch/master

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

## 理想

```
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年、世界は核の炎に包まれた! 
```