Skip to content

Could a small transformation script/tool be put up somewhere to quickly calculate the fol. from page? #1852

Answered by PietroLiuzzo
PietroLiuzzo asked this question in Q&A
Discussion options

You must be logged in to vote

I am not sure about the context of usage and the old issue does not help me. Which mistakes in the page pointers do you refer to? could you please point to a specific example and describe what is the expected behaviour?

If you want to encode this in oxygen, you can create a code template. Go to preferences, search for code templates, add one to the list. You can assign it the short cut you prefer and paste in the following:

${xpath_eval(
let $f := floor((number('${selection}')+1) div 2) return
if(number('${selection}') mod 2 = 1) then ($f|| 'r') else ($f|| 'v'))}
<!-- ${selection} -->

in the editor select 99 and press your selected keys combination. You will get 50r and a comment contain…

Replies: 6 comments

Comment options

PietroLiuzzo
Dec 6, 2021
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by PietroLiuzzo
Comment options

You must be logged in to vote
0 replies
Comment options

PietroLiuzzo
Dec 6, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

PietroLiuzzo
Dec 6, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1851 on December 06, 2021 11:45.