More text tags?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
xavimat
Eileen-Class Veteran
Posts: 1458
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

More text tags?

#1 Post by xavimat » Fri Apr 18, 2014 5:27 am

I think it would be useful to have more general text tags (http://renpy.org/doc/html/text.html#general-text-tags)
like:
  • All caps
  • Small caps
  • Superindex
  • Subindex
What do you think?
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: More text tags?

#2 Post by Asceai » Fri Apr 18, 2014 6:20 am

Something I'd like to see even more is custom text tags. Currently you could e.g. have your own say handler and perform (limited) transformational work on the text between your custom tags, but it won't take effect everywhere tags can be used (e.g. on screens) so a more general solution to that would be nice.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1458
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: More text tags?

#3 Post by xavimat » Sat Apr 19, 2014 3:28 am

Asceai wrote:Something I'd like to see even more is custom text tags.
There are, in fact, User-defined Text Tags, but I'm not sure how they work. There are no examples in the doc.
http://renpy.org/doc/html/text.html#use ... -text-tags
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: More text tags?

#4 Post by Asceai » Sat Apr 19, 2014 5:30 am

Oh right, I forgot about those.
I think those work like this: {=example_style}Testing{/}
with a style defined somewhere:

Code: Select all

style example_style:
    bold True
They wouldn't work for all caps / small caps unless you have an all caps / small caps font. I don't know if they would even work for subscript/superscript since you can't really add an offset or something to them, so it's pretty limited. I'd say the main use is if you frequently specify a particular set of text styles through tags to show certain things:

Code: Select all

"I held out my right hand, and summoning {i}numen{/i} into the centre of my palm, drew {b}{color=#FF3510}{size=18}{font=fancyfont.ttf}götterdämmerung{/font}{/size}{/color}{/b} from the twilight realm. The ghostly blade materialised in my hand, drinking light and colour from the air surrounding it."
instead, replace it with a style:

Code: Select all

"I held out my right hand, and summoning {i}numen{/i} into the centre of my palm, drew {=aether_key}götterdämmerung{/} from the twilight realm. The ghostly blade materialised in my hand, drinking light and colour from the air surrounding it."

Post Reply

Who is online

Users browsing this forum: No registered users