Skip to main content

command line utilities for preparation of quote databases from original documents, for use in family court

Project description

Family Court Toolkit

This repository contains tools to allow labelling of family court documents. It uses latex and python.

Problem

The problem that it proposes a solution for is:

  • Family court documents are often scanned and uploaded as PDFs, which makes them unsearchable.
  • There are often document dumps from different sources, which have disparate timelines.
  • Adding emails and other documents you can easily reach 1000s of pages.
  • Limited bandwidth of the court and your representation means that you need to have a system to boil down your data, in order have the best chance of an outcome that is consistent with the data, and therefore with the truth, and the child's best interest.

Gather, label, cite.

Start by gathering your documents, and filling out your case's document tree. An example is given in examples/labelled/full.tex, you can use a single doc, or several, like one doc for emails, one for psych evaluation, etc.

When you include header.tex and label the document using \lb{key}{snippet}{note}, then every time you compile full.tex, labels will be extracted to a csv table named full_labels.csv.

Using csv2bib.py you can convert this into a citation database, which allows you to write concise documents to different parties, built on citations from your case documentation, like brief.tex, which outputs brief.pdf.

  • For emails you may use the eml2tex.py script to convert your emails into latex sections.
  • For scanned documents you can use the pdf2tex.py, which uses OCR (tesseract) to convert your PDFs into latex sections.

Editor setup for labelling in vscode

When using vscode, you may want to include the following keybindings to your keybindings.json file.

    {
        "key": "ctrl+L",
        "command": "editor.action.insertSnippet",
        "when": "editorTextFocus && editorLangId == 'latex'",
        "args": {
          "snippet": "\\lb{$1}{${TM_SELECTED_TEXT}}{$2}"
        }
    }

Labels the selected text with a label and a note.

    {
        "key": "ctrl+D",
        "command": "editor.action.insertSnippet",
        "when": "editorTextFocus && editorLangId == 'latex'",
        "args": {
          "snippet": "\\sdate{${TM_SELECTED_TEXT}}"
        }
    }

Adds a date in the document, which is used for all labels following it until the next date, format is DD-MM-YYYY.

Create timelines

Another useful tool is a visual timeline of events, there is a timeline_plotter.py utility added.

tl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fct1-0.0.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fct1-0.0.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file fct1-0.0.1.tar.gz.

File metadata

  • Download URL: fct1-0.0.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.14

File hashes

Hashes for fct1-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f12528a7599f384d72c2c271ed43fd2b20e6b88032697e546663cd49bae3e196
MD5 72fa0df1711d2596a3d327c0139fedb8
BLAKE2b-256 1f12d0157c4f857cf4839e7c4e6c60921ab006822cf6cb8a0f82a5ad5b4ea2fb

See more details on using hashes here.

File details

Details for the file fct1-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fct1-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.14

File hashes

Hashes for fct1-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc759361157415c2884761aafd6fed8315e6750a7320b64d45a9dec16e3ca32
MD5 76ab014710640a05ef8ea2497f348524
BLAKE2b-256 ab0858cc6c3060de81eb458a0ae12bab2d3a213deefc6f2ec9d413410d44dde5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page