Open morvael opened 3 years ago
My solution:
Added after ";; Now for replacing regular quotes into smart quotes in the lore" comment:
;; replace 3/2 combos first
[lore_replaced] = REPLACE([lore_replaced],">\34\\34\'",">““‘")
[lore_replaced] = REPLACE([lore_replaced],"'\34\\34\<","’””<")
[lore_replaced] = REPLACE([lore_replaced],">\34\'\34\",">“‘“")
[lore_replaced] = REPLACE([lore_replaced],"\34\'\34\<","”’”<")
[lore_replaced] = REPLACE([lore_replaced],">\34\'",">“‘")
[lore_replaced] = REPLACE([lore_replaced],"'\34\<","’”<")
Also to support custom formatting using div tags (which allow to specify some css styles directly for the html renderer bypassing nandeck, add at the end of the replacement file:
;; allow div tags with style attribute in lore to work
[lore_replaced] = REPLACE([lore_replaced],"style=“","style=\34\")
[lore_replaced] = REPLACE([lore_replaced],"“>","\34\>")
"'"
may appear at start of text and at end of text. Please be aware they are symmetrical, the ending one can be IMHO detected by the fact that it usually follows a dot.