new MANPAGE; added old skintone researches, APIDOC update

Former-commit-id: a4d95985638e6f6d2acaa95a1323a175ad5f232a
Former-commit-id: 7eae9d9f4471338380f2b0b827ff68577badcf54
This commit is contained in:
Song Minjae
2016-10-03 14:21:05 +09:00
parent 81958709ee
commit 1b877c6a52
23 changed files with 1570 additions and 16 deletions

View File

@@ -0,0 +1 @@
*.{psd,tga,ogg} filter=lfs diff=lfs merge=lfs -text

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,55 @@
# fianised 2016-03-08
# by minjaesong
import math
def RGBToHSV(r, g, b):
rgbMin = min(r, g, b)
rgbMax = max(r, g, b)
h = 0.0
s = 0.0
v = float(rgbMax) / 255.0
delta = float(rgbMax - rgbMin)
if (rgbMax != 0):
s = delta / rgbMax
else:
s = 0
h = 0
return h, s, v
if (r == rgbMax):
h = (g - b) / delta
elif (g == rgbMax):
h = 2 + (b - r) / delta
else:
h = 4 + (r - g) / delta
h *= 60
if (h < 0):
h += 360
return int(round(h)), int(round(s * 100)), int(math.ceil(v * 100))
infile = open("/Users/minjaesong/Desktop/Calculators/Skintone_samples_process/samples.raw", "rb").read()
rgbTable = [[0], [0], [0]]
fileReadCounter = 0
CHANNEL_R = 0
CHANNEL_G = 1
CHANNEL_B = 2
for i in infile:
rgbTable[fileReadCounter % 3].append(ord(i))
fileReadCounter += 1
for i in range(len(rgbTable[0])):
h, s, v = RGBToHSV(rgbTable[CHANNEL_R][i], rgbTable[CHANNEL_G][i], rgbTable[CHANNEL_B][i])
if (h != 0 and s != 0 and v != 0):
print(h, s, v)

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

View File

