[jsword-devel] Bible text location
Joe Walker
jsword-devel@crosswire.org
Wed, 26 Nov 2003 19:57:14 +0000
This is a multi-part message in MIME format.
--------------020904030709030500060709
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Out of interest the whole config dialog is setup from an XML file, so
I've altered the layout, so it should be easier to work out what is
going on now.
I've attached the current config.xml file. It is used dynamically by the
config class to build an options dialog and it is also read by a style
task in the ant build to generate some Java that won't compile if you've
got the syntax wrong.
To see the new layout you can download a nightly build.
Joe.
Ben Dugdale wrote:
> Wow... That was embarrassing. Funny, that makes all the difference.
> Thanks Joe!
>
> On Mon, 2003-11-24 at 00:04, Joe Walker wrote:
>
>>Ben Dugdale wrote:
>>
>>
>>>This jpeg is what I see under /tools/options/bibles/ in jsword 0.96.
>>>
>>>http://www.sheepcamp.com/tutorials/snapshot2.jpg
>>>
>>>No sign of "Sword" or "Base Directory"..??
>>
>>Yes, I think the Java L&F UI isn't too clear. The thing on the left is a
>>tree anf not a list, so click on the o- icon to the left of Bibles and
>>you should see some new panes.
>>
>>Joe.
>>
>>
>>
>>_______________________________________________
>>jsword-devel mailing list
>>jsword-devel@crosswire.org
>>http://www.crosswire.org/mailman/listinfo/jsword-devel
>>---
>>[Scanned for viruses]
--------------020904030709030500060709
Content-Type: text/xml;
name="config.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="config.xml"
<?xml version="1.0"?>
<!DOCTYPE config [
<!ELEMENT config (option)+>
<!ELEMENT option (introspect?, help, map?, alternative*, custom?)>
<!ATTLIST option
key CDATA #REQUIRED
static (true|false) 'true'
priority NMTOKEN '5'
type (string|boolean|int-options|string-options|string-array|file|path|directory|number|font|class|custom) #REQUIRED
class CDATA #IMPLIED
separator CDATA #IMPLIED
>
<!ELEMENT introspect EMPTY>
<!ATTLIST introspect
class CDATA #REQUIRED
property CDATA #REQUIRED
>
<!ELEMENT help (#PCDATA)>
<!ELEMENT map EMPTY>
<!ATTLIST map
name CDATA #REQUIRED
>
<!ELEMENT custom EMPTY>
<!ATTLIST custom
class CDATA #REQUIRED
>
<!ELEMENT alternative (#PCDATA)>
<!ATTLIST alternative
number NMTOKEN #REQUIRED
name CDATA #REQUIRED
>
]>
<config>
<option key="Bibles.Default Bible" type="string-options">
<introspect class="org.crosswire.jsword.book.Defaults" property="BibleByName"/>
<help>Which of the available Bibles is the default.</help>
<map name="biblenames"/>
</option>
<option key="Bibles.Default Dictionary" type="string-options">
<introspect class="org.crosswire.jsword.book.Defaults" property="DictionaryByName"/>
<help>Which of the available Bibles is the default.</help>
<map name="dictionarynames"/>
</option>
<option key="Bibles.Default Commentary" type="string-options">
<introspect class="org.crosswire.jsword.book.Defaults" property="CommentaryByName"/>
<help>Which of the available Bibles is the default.</help>
<map name="commentarynames"/>
</option>
<option key="Bibles.Verses Per Tab" type="number">
<introspect class="org.crosswire.jsword.view.swing.book.TabbedDisplayPane" property="PageSize"/>
<help>How many verses do you want to display on a page before spilling to tabbed mode.</help>
</option>
<option key="Sword.Base Directory" type="path">
<introspect class="org.crosswire.jsword.book.sword.SwordBookDriver" property="SwordDir"/>
<help>Where is the SWORD Project base directory.</help>
</option>
<option key="Remote.Remote Host" type="string-array" separator=" ">
<introspect class="org.crosswire.jsword.book.remote.HttpRemoteBookDriver" property="URLs"/>
<help>The URL of a remote HTTP host.</help>
</option>
<option key="Passages.Persistent Naming" type="boolean">
<introspect class="org.crosswire.jsword.passage.PassageUtil" property="PersistentNaming"/>
<help>True if the passage editor re-writes the references to conform to its notation.</help>
</option>
<option key="Passages.Blurring Rules" type="int-options">
<introspect class="org.crosswire.jsword.passage.PassageUtil" property="BlurRestriction"/>
<help>What is the default blurring - Blur across chapter boundaries or not.</help>
<alternative number="0" name="None"/>
<alternative number="1" name="Book"/>
<alternative number="2" name="Chapter"/>
</option>
<option key="Passages.Book Case" type="int-options">
<introspect class="org.crosswire.jsword.passage.BibleInfo" property="Case"/>
<help>What case should we use to display the references.</help>
<alternative number="0" name="lower"/>
<alternative number="1" name="Sentance"/>
<alternative number="2" name="UPPER"/>
<alternative number="3" name="mIXeD"/>
</option>
<option key="Readings.Readings Set" type="string-options">
<introspect class="org.crosswire.jsword.book.readings.ReadingsBookDriver" property="ReadingsSet"/>
<help>Which of the available readings sets is the default.</help>
<map name="readings"/>
</option>
<option key="Looks.Look and Feel" type="class">
<introspect class="org.crosswire.common.swing.LookAndFeelUtil" property="LookAndFeel"/>
<help>The look and feel of the application</help>
</option>
<option key="Looks.Initial Layout" type="int-options">
<introspect class="org.crosswire.jsword.view.swing.desktop.Desktop" property="InitialLayoutType"/>
<help>Do you want to start in SDI, TDI or MDI view mode</help>
<alternative number="0" name="Tabbed Document Interface"/>
<alternative number="1" name="Multiple Document Interface"/>
</option>
<option key="Looks.Stylesheet" type="string-options">
<introspect class="org.crosswire.jsword.util.ConverterFactory" property="CurrentConverter"/>
<help>The engine used to genterate the book display</help>
<map name="converters"/>
</option>
<option key="Looks.Simple.Stylesheet" type="string-options">
<introspect class="org.crosswire.jsword.view.swing.util.SimpleSwingConverter" property="ResourceName"/>
<help>The style applied to displayed Books when using the simple styler.</help>
<map name="swing-styles"/>
</option>
<option key="Looks.Configurable.Stylesheet" type="string-options">
<introspect class="org.crosswire.jsword.view.swing.util.ConfigurableSwingConverter" property="ResourceName"/>
<help>The style applied to displayed Books when using the configurable styler.</help>
<map name="cswing-styles"/>
</option>
<option key="Looks.Configurable.font" type="string">
<introspect class="org.crosswire.jsword.view.swing.util.ConfigurableSwingConverter" property="Font"/>
<help>The font to be used to display books</help>
</option>
<option key="Advanced.Raw.Cache Data" type="boolean">
<introspect class="org.crosswire.jsword.book.raw.RawBook" property="DefaultCacheData"/>
<help>Do new RawBibles cache the entire Bible in memory, or just the indexes.</help>
</option>
<option key="Advanced.Reports.Exceptions to Dialog Box" type="boolean" priority="8">
<introspect class="org.crosswire.common.swing.ExceptionPane" property="HelpDeskListener"/>
<help>Do we display Exceptions in a GUI window.</help>
</option>
<option key="Advanced.Reports.Exceptions to Log Window" type="boolean" priority="8">
<introspect class="org.crosswire.common.swing.ExceptionShelf" property="HelpDeskListener"/>
<help>Do we display Exceptions in a the GUI shelf.</help>
</option>
<option key="Advanced.Source Path" type="path" priority="9">
<introspect class="org.crosswire.common.swing.ExceptionPane" property="SourcePath"/>
<help>The directories to search for source code in when investigating an exception.</help>
</option>
<option key="Advanced.XSLT.Cache" type="boolean">
<introspect class="org.crosswire.common.xml.TransformingSAXEventProvider" property="Cache"/>
<help>Do we cache the XSLT pages (faster but a pain for development).</help>
</option>
<option key="Advanced.Passage.Default Type" type="int-options">
<introspect class="org.crosswire.jsword.passage.PassageFactory" property="DefaultPassage"/>
<help>What type of passage does the PassageFactory create by default.</help>
<alternative number="0" name="Speed (Rocket)"/>
<alternative number="1" name="Write Speed (Bitwise)"/>
<alternative number="2" name="Size (Distinct)"/>
<alternative number="3" name="Mix (Ranged)"/>
</option>
<option key="Advanced.About Dialog.Include Debug Tab" type="boolean">
<introspect class="org.crosswire.jsword.view.swing.desktop.AboutPane" property="Debugging"/>
<help>Is the debug tab visible in the about dialog.</help>
</option>
</config>
--------------020904030709030500060709--