<html><head></head><body><div dir="auto">
Hi DM,
</div>
<div dir="auto">
<br>
</div>
<div dir="auto">
I’m puzzled.
</div>
<div dir="auto">
<br>
</div>
<div dir="auto">
You seems to have thought there was a bug which actually wasn’t.
</div>
<div dir="auto">
<br>
</div>
<div dir="auto">
Please refer to
<a dir="auto" href="https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references?wprov=sfti1#">https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references</a>
</div>
<div dir="auto">
<br>
</div>
<div dir="auto">
The # was not a bug !
</div>
<div dir="auto">
<br>
</div>
<div dir="auto">
Regards
</div>
<div dir="auto">
<br>
</div>
<div dir="auto">
David
</div>
<div>
<br>
</div>
<div id="protonmail_mobile_signature_block">
<div>
Sent from
<a href="https://proton.me/mail/home">Proton Mail</a> for iOS
</div>
</div>
<div>
<br>
</div>
<div>
<br>
</div>On Wed, Aug 6, 2025 at 22:20, DM Smith <
<a href="mailto:On Wed, Aug 6, 2025 at 22:20, DM Smith <<a href=" class="">dmsmith@crosswire.org</a>> wrote:
<blockquote class="protonmail_quote" type="cite">
I’ve just checked in a change for osis2mod.
<br>
<br>MODTOOLS-17 To osis2mod, added conversion of hex and decimal numeric entities to UTF-8, with special handling of <, >, &, ', and ".
<br>
<br>Also:
<br> * Fixed a bug in hex numeric entities which defined &xHHHH; rather than &#xHHHH;.
<br> * Added entity sanity check of maximum length of 32.
<br> * Refactored entity handling into handleEntities and comment handling into handleComments.
<br> * Changed t_entitytype and t_commentstate into class enums EntityType and CommentState.
<br> * Added -d 1024 for entity and comment parsing.
<br>
<br>Note: The coding allows for 0 padding of the numeric entities.
<br>Note: The 5 need to be treated specially.
<br> & or & → &
<br> < or < → <
<br> > or > → >
<br> " or " → " or "
<br> ' or ' → ' or '
<br>When converted to these forms, " should be transformed into " except in attributes using " and likewise ' into ' except in attributes having ‘.
<br>
<br>I need to update the wiki to match.
<br>
<br>In Him,
<br> DM Smith
<br>
<br>_______________________________________________
<br>sword-devel mailing list: sword-devel@crosswire.org
<br>http://crosswire.org/mailman/listinfo/sword-devel
<br>Instructions to unsubscribe/change your settings at above page
<br>
</blockquote></body></html>