Urantia Book Programming
Total Page:16
File Type:pdf, Size:1020Kb
Urantia Book Programming Urantia Book Programming by Troy R. Bishop Published by CreateSpace © 2017 Troy R. Bishop All rights reserved Printed in the United States of America 1 3 5 7 9 0 8 6 4 2 First Edition, 2017 ISBN-10: 1977833497 ISBN-13: 978-1977833495 Cover and art by Troy R. Bishop Contents 1. Introduction ............................................................ 9 Background .......................................................................9 Scope ....................................................................................9 Timeline .............................................................................10 UBP Instances ....................................................................11 Development Stages of UBP ..............................................13 Capabilities ......................................................................15 Multiforming ......................................................................15 Analysis..............................................................................16 Data Management ..............................................................17 2. Basics .............................................................................. 19 Paradigm ...........................................................................19 Pre-Urantia Book Explorer Data Processing .....................19 Urantia Book Explorer Development ................................20 Adding Multilinguality ......................................................21 Adding Language Neutrality ..............................................23 Adding File Management ..................................................24 Adding File Handling ........................................................25 Mapping The Urantia Book ...............................................26 Standardizing Line Count ..................................................27 Expanding File Management .............................................28 Metrics ................................................................................29 v Contents About Metrics Files ............................................................29 Fundamental Metrics Design .............................................30 Coded Metrics Design ........................................................34 Custom Metrics Design ......................................................37 Exemplars .........................................................................41 About Exemplar Files ........................................................41 English -Paper 1 (Lines 1-4) ..............................................41 Russian - Paper 1 (Lines 1-4) .............................................43 Korean - Paper 1 (Lines 1-4) .............................................44 Arabic - Paper 1 (Lines 1-4) ..............................................45 3. Functions .................................................................... 47 Concepts ............................................................................47 Text Access Method ...........................................................47 Metrics Access Method ......................................................48 Iterative Precalculation and Metrics Expansion ................49 Techniques ........................................................................50 DOM Text Manipulation and Retrieval .............................50 DOM Text Location and Placement ...................................52 Innovation for Efficiency ...................................................54 Metrics Expansion and Precalculation ...............................55 4. Programs .................................................................... 59 Overview ............................................................................59 Programmers ......................................................................59 Toolkit ................................................................................59 vi Contents 5. Paradigm .................................................................... 63 Protocol ..............................................................................63 The UBP Primary Protocol ................................................63 System Folders ...................................................................63 File Formats .......................................................................67 Exemplar Files ...................................................................67 Exemplar Records ..............................................................67 Metrics Records .................................................................68 Program Coding Language ................................................68 File Types ...........................................................................68 6. Libraries ..................................................................... 73 Code Libraries ...............................................................73 About the Code Libraries ...................................................73 The Urantia Book Translator .hta File ...............................74 The absmap.js Code Library ..............................................84 The exemplarmap.js Code Library ..................................101 The languagemap.js Code Library ...................................118 The ubt_analyzer.js Code Library ....................................143 vii 1 Introduction Background Scope This is a reference manual for IT professionals. It describes an information technology, referred to as The Urantia Book Programming Paradigm (UBPP), or sim- ply Urantia Book Programming (UBP), which is used to manipulate Urantia Book textual data. The Urantia Book Programming Paradigm consists of The Urantia Book Programming Protocol (UBPR) and The Urantia Book Programming Language (UBPL). UBP programs consist of components specified in the Urantia Book Programming Protocol; namely, the pro- gram code itself, in conjunction with special plain text files, called exemplar files, of Urantia Book text, and spe- cial plain-text files of numerical data, called metrics files, which describe The Urantia Book's structure. The information contained in these pages can also be of use in the areas of management and support. Particularly helpful in these areas may be the included narration of the developmental history of UBP, describing, as it does, the reasons behind certain technical decisions made in the for- mative years of Urantia Book-related IT—that is, of UBP. 9 Urantia Book Programming Timeline On January 1, 2006, the English text of The Urantia Book entered the public domain, and on that same day I began the development of Urantia Book Explorer, the first Uran- tia Book browser, which I completed in May, 2007. Other programs followed. All together, this effort produced the following: • Urantia Book Explorer (January 2006 to May 2007). • The Multilingual Urantia Book (the Polygloss) (June 2007 to November 2007). • Urantia Book Translator (December 2007 to Janu- ary 2009). • The UBDS, or Urantia Book Data System (Decem- ber 2007 to January 2009). • UBSearch (May 2012). • Urantia Book Views (November 2012). • Urantia Book Access, (for mobile Android devices) (November 2015). During this time, I was perfecting a technique specifically designed for processing Urantia Book text, an approach that I have named exemplar metrics. Exemplar metrics is the engine that drives Urantia Book Programming. Upon completing Urantia Book Translator, I offered Uran- tia Book Translator free to the Urantia Foundation. Some 10 1 Introduction members of Urantia Foundation were interested and sug- gested that they employ Urantia Book Transalator for their translations, but ultimately that suggestion was not approved. Upon completing the UBDS, I prepared video tutorials and documentation for the UBDS, which, at the current time, are located at https://www.facebook.com/UrantiaBookProgram- ming/ and are also located, on a permanent basis, at https://archive.org/details/@troy_r_bishop (Because of bandwidth considerations, videos at the latter site, the Internet Archive, must be downloaded and viewed locally or uploaded elsewhere.) At this point, the Urantia Book Programming Paradigm, which had been developing with each successive item on the timeline above, was complete. Its components, the Urantia Book Programming Protocol and the Urantia Book Programming Language, were fully formed and in service. UBP Instances Some notable uses to which Urantia Book Programming has been put and events that have affected UBP since its development include the following: • Tigran Aivazian, of London, England, has been applying exemplar metrics on a case by case basis in his publishing of Urantia Books and Urantia Book derivatives in various forms and installing them in key hubs of the cyberworld. He designed, produced, and published The British Study Edition of The Uran- tia Papers, including critical apparatus, using exem- plar metrics to check its finished makeup. He used 11 Urantia Book Programming these same methods to publish and on-demand print The Guardian Plates, a photoreplica of the first print- ing of The Urantia Book whose images were scanned and arranged by an anonymous group, who placed the images and their collection in the public domain. • In 2010, over a period of several months, I down- loaded and converted to exemplars all then existing language versions of The Urantia Book from Uran- tia Foundation for my own use. Soon after, Urantia Foundation developed