Why
In the current CSS implementation we need to escape to perl whenever we want to set or read a text register.
And the text register are addressed using numbers.
None of that is particularly efficient or user friendly.
Implementation
I would like to propose the following 2 xpp properties that allows us to set the content of text register:
- -xpp-text-register-start: <name>
starts the capture of the text into a named text register - -xpp-text-register-end: <name>
stops the capture of the text into a named text register
Remarks:
- The display property will define if the text is printed and stored (= cs macro) or just stored and suppressed (=px macro)
- These properties can only be used in the main text and will always store the text in both a dynamic and frills text registers (just to make it easy on the user)
Reading back the content of the register is done through the -xpp-text-register(name, <instance>) in a before: or after: pseudo selector
Goals
- keep as much of the styles setup in the CSS stylesheet
- make it possible for the novice user to use text registers without having an intimate knowledge of how text registers work in XPP
- enhance composition speed as there is no need to escape to perl