Text this: Codebook-Based Self-Sustainable RIS: Optimal Splitting Schemes and Power Allocation