[jsword-devel] [JIRA] (JS-292) Paragraph support

DM Smith dmsmith at crosswire.org
Sat Feb 21 08:42:10 MST 2015


This will need to be added to STEP, AndBible, AlKitab, … for it to have effect there.

This is due to a change in osis2mod that it converts <p> and </p> to <div type="x-p” sID="genXXX”/> and <div type="x-p” eID="genXXX”/> respectively.

In Him,
	DM

> On Feb 21, 2015, at 10:33 AM, DM Smith (JIRA) <jira at crosswire.org> wrote:
> 
> <Mail Attachment.png>                              	DM Smith <https://www.crosswire.org/tracker/secure/ViewProfile.jspa?name=dmsmith> commented on <Mail Attachment.png> JS-292 <https://www.crosswire.org/tracker/browse/JS-292>                              
>  
> Re: Paragraph support <https://www.crosswire.org/tracker/browse/JS-292>
> This actually isn't part of JSword, rather each frontend needs to update its xslt that transforms OSIS to HTML.
> The following lines should be added right before the <xsl:template match="div">...</xsl:template>:
> <xsl:template match="div[@type='x-p' and not(@eID or @sID)]">
> <br/><xsl:apply-templates/><br/>
> </xsl:template>
> <xsl:template match="div[@type='x-p' and @sID]">
> <br/><xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="div[@type='x-p' and @eID]">
> <xsl:apply-templates/><br/>
> </xsl:template>
> And before <xsl:template match="div" mode="jesus">...</xsl:template> add:
> <xsl:template match="div[@type='x-p' and not(@eID or @sID)]" mode="jesus">
> <br/><xsl:apply-templates mode="jesus"/><br/>
> </xsl:template>
> <xsl:template match="div[@type='x-p' and @sID]" mode="jesus">
> <br/><xsl:apply-templates mode="jesus"/>
> </xsl:template>
> <xsl:template match="div[@type='x-p' and @eID]" mode="jesus">
> <xsl:apply-templates mode="jesus"/><br/>
> </xsl:template>
> Note that the div elements that have sID and eID are expected to be self-closing, but this allows for them to be containers. To ignore any content in these remove the <xsl:apply-templates/> with in them.
> <Mail Attachment.png>  <https://www.crosswire.org/tracker/browse/JS-292#add-comment>                                                      	Add Comment <https://www.crosswire.org/tracker/browse/JS-292#add-comment>                                                      
>  
> This message was sent by Atlassian JIRA (v6.2#6252-sha1:aa34325)	
> <Mail Attachment.png>                                          
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20150221/d6eff7ac/attachment-0001.html>


More information about the jsword-devel mailing list