I am using subtitle on Kobotouch plugin and using
this config in the subtitle:
Code:
program:
int_words = raw_field('#words');
# return wordcount in terms of million, e.g. 1m, 1.2m etc
if int_words ># 995000 then
int_words2 = divide(int_words,1000000);
str_words = strcat(format_number(int_words2, '{0: 2.1f}'), '');
if '0' in str_words then
sf_words = format_number(int_words2, '{0: 2.0f}')
else
sf_words = format_number(int_words2, '{0: 2.1f}')
fi;
word_count = strcat(sf_words, 'm')
# wordcount in terms of thousands, e.g. 120k, 230k etc
elif int_words ># 10000 then
int_words2 = divide(int_words,10000);
sf_words = format_number(int_words2, '{0: 2.0f}');
word_count = strcat(sf_words, '0k')
elif int_words ># 1 then
int_words2 = divide(int_words,1000);
sf_words = format_number(int_words2, '{0: 2.0f}');
word_count = strcat(sf_words, 'k')
fi;
subtitle = strcat(field('#pages'), ' |', word_count, ' words')
How can i add the term/word "pages" after the number of pages in the highlighted part of the subtitle? (see attached image)