This simple data pack / mod for 1.20+ expands the list of blocks that you can place around your enchanting table without blocking the bookshelves they're next to. In vanilla, this list is currently restricted to only a few things such as ferns and grass.
Check out the gallery for example enchanting area builds you can now create!
Included:
This pack includes blocks that don't have a full-block hitbox, or have reasonable holes in their textures. Unfortunately, slabs and stairs can't be included because there is no way to determine how they are placed.
Mod support:
There is general support for all modded blocks that are included in the default minecraft tags, such as #fences and #all_signs, but blocks that are not part of these tags need to be added individually.
Fully supported mods:
The list will expand as I find time to add more.
Also on Planet Minecraft