@@ -34,7 +34,7 @@ The path for the argument of functions blocks `\,.\,.\,' to be passed, preventin
\\ \\
fs.parent(\textbf{path}: string) & string & Returs parent directory to the \textbf{path}.
\\ \\
fs.dofile(\textbf{path}: string) & nil & Loads the script on \textbf{path} and executes it.
fs.dofile(\textbf{path}: string) & nil & Loads the script on \textbf{path} and executes it. NOTE: do not use this directly, instead use \textbf{shell.run(path, tArgs)}; fs.dofile does not provide any error handling.
\\ \\
fs.fetchText(\textbf{path}: string) & string & Opens the file on \textbf{path} and returns its contents as a plain text.
\end{tabularx}

View File

@@ -6,5 +6,5 @@
\textbf{\large Function} & \textbf{\large Return} & \textbf{\large Description}
\\ \\
\endhead
shell.run(\textbf{path}: string) & nil & Loads the script on \textbf{path} and executes it.
shell.run(\textbf{path}: string, \textbf{args}: table) & nil & Loads the script on \textbf{path} and executes it.
\end{tabularx}

View File

@@ -78,9 +78,9 @@
\@writefile{toc}{\contentsline {chapter}{\chapternumberline {6}Security}{15}{chapter.6}}
\@writefile{toc}{\contentsline {section}{\numberline {6.1}Functions}{15}{section.6.1}}
\gdef \LT@ix {\LT@entry
{2}{102.18004pt}\LT@entry
{2}{150.79007pt}\LT@entry
{1}{45.25516pt}\LT@entry
{2}{180.42001pt}}
{2}{138.95477pt}}
\@writefile{lof}{\addvspace {10pt}}
\@writefile{lot}{\addvspace {10pt}}
\@writefile{toc}{\contentsline {chapter}{\chapternumberline {7}Shell}{16}{chapter.7}}

View File

@@ -1,4 +1,4 @@
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) (format=lualatex 2015.10.5) 1 OCT 2016 21:05
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) (format=lualatex 2015.10.5) 3 OCT 2016 00:46
restricted \write18 enabled.
file:line:error style messages enabled.
**romapidoc.tex
@@ -552,7 +552,7 @@ luatexbase-attr: luatexbase.attributes["luaotfload@cursbase"] = 6
luatexbase-attr: luatexbase.attributes["luaotfload@curscurs"] = 7
luatexbase-attr: luatexbase.attributes["luaotfload@cursdone"] = 8
luatexbase-attr: luatexbase.attributes["luaotfload@state"] = 9
luaotfload | main : fontloader loaded in 0.055 seconds
luaotfload | main : fontloader loaded in 0.087 seconds
luatexbase-mcb: inserting 'luaotfload.node_processor'
at position 1 in 'pre_linebreak_filter'
luatexbase-mcb: inserting 'luaotfload.node_processor'
@@ -1429,6 +1429,23 @@ Underfull \hbox (badness 1655) in paragraph at lines 40--40
\EU2/MyriadPro(0)/m/n/10 des-ti-na-tion. Sub-di-rec-to-ries /
[]
Underfull \hbox (badness 10000) in paragraph at lines 40--40
[][]|\EU2/MyriadPro(0)/m/n/10 Loads the script on \EU2/MyriadPro(0)/bx/n/10 pat
h
[]
Underfull \hbox (badness 7030) in paragraph at lines 40--40
\EU2/MyriadPro(0)/m/n/10 and ex-e-cutes it. NOTE: do
[]
Underfull \hbox (badness 10000) in paragraph at lines 40--40
\EU2/MyriadPro(0)/m/n/10 use \EU2/MyriadPro(0)/bx/n/10 shell.run(path, tArgs)\E
U2/MyriadPro(0)/m/n/10 ;
[]
[6
@@ -1678,10 +1695,6 @@ Underfull \hbox (badness 1325) in paragraph at lines 53--53
0 freq \EU2/MyriadPro(0)/m/n/10 is
[]
Package longtable Warning: Column widths have changed
(longtable) in table 10.2 on input line 53.
[22
@@ -1723,13 +1736,9 @@ luaotfload | load : Lookup/name: "MyriadPro" -> "MyriadPro-Bold.otf" [26
\tf@toc=\write5
\openout5 = romapidoc.toc
Package longtable Warning: Table widths have changed. Rerun LaTeX.
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 183.
Package atveryend Info: Empty hook `AfterLastShipout' on input line 183.
(./romapidoc.aux)
(./romapidoc.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 183.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 183.
Package rerunfilecheck Info: File `romapidoc.out' has not changed.
@@ -1752,7 +1761,7 @@ LuaTeX warning (dest): name{Hfootnote.2} has been referenced but does not exist,
</Library/Fonts/MyriadPro-It.otf></Library/Fonts/MyriadPro-Regular.otf></Library
/Fonts/MyriadPro-Bold.otf>
Output written on romapidoc.pdf (37 pages, 105094 bytes).
Output written on romapidoc.pdf (37 pages, 105443 bytes).
PDF statistics: 461 PDF objects out of 1000 (max. 8388607)
403 compressed objects within 5 object streams

Binary file not shown.

View File

@@ -0,0 +1,9 @@
\begin{tabularx}{\textwidth}{l X}
\textbf{NAME} & dsh - the Dumbshell
\\ \\
\textbf{SYNOPSIS} & \textbf{dsh} [file]
\\ \\
\textbf{COPYRIGHT} & See copyright information for the game you are actually playing.
\\ \\
\textbf{DESCRIPTION} & \textbf{Dsh} is a semi \textbf{sh}-compatible command language interpreter that executes commands read from the standard input or from a file.
\end{tabularx}

View File

@@ -0,0 +1,9 @@
\begin{tabularx}{\textwidth}{l X}
\textbf{NAME} & msh - the Moonshell
\\ \\
\textbf{SYNOPSIS} & \textbf{msh} [file]
\\ \\
\textbf{COPYRIGHT} & See copyright information for the game you are actually playing.
\\ \\
\textbf{DESCRIPTION} & \textbf{Msh} is a Lua prompt that reads lua script from the user, or execute a file user had put as an argument.
\end{tabularx}

View File

@@ -0,0 +1,35 @@
\relax
\providecommand\hyper@newdestlabel[2]{}
\providecommand*{\memsetcounter}[2]{}
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldcontentsline\contentsline
\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor\@undefined
\let\contentsline\oldcontentsline
\let\newlabel\oldnewlabel
\fi}
\fi}
\global\let\hyper@last\relax
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\providecommand\HyField@AuxAddToCoFields[2]{}
\@writefile{lof}{\addvspace {10pt}}
\@writefile{lot}{\addvspace {10pt}}
\@writefile{toc}{\contentsline {chapter}{\chapternumberline {1}Main Applications}{5}{chapter.1}}
\gdef \LT@i {\LT@entry
{1}{72.64pt}\LT@entry
{1}{262.36pt}}
\gdef \LT@ii {\LT@entry
{1}{72.64pt}\LT@entry
{1}{262.36pt}}
\@writefile{toc}{\contentsline {section}{\numberline {1.1}DSH}{6}{section.1.1}}
\@writefile{toc}{\contentsline {section}{\numberline {1.2}MSH}{6}{section.1.2}}
\@writefile{lof}{\addvspace {10pt}}
\@writefile{lot}{\addvspace {10pt}}
\@writefile{toc}{\contentsline {chapter}{\chapternumberline {2}References}{7}{chapter.2}}
\memsetcounter{lastsheet}{8}
\memsetcounter{lastpage}{8}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
\BOOKMARK [0][-]{chapter.1}{\376\377\000M\000a\000i\000n\000\040\000A\000p\000p\000l\000i\000c\000a\000t\000i\000o\000n\000s}{}% 1
\BOOKMARK [1][-]{section.1.1}{\376\377\000D\000S\000H}{chapter.1}% 2
\BOOKMARK [1][-]{section.1.2}{\376\377\000M\000S\000H}{chapter.1}% 3
\BOOKMARK [0][-]{chapter.2}{\376\377\000R\000e\000f\000e\000r\000e\000n\000c\000e\000s}{}% 4

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,119 @@
% !TEX TS-program = lualatex
\documentclass[10pt, stock]{memoir}
\usepackage{fontspec}
\setmainfont{MyriadPro}
\usepackage{fapapersize}
\usefapapersize{148mm,210mm,15mm,15mm,20mm,15mm}
\usepackage{afterpage}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{ltablex}
\usepackage{parskip}
\frenchspacing
\setlength{\parindent}{0pt}
\setlength{\parskip}{10pt}
\setsecnumdepth{subsection}
%% Idioms %%
\hyphenation{Com-put-er-Craft}
\hyphenation{O-pen-Com-put-ers}
\hyphenation{ROM-BASIC}
\definecolor{black}{HTML}{000000}
\definecolor{white}{HTML}{FFFFFF}
\definecolor{dimgrey}{HTML}{555555}
\definecolor{brightgrey}{HTML}{AAAAAA}
\definecolor{yellow}{HTML}{FFFF00}
\definecolor{orange}{HTML}{FF6600}
\definecolor{red}{HTML}{DD0000}
\definecolor{magenta}{HTML}{FF0099}
\definecolor{purple}{HTML}{330099}
\definecolor{blue}{HTML}{0000CC}
\definecolor{cyan}{HTML}{0099FF}
\definecolor{lime}{HTML}{55FF00}
\definecolor{green}{HTML}{00AA00}
\definecolor{darkgreen}{HTML}{006600}
\definecolor{brown}{HTML}{663300}
\definecolor{tan}{HTML}{996633}
\newcommand{\unemph}[1]{\textcolor{brightgrey}{#1}}
% Title styling
\pretitle{\begin{flushright}\HUGE}
\posttitle{\par\end{flushright}\vskip 0.5em}
% new sections are new page
\let\oldsection\chapter
\renewcommand\chapter{\clearpage\oldsection}
% chapter title -- no now page after
%\renewcommand\chapterheadstart{} % kill the drop
\renewcommand\afterchapternum{\vskip 0.5em} % space between number and title
\makeatletter
\renewcommand\memendofchapterhook{%
\newpage\m@mindentafterchapter\@afterheading}
\makeatother
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\aliaspagestyle{part}{empty}
\aliaspagestyle{chapter}{empty}
% The title
\title{\textbf{THE MANPAGE} \\ \vspace{7mm} \large For the Game \emph{Terrarum}\quad ·\quad First Edition}
\date{}
\author{}
\hypersetup{
pdfauthor={Terrarum Developers},
pdftitle={THE MANPAGE},
unicode=true
}
\begin{document}
\begin{titlingpage}
\maketitle{}
\end{titlingpage}
\setcounter{page}{3}
\tableofcontents*
\chapter{Main Applications}
\section{DSH}
\input{man_dsh}
\section{MSH}
\input{man_msh}
\chapter{References}
\afterpage{\pagestyle{empty}\null\newpage}
\end{document}

View File

@@ -0,0 +1,4 @@
\contentsline {chapter}{\chapternumberline {1}Main Applications}{5}{chapter.1}
\contentsline {section}{\numberline {1.1}DSH}{6}{section.1.1}
\contentsline {section}{\numberline {1.2}MSH}{6}{section.1.2}
\contentsline {chapter}{\chapternumberline {2}References}{7}{chapter.2}