Have you considered using XSLT? If not, I'd be happy to try and help. This
is the kind of task XSLT was designed for.

Kind regards,

Ted

On Fri, Aug 30, 2019, 4:48 PM Steve Willis <misc.ramblin...@gmail.com>
wrote:

> I have an ePub book (a bunch of XHTML documents) which was generated by
> InDesign.
>
> In InDesign, I have mapped my dictionary definitions with the terms
> wrapped to <dt> tags and the definitions wrapped in <dd> tags. That part
> works great.
>
> The problem is these <dt> and <dl> tags are not wrapped with the requisite
> <dl> tags, which causes the ePub validator to have whole litters of kittens.
>
> Some of the defs have 1 or more <dt><dd> pairs, others have one <dt> and
> several <dd> tags, etc.
>
> I want to be able to do a GREP search using BBEdit, finding all the
> <dt><dd> combos and wrapping the found results with <dl> tags.
>
> 1. Is this even possible?
>
> 2. How do I go about it?
>
> Thanks!
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/8d6e7751-af48-42ab-9857-a45b66ce8757%40googlegroups.com
> <https://groups.google.com/d/msgid/bbedit/8d6e7751-af48-42ab-9857-a45b66ce8757%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAKAQjie-OQDa5bZDmi4w19NbptjMbmjC1xPB%2B9PrZv1-xNWCOA%40mail.gmail.com.

Reply via email to