Skip to content

ARTFL-Project/Philo4Classics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •