japanese translate

Discuss, plan, and make Translations for FreeOrion
Message
Author
User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12573
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: japanese translate

#16 Post by Geoff the Medio » Sun Mar 22, 2020 4:19 pm

nanimosinaihito wrote:
Sun Mar 22, 2020 12:43 pm
I think we can use this font in freeorion.
An issue might be the file size, around 5 MB per .ttf file. That might be a bit much to include in the default download packages.

User avatar
adrian_broher
Programmer
Posts: 1125
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: japanese translate

#17 Post by adrian_broher » Mon Mar 23, 2020 11:38 am

@nanimosinaihito

Is there anything that speaks against the usage of one of the Noto font familiy? What about Noto Sans JP or CJK? That should cover the glyphs you need.

> An issue might be the file size, around 5 MB per .ttf file.

The current release files are tiny, 5 or 20 MB more or less don't make a difference.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

nanimosinaihito
Space Floater
Posts: 29
Joined: Mon Oct 07, 2019 12:20 pm
Location: japan

Re: japanese translate

#18 Post by nanimosinaihito » Mon Mar 23, 2020 12:16 pm

I could only find the oft file, but I think it works.
If you put cjk, you will put Chinese version, Japanese version and Korean version

nanimosinaihito
Space Floater
Posts: 29
Joined: Mon Oct 07, 2019 12:20 pm
Location: japan

Re: japanese translate

#19 Post by nanimosinaihito » Mon Mar 23, 2020 1:32 pm

I've looked closely and it looks like 15MB can cover 3 languages,
cjk font is in ubuntu.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12573
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: japanese translate

#20 Post by Geoff the Medio » Mon Mar 23, 2020 2:26 pm

nanimosinaihito wrote:
Mon Mar 23, 2020 1:32 pm
I've looked closely and it looks like 15MB can cover 3 languages
adrian_broher wrote:
Mon Mar 23, 2020 11:38 am
The current release files are tiny, 5 or 20 MB more or less don't make a difference.
15 MB is 10% of the largest installer file size. If it's just the one font, that's probably OK, but if we get many more other languages, an alternative involving separate downloads of font + stringtable packages might be needed.

User avatar
Ouaz
Dyson Forest
Posts: 226
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: japanese translate

#21 Post by Ouaz » Mon Mar 23, 2020 3:06 pm

Geoff the Medio wrote:
Tue Mar 03, 2020 10:18 pm
I added an option widget for the bold font in master.
Does this commit mean that the Roboto-Bold font will be now used by default if the Bold Font is checked in the Options?

If yes, the glyphs U+27F2 and U+27F3 ('Clockwise Gapped Circle Arrow' and 'Anti-Clockwise Gapped Circle Arrow'), used in the Production Queue, are missing in the Roboto-Bold font.

I did the modification only for the Roboto-Regular font, back in 2016 (8b534fd).
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12573
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: japanese translate

#22 Post by Geoff the Medio » Mon Mar 23, 2020 3:17 pm

Ouaz wrote:
Mon Mar 23, 2020 3:06 pm
Does this commit mean that the Roboto-Bold font will be now used by default if the Bold Font is checked in the Options?
I'm not sure what "is checked in the Options" means. There's no check box for fonts, just a file select box.

Regardless, all that commit did was add a visible option on the Options screen UI for what was already an internal option to select the bold font file. Nothing about what font is used where by default was changed.
Options_Font_Tab.png
Options_Font_Tab.png (57.44 KiB) Viewed 109 times

User avatar
Ouaz
Dyson Forest
Posts: 226
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: japanese translate

#23 Post by Ouaz » Mon Mar 23, 2020 3:35 pm

Oh ok, thanks.

So, the glyphs I've mentioned are definetely missing in the Roboto-Bold font:
roboto-regular-text.png
roboto-regular-text.png (9.76 KiB) Viewed 106 times
roboto-bold-text.png
roboto-bold-text.png (9.19 KiB) Viewed 106 times
Here's the modified Roboto-Bold font with glyphs U+27F2 and U+27F3 ('Clockwise Gapped Circle Arrow' and 'Anti-Clockwise Gapped Circle Arrow') , which I never commited (I don't know why).

Sorry for the zip, it is not possible to attach a .ttf file. Let me know if you prefer I create a pull request.
roboto-bold-text-fix.png
roboto-bold-text-fix.png (9.61 KiB) Viewed 106 times
Attachments
Roboto-Bold-fix_glyph.zip
(87.75 KiB) Downloaded 1 time
Last edited by Ouaz on Mon Mar 23, 2020 4:16 pm, edited 2 times in total.
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12573
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: japanese translate

#24 Post by Geoff the Medio » Mon Mar 23, 2020 3:39 pm

Ouaz wrote:
Mon Mar 23, 2020 3:35 pm
Let me know if you prefer I create a pull request.
I do.

User avatar
Ouaz
Dyson Forest
Posts: 226
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: japanese translate

#25 Post by Ouaz » Mon Mar 23, 2020 4:12 pm

Geoff the Medio wrote:
Mon Mar 23, 2020 3:39 pm
Ouaz wrote:
Mon Mar 23, 2020 3:35 pm
Let me know if you prefer I create a pull request.
I do.
Done: #2801
I release every updated file under the CC-BY-SA 3.0 license.

Post Reply