[sword-devel] CSS in Xiphos

David Haslam dfhdfh at protonmail.com
Tue May 15 10:21:29 MST 2018


Let's step back from OSIS XML briefly.

USFM defines markers \qt_...\qt* for quotations.
See https://ubsicap.github.io/usfm/characters/index.html#qt-qt

Given that at least one available conversion script (https://github.com/adyeths/u2o ) processes this, we simply need to know the corresponding XML output.
Line 518 of u2o.py has:
    r'\qt': ('<seg type="otPassage">', '</seg>'),

Section 13.14. seg of the OSIS 2.1 User Reference includes:
The type attribute on the seg element has four values (in addition to "x-") which are:
• alluded
• keyword
• otPassage
• verseNumber

So clearly, the Python script u2o.py conforms to the OSIS standard in this particular.

What's required therefore is a CSS style that will apply to the text wrapped in a seg element with this particular type value.

Even if the SWORD engine remains agnostic of this construction, the XML would be still preserved in the module, so any CSS predicated on it should work OK.

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On 15 May 2018 5:57 PM, Cyrille <lafricain79 at gmail.com> wrote:

> Le 15/05/2018 à 17:53, Karl Kleinpaste a écrit :
>
>> On 05/15/2018 12:09 PM, Cyrille wrote:
>>
>>> is it already possible to show otquotation quoted?
>>
>> I mentioned before that there appears to be no Sword-defined CSS class for OT quotations. All that's used is (shock! horror!) explicit visual presentation indicators like "line indent0" and "small-caps".
>
> Yes I remember, is it possible to add that to sword?
>
>> _______________________________________________
>> sword-devel mailing list:
>> sword-devel at crosswire.org
>>
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20180515/be4f7e30/attachment.html>


More information about the sword-devel mailing list