Difference between revisions of "Talk:Frontends:URI Standard"

From CrossWire Bible Society
Jump to: navigation, search
Line 6: Line 6:
  
 
* Is the URI that '''Xiphos''' uses for genbooks the actual SWORD standard?  (that is, '''sword://Josephus//The+Antiquities+of+the+Jews/Book+1/Chapter+1/Section+4''')  I haven't looked into supporting genbooks in '''PocketSword''' yet, so I'm not sure quite what is expected.  --[[User:Niccarter|Niccarter]] 02:06, 3 April 2010 (UTC)
 
* Is the URI that '''Xiphos''' uses for genbooks the actual SWORD standard?  (that is, '''sword://Josephus//The+Antiquities+of+the+Jews/Book+1/Chapter+1/Section+4''')  I haven't looked into supporting genbooks in '''PocketSword''' yet, so I'm not sure quite what is expected.  --[[User:Niccarter|Niccarter]] 02:06, 3 April 2010 (UTC)
 +
 +
** Yes, '''Xiphos''' does it correctly. The system is just '''sword://module/key'''. Since GenBook keys are '''/level1/level2/level3/level4/...''', with a leading /, there's a double // following the module name. The +s and any other URL-encoding should be handled (I believe by the front end), so that '''sword://Josephus//The+Antiquities+of+the+Jews/Book+1/Chapter+1/Section+4''' gets translated to Module: '''Josephus''', Key: '''/The Antiquities of the Jews/Book 1/Chapter 1/Section 4'''.

Revision as of 07:13, 3 April 2010

Official Standard

I found there is no official and even unofficial standard for Bible resources. Need we request for such standard and does anybody knows how? --Kalemas 07:33, 2 April 2010 (UTC)

GenBook URIs

  • Is the URI that Xiphos uses for genbooks the actual SWORD standard? (that is, sword://Josephus//The+Antiquities+of+the+Jews/Book+1/Chapter+1/Section+4) I haven't looked into supporting genbooks in PocketSword yet, so I'm not sure quite what is expected. --Niccarter 02:06, 3 April 2010 (UTC)
    • Yes, Xiphos does it correctly. The system is just sword://module/key. Since GenBook keys are /level1/level2/level3/level4/..., with a leading /, there's a double // following the module name. The +s and any other URL-encoding should be handled (I believe by the front end), so that sword://Josephus//The+Antiquities+of+the+Jews/Book+1/Chapter+1/Section+4 gets translated to Module: Josephus, Key: /The Antiquities of the Jews/Book 1/Chapter 1/Section 4.