brailleapps / dotify.formatter.impl

Provides an implementation of the formatter interfaces in dotify.api
GNU Lesser General Public License v2.1
0 stars 6 forks source link

Provide a variable for determining whether you are on a right- or left-hand page #34

Open bertfrees opened 6 years ago

bertfrees commented 6 years ago

so that

<template use-when="(= (% $page 2) 1)">
  ...
</template>

which does not work anymore when a initial-page-number has been set with an even value, could be replaced with:

<template use-when="$is-right-hand-page">
  ...
</template>

See https://github.com/brailleapps/dotify/issues/134#issuecomment-197021741.

bertfrees commented 5 years ago

Will need to be defined in specification first (although not all available variables/functions are currently in the spec).