I created the @Resources folder in the root level folder of the skin I'm using. I created the "Fonts" folder inside it. I placed the desired font, which happens to be "MS Gothic" as it was one I had downloaded and installed because it displays Japanese characters in Microsoft Word and whatnot.
Anyways, I then opened up the skin's notepad file and added "MS Gothic" to the FontFace string as required. Afterwards I changed the following line:
"Monday":"MONDAY","Tuesday":"TUESDAY","Wednesday":"WEDNESDAY","Thursday":"THURSDAY","Friday":"FRIDAY","Saturday":"SATURDAY","Sunday":"SUNDAY"
And replaced the days of the week with their Japanese equivalents in order to test it.
The font did change, but it still was displaying the day of the week in English, for some reason.
How do I fix this?
It is currently April 19th, 2024, 3:43 pm
Japanese characters won't display.
-
- Posts: 9
- Joined: September 10th, 2013, 9:51 pm
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
Re: Japanese characters won't display.
hard to tell without seeing your code. i'd guess you probably have a typo, forgot Substitute= or placed the line at a meter instead of a measure.
here's an example that works:
here's an example that works:
Code: Select all
[MeasureWeekdayTes]
Measure=Time
Format=%A
Substitute="Monday":"げつようび","Tuesday":"かようび","Wednesday":"すいようび","Thursday":"もくようび","Friday":"きんようび","Saturday":"どようび","Sunday":"にちようび"
[MeterWeekdayTes]
Meter=String
MeasureName=MeasureWeekdayTes
SolidColor=ffffff
-
- Posts: 9
- Joined: September 10th, 2013, 9:51 pm
Re: Japanese characters won't display.
It worked What I did wrong was changing both the lower case weekday and the upper case one on the "Substitute" line. Changing only the upper case weekday to its Japanese equivalent made it work.
Thanks, man.
Thanks, man.
-
- Posts: 9
- Joined: September 10th, 2013, 9:51 pm
Re: Japanese characters won't display.
I have another small issue.
The month and day of the week (the ones that are displayed in Japanese) are slightly more positioned to the left than everything else.
When trying to change the x or y values on their meter strings, I always fail to get them more to the right and to align with everything else. Usually, when moving the day of the week, the year also moves with it. Weird stuff.
Everything is positioned on the right of my desktop as far as it can go, except those two. They can't seem to align with everything else.
The month and day of the week (the ones that are displayed in Japanese) are slightly more positioned to the left than everything else.
When trying to change the x or y values on their meter strings, I always fail to get them more to the right and to align with everything else. Usually, when moving the day of the week, the year also moves with it. Weird stuff.
Everything is positioned on the right of my desktop as far as it can go, except those two. They can't seem to align with everything else.
Last edited by jsmorley on December 1st, 2013, 12:51 am, edited 1 time in total.
Reason: Use [hsimg] tags for large images
Reason: Use [hsimg] tags for large images
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
Re: Japanese characters won't display.
first thing to try is using AccurateText=1 to the [Rainmeter] section.
http://docs.rainmeter.net/manual/skins/rainmeter-section#AccurateText
if you are still not happy change the X positions of the single meters. read the docs:
http://docs.rainmeter.net/manual/meters/general-options#XY
read the part about relative positions twice.
http://docs.rainmeter.net/manual/skins/rainmeter-section#AccurateText
if you are still not happy change the X positions of the single meters. read the docs:
http://docs.rainmeter.net/manual/meters/general-options#XY
read the part about relative positions twice.
-
- Posts: 9
- Joined: September 10th, 2013, 9:51 pm
Re: Japanese characters won't display.
Adding the AccurateText=1 line changed nothing.moshi wrote:first thing to try is using AccurateText=1 to the [Rainmeter] section.
http://docs.rainmeter.net/manual/skins/rainmeter-section#AccurateText
if you are still not happy change the X positions of the single meters. read the docs:
http://docs.rainmeter.net/manual/meters/general-options#XY
read the part about relative positions twice.
On the MeterMonth the x is x=r. There's no number there. If I remove the r, the month and the time display vanish completely. If I leave the r as it is and add any number before it, everything moves to the left, rather than just the month display.
The same thing goes for the day of the week. (The day of the week is labeled as "Day1")
Any explanation as to why this is occurring?
Here's the text file's contents: The weather display is a different one. Everything's fine with it.
[Rainmeter]
Author=lilshizzy@gmail.com
@include=#SKINSPATH#Simple Media\Variables\Fonts.inc
[Metadata]
Name=SM DateTime NM
Config=
Description=A simple & efficient way to keep time, with style.
Instructions='Click & drag' to your preferred position. If you're comfortable editing simple color code customize to your liking.
Version=
Tags=Thanks to the authors of both Token & Enigma for inspiring and providing code for this project.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=
Preview=lilshizzy.deviantart.com
[MeasureTime]
Measure=Time
Format="%H:%M"
;For seconds add %S
[MeasureTime2]
Measure=Time
Format="%p"
[MeasureYear]
Measure=Time
Format="%Y"
[MeasureDate]
Measure=Time
Format=%d
[MeasureMonth]
Measure=Time
Format=%B
Substitute="January":"一月","February":"二月","March":"三月","April":"四月","May":"五月","June":"六月","July":"七月","August":"八月","September":"九月","October":"十月","November":"十一月","December":"十二月"
[MeasureDay1]
Measure=Time
Format=%A
Substitute="Monday":"月曜日","Tuesday":"火曜日","Wednesday":"水曜日","Thursday":"木曜日","Friday":"金曜日","Saturday":"土曜日","Sunday":"日曜日"
[Variables]
@include=#SKINSPATH#Simple Media\Variables\Default.inc
-------------------------------------METERS--------------------------------------------
[Background]
Meter=IMAGE
SolidColor=0,0,0,1
X=0
Y=0
W=600
H=100
[MeterYear]
MeasureName=MeasureYear
Meter=STRING
X=650
Y=10
FontColor=#Color1#
FontSize=45
FontFace=#LocalFontFace#
StringAlign=Right
StringStyle=Bold
AntiAlias=1
[MeterDay1]
MeasureName=MeasureDay1
Meter=STRING
X=r
Y=63r
FontColor=150,255,0,255
FontSize=45
FontFace=MS Gothic
StringAlign=Right
StringStyle=Bold
AntiAlias=1
[MeterDate]
MeasureName=MeasureDate
Meter=STRING
X=r
Y=38r
FontColor=#Color1#
FontSize=45
FontFace=#LocalFontFace#
StringAlign=Right
StringStyle=Bold
AntiAlias=1
[MeterMonth]
MeasureName=MeasureMonth
Meter=STRING
X=r
Y=63r
FontColor=92,225,61,255
FontSize=45
FontFace=MS Gothic
StringAlign=Right
StringStyle=Bold
AntiAlias=1
[TimeMeasure]
MeasureName=MeasureTime
Meter=STRING
X=-3r
Y=46r
FontColor=150,255,0,255
FontSize=45
FontFace=#LocalFontFace#
StringAlign=Right
StringStyle=Normal
AntiAlias=1
[MeterTime2]
MeasureName=MeasureTime2
Meter=STRING
X=3r
Y=45r
FontColor=#Color1#
FontSize=45
FontFace=#LocalFontFace#
StringAlign=Right
StringStyle=Bold
AntiAlias=1
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
Re: Japanese characters won't display.
well, the answer is right in the link i gave you:CrystallineXLr8R wrote:... everything moves to the left, rather than just the month display. ... Any explanation as to why this is occurring?
http://docs.rainmeter.net/manual/meters/general-options#XY
this happens because you use relative positions.
change all your X options to absolute positions, as you can see in the [MeterYear] section. then start tinkering until you like what you have done.
-
- Posts: 9
- Joined: September 10th, 2013, 9:51 pm
Re: Japanese characters won't display.
If I remove the r and use absolute positions (on the month section, for example) the month and time display will completely disappear.moshi wrote: well, the answer is right in the link i gave you:
http://docs.rainmeter.net/manual/meters/general-options#XY
this happens because you use relative positions.
change all your X options to absolute positions, as you can see in the [MeterYear] section. then start tinkering until you like what you have done.
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
Re: Japanese characters won't display.
have you tried to use the same value for X as in the [MeterYear] section yet?
-
- Posts: 9
- Joined: September 10th, 2013, 9:51 pm
Re: Japanese characters won't display.
Yep. If I remove the r, nothing happens. But if I keep the r and the same value as shown in the MeterYear string, the Year display will move a considerable distance to the left, while everything stays the same.