[Solved] Inserting unique letters?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Regular
- Posts: 93
- Joined: Mon Dec 30, 2013 1:55 am
- Projects: Project Bluefield - Origins
- Organization: Autumn Rain
- Deviantart: playerzero17
- itch: autumn-rain
- Contact:
[Solved] Inserting unique letters?
Is there a way to insert unique letters such as é and ł into the script, such as in the gui.about section? I tried putting ł directly into the script earlier, but it messed with the formatting and turned into a different letter entirely.
Last edited by 017Bluefield on Fri May 04, 2018 2:13 am, edited 1 time in total.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Inserting unique letters?
Does the font you are using support the character/s?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 93
- Joined: Mon Dec 30, 2013 1:55 am
- Projects: Project Bluefield - Origins
- Organization: Autumn Rain
- Deviantart: playerzero17
- itch: autumn-rain
- Contact:
Re: Inserting unique letters?
Yes, Open Sans does support it.
One other thing, I tried putting it in a different spot and it worked, but when I tried to put it where I wanted it, it gave me the weird formatting at the beginning and ending of that line.
This is the first example, which didn't work:
Now here's the second, which did work:
One other thing, I tried putting it in a different spot and it worked, but when I tried to put it where I wanted it, it gave me the weird formatting at the beginning and ending of that line.
This is the first example, which didn't work:
Code: Select all
define gui.about = _("""\
Created by ***.
SFX from ***.
Music:
\"***\" by *** Musiał.""")
Code: Select all
define gui.about = _("""\
Created by ***.
ł
SFX from ***.
Music:
\"***\" by *** Musial.""")
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: Inserting unique letters?
That's strange...017Bluefield wrote: ↑Sat Apr 14, 2018 1:13 am Yes, Open Sans does support it.
One other thing, I tried putting it in a different spot and it worked, but when I tried to put it where I wanted it, it gave me the weird formatting at the beginning and ending of that line.
This is the first example, which didn't work:Now here's the second, which did work:Code: Select all
define gui.about = _("""\ Created by ***. SFX from ***. Music: \"***\" by *** Musiał.""")
Code: Select all
define gui.about = _("""\ Created by ***. ł SFX from ***. Music: \"***\" by *** Musial.""")
- Do you need to scape the quotes " when you are inside a triple-quoted block?
- Have you tried typographical quotes instead of straight ones? “”
- Why do you need the first backslash?
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)
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)
-
- Regular
- Posts: 93
- Joined: Mon Dec 30, 2013 1:55 am
- Projects: Project Bluefield - Origins
- Organization: Autumn Rain
- Deviantart: playerzero17
- itch: autumn-rain
- Contact:
Re: Inserting unique letters?
- First: I believe so?
- Second: No, not yet
- Third: I don't know, the first backslash was part of the gui.about code.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Inserting unique letters?
You do not need to escape quotes within a triple quoted block, as far as I know. I never have and so far I've had no troubles (I make use of triple quotes a lot)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 93
- Joined: Mon Dec 30, 2013 1:55 am
- Projects: Project Bluefield - Origins
- Organization: Autumn Rain
- Deviantart: playerzero17
- itch: autumn-rain
- Contact:
Re: Inserting unique letters?
Tested getting rid of the first \ before the first line of text...
No dice.
BTW, the error adds \u to the start of the last line, and replaces ł with Å,. Yes, it replaces one unique character with a different character and a...comma?
Code: Select all
define gui.about = _("""Created by ***.
SFX from ***.
Music:
\"***\" by *** Musiał, for the game {i}***{/i}.""")
BTW, the error adds \u to the start of the last line, and replaces ł with Å,. Yes, it replaces one unique character with a different character and a...comma?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Inserting unique letters?
I may have been mistaken.
I am not able to check right now.
I am not able to check right now.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Inserting unique letters?
Try:
# Upper case
\u0141
or
# Lower case
\u0142
If that still outputs an odd looking character, open the font in Start->Windows Accessories->Character Map (or whatever on *nix/mac) and find the unicode character reference...
# Upper case
\u0141
or
# Lower case
\u0142
Code: Select all
define gui.about = _("""\
Created by ***.
SFX from ***.
Music:
"***" by *** Musia\u0142.""")
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Inserting unique letters?
I think it is because you are still escaping the quotes. Removing the escape characters works fine for me.017Bluefield wrote: ↑Thu May 03, 2018 3:15 am Tested getting rid of the first \ before the first line of text...
No dice.Code: Select all
define gui.about = _("""Created by ***. SFX from ***. Music: \"***\" by *** Musiał, for the game {i}***{/i}.""")
BTW, the error adds \u to the start of the last line, and replaces ł with Å,. Yes, it replaces one unique character with a different character and a...comma?
Code: Select all
define gui.about = _("""Created by ***.
SFX from ***.
Music:
"***" by *** Musiał, for the game {i}***{/i}.""")
Leaving them in causes issues.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 93
- Joined: Mon Dec 30, 2013 1:55 am
- Projects: Project Bluefield - Origins
- Organization: Autumn Rain
- Deviantart: playerzero17
- itch: autumn-rain
- Contact:
Re: Inserting unique letters?
Ohhhhhh, okay. Sorry, I was under the impression that \" \" was necessary.Imperf3kt wrote: ↑Thu May 03, 2018 9:28 am ...
I think it is because you are still escaping the quotes. Removing the escape characters works fine for me.And a screenshot from in-gameCode: Select all
define gui.about = _("""Created by ***. SFX from ***. Music: "***" by *** Musiał, for the game {i}***{/i}.""")
Leaving them in causes issues.
Code: Select all
"***" by ...
Who is online
Users browsing this forum: Bing [Bot], Ocelot