# japanese-bookkeeping-svg Generate SVG files for Japanese style bookkeeping diagrams. ## Usage ``` gem install japanese-bookkeeping-svg ``` 仕訳 ```ruby require 'japanese-bookkeeping-svg' File.open('journal.svg', 'w') do |file| file.write JapaneseBookkeepingSVG.journalization( debits={ 現金預金: 4000 }, credits={ 売上: 2000, 売掛金: 2000 } ).to_s end ``` T字勘定 ```ruby require 'japanese-bookkeeping-svg' File.open('t-accounts.svg', 'w') do |file| file.write JapaneseBookkeepingSVG.t_accounts( '現金預金', debits={ 資本金: 10000 } credits={ 仕入: 2000, 普通預金: 1234, 諸口: 3456, 次月繰越: 3310 }, ).to_s end ``` ## License ``japanese-bookkeeping-svg`` is distributed under the terms of the MIT license (see LICENSE.txt).