Can crafting_shaped make a knowledge_book with NBT, and allow 2 variants?

I'm trying to create a custom crafting_shaped recipe in Minecraft that has two different patterns but results in the same item. The two variations I want to support are:

arduino Copy

"123",
"454",
"361"

and

arduino Copy

"163",
"454",
"321"

Both should produce a knowledge_book. Additionally, I want this knowledge_book to have custom data and a custom name, but I haven’t been able to get it working yet. I even tried using online generators for custom item recipes, but the output didn’t seem to work in-game.

Its probably a skill issue but I would highly appriciate help.

Continue to help post