[sword-devel] XHTML and Khmer

Nic Carter niccarter at mac.com
Tue Jan 1 19:06:33 MST 2013

On 20/12/2012, at 7:06 AM, Manfred Bergmann <manfred.bergmann at me.com> wrote:

> a) what are the XHtml filters. What are they for? Do they do anything different than the HtmlHref filters?

Don't think anyone answered this question?

Right now they're almost exactly the same. The idea is that these can be hacked to do things more properly rather than the horrid html that is produced by the htmlhref filters... Almost like a fresh start, altho not much has been changed so far.

Ideally they should produce loads of html code with classes for all the display markup (such as <a href="blah" class="strongs">), rather than using loads of markup elements (such as <small><em class="strongs"><a href="blah" class="strongs">) which is what we currently do...
Why bother with all those markup elements AND using classes, when using appropriate classes would make the use of the markup irrelevant? :/

Compare my hacked version of osishtmlhref.ccp:67 at https://bitbucket.org/niccarter/pocketsword/src/74e571ae219c821e1aaf9764d8c43ae7b52ffb9f/externals/sword/src/modules/filters/osishtmlhref.cpp?at=default#cl-67

to the equivalent line in osisxhtml.cpp:79

But I am hoping that the xhtml filters will be properly updated and work will be done to validate the xhtml output.  ;)
I would have tried this long ago, but I gather there is too much attachment with the filters for any one front-end to attempt to change them? hence my fork of the htmlhref filters for use in PS.  :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20130102/b6b24ef8/attachment.html>

More information about the sword-devel mailing list