Giter Club home page Giter Club logo

philo4classics's Introduction

Philo4Classics

This package contains extensive customizations for PhiloLogic 4.6, allowing for sensible parsing and display of Perseus-like Greek and Latin texts. You can download PhiloLogic 4.6 from github here. Philo4Classics will not currently work with version 4.7, but we hope to extend support to it in future development.

If you are having trouble installing PhiloLogic 4.6, you can check our installation tips here.

Included:

  • custom runtime and loadtime functions
  • a classicize.py script which makes common adjustments to the PhiloLogic 4.6 app

Usage

Make sure you set the correct paths for philo4classics and lexicon_db in Classics_load_config.py.

# Define location of local Philo4Classics load directory
philo4classics = "/my/path/to/Philo4Classics/load"

# Default path to Greek Lexicon if different from philo4classics
lexicon_db = "/var/www/cgi-bin/perseus/GreekLexicon16.db"

The load should be done from the load/ directory:

cd /path/to/Philo4Classics/load
philoload4 -l Classics_load_config.py MyNewLoad /path/to/my/file*.xml

Make sure that you set the correct path for philologic_path in classicize.py.

philologic_path="/var/www/html/philologic4/"

If you are loading something like a dictionary or monograph that will have CTS URNs pointing to primary texts, you can set a target Greek and/or Latin load where to pull up those citations:

Greek_load = "http://some.server.com/philologic4/TextLoad/"
Latin_load = "http://some.server.com/philologic4/TextLoad/"

If you have a translation load, you can specify it so that users can find the corresponding passage translation from a Greek or Latin load (you must specify the translation language):

translation_load = "http://some.server.com/philologic4/MyEnglishTranslationLoad/"
translation_lang = "English"

Unless there are good reasons, the classicize.py script should be run after all Philo4Classics custom loads, but before you do so, make sure to try to load the database in a browser first so that the PhiloLogic4 app initializes certain files:

./classicize.py MyLoad # parameters are optional
  • the optional parameters are "dictionary" and "text" to be used with dictionary loads and text loads, respectively (if not sure, use the "text" parameter)
  • if the "no" parameter is used, then only those adjustments which are common to all Philo4Classics loads will be applied (this is usually the wrong choice).

philo4classics's People

Contributors

clovis avatar helmadik avatar waltms avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

philo4classics's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.