Skip to content

gongahkia/dc4u

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Badge

Draft Charges 4 U

A Legal Draft Charge Creator.

Motivation

Draft charges are inane to format. DC4U simplifies the entire process of creating Draft Charges, by transpiling a human-readable markup format (.dc) to different targets for viewing and distribution.

This format is intended to allow for quick integration with existing workflows when taking down material facts.

Purpose

  • Speed up process of formatting draft charges
  • Small source code binary and compilation target, faster compilation times
  • Simplify inane legal admin work for lawyers
  • DC4U transpiler takes in a simple reworked markup format and transpiles to multiple targets
  • Afraid you won't remember .dc language syntax? The DC4U transpiler will kindly point out the error and correct you accordingly.

Output formats

Output format Purpose Implementation status
.txt Universal viewing
.md Formatted viewing
.html Rudimentary API implementation
.rmd Rudimentary integration of calculation and data vis
.pdf Widely accepted format for sharing and viewing. Relies on existing R and Pandoc toolchains.
.docx Microsoft clowns and google doc integration. Relies on existing R and Pandoc toolchains.

Language syntax

Refer to samples/eg.dc for examples and expansion on .dc syntax.

stylisation syntax notes implementation status
output format ` ` PDF, HTML, TXT, MD, DOC
Suspect name; NRIC; Race; Age; Gender; Nationality < >
Recommended charge title; Date of offence; Explication of charge [ ]
Relevant statute @ @
Charging officer; Role and Division; Date of charge { }
Comments # # Comments are ignored in the final formatted draft charge
Separator ---

Screenshots

  • Example of a draft charge created with DC4U

Installation

This installation also handles R markdown default toolchain's installation, as well as compilation targets to .pdf and .docx.

WSL (Debian)

$ git clone https:/gongahkia/dc4u
$ sudo apt update && sudo apt upgrade && sudo apt autoremove
$ sudo apt -y install r-base gdebi-core pandoc-citeproc
$ sudo apt install texlive-latex-base texlive-fonts-recommended texlive-latex-extra
$ sudo R
> install.packages("rmarkdown")
> install.packages("officedown")
> install.packages('tinytex')
> tinytex::install_tinytex()
> Save workspace image? [y/n/c]: n
$ exit

OSX

$ git clone https:/gongahkia/dc4u
$ brew install r 
$ brew install pandoc
$ brew install --cask rstudio
$ R
> install.packages("rmarkdown")
> install.packages("officedown")
> install.packages('tinytex')
> tinytex::install_tinytex()
> Save workspace image? [y/n/c]: n
$ exit

About

markup language for legal draft charges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages