- 字下げに意味がある記法は採用しない。(NoraMarkの基本的な方針)
==:
など
start | |
= Document | |
Document | |
= EmptyLine* blocks:Block* { return blocks.join("\n"); } | |
Block | |
= b:(ExplicitBlock / ParagraphGroup) EmptyLine* | |
{ return b; } | |
ExplicitBlockHead |
start | |
= Document | |
Document | |
= l:TheLine LF d:Document { d.unshift(l); return d } | |
/ l:TheLine { return [l]; } | |
TheLine = DocumentLine / NotAllowedLine | |
NotAllowedLine = "not allowed" LF { return "not allowed but here."; } | |
DocumentLine |
--- | |
title: サンプル文書 | |
generator: htmlbook | |
--- | |
#(titlepage) サンプル文書 | |
by Satoshi Kojima | |
#(preface) 前書き |
rubyでメソッドの引数にデフォルト式を渡したとき、その引数が省略されたかどうか知る一番よい方法はなんだろう。
ふつうに
class TheClass
def the_method(a = nil)
if a.nil?
do_something
else
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>test</title> | |
<style type="text/css"> | |
body { | |
margin: 1em; | |
writing-mode: vertical-rl; | |
-webkit-writing-mode: vertical-rl; |
rm -rf ~/Library/Application\ Support/Slack/ | |
rm -rf ~/Library/Containers/com.tinyspeck.slackmacgap/ | |
rm -rf ~/Library/Preferences/com.tinyspeck.slackmacgap.plist | |
rm -rf ~/Library/Saved\ Application\ State/com.tinyspeck.slackmacgap.savedState | |
rm ~/Library/Safari/LocalStorage/*slack* |
@page :first { | |
margin: 0; | |
} |
% zundoko-kiyoshi in postscript | |
/Palatino-Italic findfont 40 scalefont setfont | |
/height 50 def | |
clippath pathbbox /top exch def pop pop pop newpath | |
10 top moveto | |
/zd { | |
rand 2 mod 0 eq |
# Write this in Macro Panel and click on the Run button | |
for myFont in Glyphs.fonts: | |
for ins in myFont.instances: | |
print "Exporting:", ins.familyName | |
ins.generate(Format='TTF',AutoHint=False, RemoveOverlap=False,FontPath='path_to_the_converted_fonts/') |