Skip to content

Instantly share code, notes, and snippets.

View hidaruma's full-sized avatar
💭
🤔

Tatsuro YOKOTA hidaruma

💭
🤔
  • Japan
View GitHub Profile
@hidaruma
hidaruma / 編集者が知っているべきIT技術
Last active April 15, 2023 18:14
Drink Driven Documentize 怪文書
---
date: 2023-04-15
author: hidaruma
---
# 編集者が知っているべきIT技術
## Preface
> 「原稿はソフトウェアである。」
> -- @golden_lucky 2023-04-14
@hidaruma
hidaruma / Makefile
Created June 6, 2020 17:41
Change args if Inkscape version is 1.0
INKSCAPE_VERSION =$(shell inkscape --version | cut -f 2 --delim=" ")
%.png %.svg:
ifeq '${INKSCAPE_VERSION}' "1.0"
inkscape -D --export-filename=$@ $<-tmp.svg
else
inkscape -D --export-png=$@ $<-tmp.svg
endif
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEmbedAllFonts=true -sOutputFile=$YOUR_OUTPUT_FILE.pdf -f $YOUR_INPUT_FILE.pdf
# ghostscriptの少なくともUbuntuでは、日本語フォント埋め込みを指定された際に該当のフォントが無いと次にfonts-japanese-(mincho|gothic)-ttfを探し、
# 最終的にDroidSansにフォールバックするのが現行の動作らしい。で、fonts-japanese-***-ttfはaptでtakaoなどを入れたときに設定される。
# 自力でフォント指定できてもいいはずだが、単なるリンクなのかよく分からん。
@hidaruma
hidaruma / sphinx-jsbook-mod.sty
Last active July 5, 2019 05:36
Sphinx LaTeX modify stylefile.
% sphinx-jsbook-mod.sty
%
% by hidaruma <hidaruma@outlook.jp>
%
% Please load after sphinx.sty. Cause this sty using some macros in sphinx.sty
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{sphinx-jsbook-mod}[2019/07/05 v0.0.1 LaTeX package (Sphinx markup)]
@hidaruma
hidaruma / Nemunoki_poem.md
Last active March 13, 2019 16:12
Nemunoki_poem.md

Nemunoki

intro

kagomeを使って(形態素解析を使って)校正補助ツールがつくりたいモチベーション。 処理のモデルで躓いていたのが技術書典5の記事の前半。あれ削ったらすぐ出せるけど、あれの完成度が上がらなくてまだ出せていない。 SudachiのGo実装を作った話が流れてきて思いだした。

最近はLanguage Server Protocol(LSP)を見て、「ええやん」となった。

Japanese Language Serverがあっても良いのでは。やる気マンゴスチンです。

標準実装

  • 見出し(h1-h6対応)
  • AUTHOR
  • DATE
  • Bullet リスト
  • 順序付きリスト
  • 用語リスト
@hidaruma
hidaruma / keybase.md
Last active September 16, 2019 04:05

Keybase proof

I hereby claim:

  • I am hidaruma on github.
  • I am hidaruma (https://keybase.io/hidaruma) on keybase.
  • I have a public key whose fingerprint is 0C45 A4A8 74EA 2012 B7B3 502B 1453 6847 B703 F91F

To claim this, I am signing this object:

@hidaruma
hidaruma / word.dtx
Last active May 15, 2017 16:09
New word class draft.
% \iffalse-meta comment
%% File: word.dtx
%
% \fi
%\CheckSum{0}
%\iffalse
%\changes{v1.0}{2017/05/15}{First Release}
%\fi
%
%\iffalse