Skip to content

Pefington/MSWord-Av-Manuals-Formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MS Word Formatter for Aviation Manuals

This VBA program was made while working to obtain an Air Operator Certificate for a startup airline. The funding was unsuccessful.

After this fell through, I realized I liked coding and decided to pursue full stack engineering.


This program came from a task that quickly proved unachievable without automation:

  • Cleaning up and formatting drafts documents from multiple team members, who had wildly varying writing methods and limited knowledge of Word's best practices, and had modified imported existing manuals from existing airlines (breaking many things in the import);
  • Those are controlled manuals that easily reach thousands of pages, and must adhere to strict regulations, have complex numbering systems, must have a complex header on each page, a table of contents, a list of effective pages with effective dates, etc.

This program:

Then starts working by:

  • Clearing all bookmarks;
  • Clearing all section breaks, manual line breaks, column breaks, and manual page breaks (except when a document orientation change is detected - portrait => landscape and vice versa);
  • Cleaning and formatting floating shapes;
  • Removing all bad ("fake") headers;
  • Removing all headers and footers;
  • Setting up the layout parameters for the document;
  • Detecting and removing table(s) of content;
  • Doing a fast pass of sanitization (double characters, new lines, etc.);
  • Going through every paragraph, and, using regular expressions and pattern recognition, rewrites every paragraph, with correct styling, numbering, sectioning, etc. This is the meat of the program;
  • Removing manual (bad) tables of content;
  • Formatting every table;
  • Generating cover pages using earlier input;
  • Generating proper header and footers using same previous inputs;
  • Generating a Table of Contents;
  • Finally, generating a List of Effective Pages recursively.

A dev. mode is available, and will show the user what's happening in real time (at the expense of execution speed).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages