function Patristocrat() {
  this.decrypt_filter = function(character) {return (constants.ascii_letters).indexOf(character) > -1};
  this.encrypt_filter = this.decrypt_filter;
}
Patristocrat.prototype = new Aristocrat();

function PatristocratSolver () {
  this.cipher = new Patristocrat();
  
  this.display = function() {
    var data = "";
    var ct = breakblocks(this.text(), 5);
    ct = breaklines(ct, windowMaxWidth()).split("\n");
    var pt = breakblocks(this.cipher.decrypt(), 5);
    pt = breaklines(pt, windowMaxWidth()).split("\n");
    
    for(i=0; i<ct.length;i++)
    {
      data += ct[i] + "\n";
      data += pt[i] + "\n\n";
    }
    return trim(data);
  }
  
  this.freqlist = function(length) {
    if (length == null)
      length = 1;
    return this._print_counts(calcGraphs(this.text(),length,(length == 1)));
  }
}
PatristocratSolver.prototype = new AristocratSolver();
document.solvers.register("Patristocrat",PatristocratSolver);
