0.3.2 • Published 4 years ago

sjml-validate v0.3.2

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

sjml-validate usage guide


1. Install node.js (prerequisite)

1-1 On windows

1) Download LTS version installer

2) Install via the installer

3) Verify installation

node -v
npm -v

1-2 On linux

1) Install nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash

2) Restart terminal

3) Install node LTS version

nvm install --lts

4) Verify installation

node -v
npm -v

2. Install sjml-validate

npm install sjml-validate -g

3. Usage

sjmlv <options>  // run validator
sjmlc <options>  // run converter

3.1 Validator

Validator Options

optiondescription
-s, --schema \<schema_type >set a schema type (required)
-i, --input \<dir_path >set an input dir path: read files recursively (required)
-e, --ext extention_name set an extention name of target input files (optional) (default: sjml)
-o, --output dir_path set an output dir path (optional) (default: ./output/)
-w, --withEscrun with escaping: available with SERW, EXRW (optional)(default: without escaping)
-h, --helpoutput usage information

Validator Schema Type

typedescription
WXRW원시 검증: 문어(상상, 정보, 기타)
WCRW원시 검증: 문어(잡지)
NXRW원시 검증: 신문
EXRW원시 검증: 웹
SXRW원시 검증: 구어(공적독백, 공적대화)
SDRW원시 검증: 구어(일상대화)
SERW원시 검증: 준구어(대본)
MXRW원시 검증: 메신저대화

3.2 Converter

Converter Options

optiondescription
-s, --schema \<schema_type >set a schema type (required)
-i, --input \<dir_path >set an input dir path: read files recursively (required)
-e, --ext extention_name set an extention name of target input files (optional) (default: sjml)
-o, --output dir_path set an output dir path (optional) (default: ./output/)
-h, --helpoutput usage information

Converter Schema Type

typedescription
WXRW원문->원시: 문어(상상, 정보, 기타)
WCRW원문->원시: 문어(잡지)
NXRW원문->원시: 신문

4. Examples

sjmlv -s SDRW -i "..\데이터\일상 대화" -e SJML
sjmlv --schema=SDRW --input="..\데이터\일상 대화" --ext=SJML
sjmlv -s EXRW -i ..\데이터\웹 -o ..\output -w
sjmlc -s NXRW -i ..\데이터\신문 -e xml -o ..\output
sjmlc --input=..\데이터\신문 --output=../output --schema=WXRW 
0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago