<html><head></head><body> <div>Does anything need to be added to our wiki page?</div><div><br></div><div><a href="https://wiki.crosswire.org/DevTools:conf_Files#Elements_required_for_proper_rendering">https://wiki.crosswire.org/DevTools:conf_Files#Elements_required_for_proper_rendering</a><br></div><div><br></div><div>It’s the last row in the table in this section.</div><div><br></div><div>Troy, How does Bishop handle CSS ?</div><div><br></div><div>Anyone, How do other JSword based front-ends handle CSS ?</div><div>eg. Does STEP Bible use it in any way ?</div><div><br></div><div>Aside:</div><div>The xulsword app (aka Holy Bible aka Mukkades Kitap) also has a number of app-specific config keys.</div><div>eg LanguageSortOrder</div><div><br></div><div>Ideas like this often have a potentially wider application than one particular front-end.</div><div>It might in some cases make sense to bring the proper feature they are required for into both the back-end APIs.<caret></caret></div><div><br></div>Best regards <div><br></div><div>David<br><div><br></div><div id="protonmail_mobile_signature_block"><div>Sent from ProtonMail Mobile</div></div> <div><br></div><div><br></div>On Thu, Mar 4, 2021 at 06:29, Tuomas Airaksinen <<a href="mailto:tuomas.airaksinen@gmail.com" class="">tuomas.airaksinen@gmail.com</a>> wrote:<blockquote class="protonmail_quote" type="cite"> <div dir="ltr">Hi,<div><br></div><div>I have implemented support for per-module custom CSS for And Bible (to be in And Bible 3.4, which is planned to be released later this year). I noticed that there's PreferredCSSXHTML config key for this purpose. However, CSS for And Bible need to be formatted in a specific way and plain CSS would mess up things -- I need per-module namespacing because the same WebView instance can show multiple module content simultaneously in some contexts (compare view, multi doc view, my notes, study pads etc). In addition, I also support specifying separate settings for dark night mode. Thus, I ended up, for now, using a custom AndBibleCSS key instead.</div><div><br></div><div>Current draft of how And Bible implements this, can be read here:</div><div><a href="https://github.com/AndBible/and-bible/wiki/Custom-CSS-for-modules-for-And-Bible">https://github.com/AndBible/and-bible/wiki/Custom-CSS-for-modules-for-And-Bible</a><br></div><div><br></div><div>How are other frontends implementing PreferredCSSXHTML? </div><div>Is there something similar implemented elsewhere too, as what I am doing? </div><div>Are there any modules using this configuration key in Crosswire or other public repositories? </div><div>Any other thoughts related to my approach?</div><div><div><br></div>Best regards,<br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Tuomas</div></div></div>
</blockquote><div><br></div><div><br></div></div></body></html>