[DFUnity] Translation of DREAM menu images

Discuss translation of Daggerfall Unity and the required Daggerfall installation. Help other communities learn how to translate Daggerfall using any available tools and processes.
User avatar
Daneel53
Posts: 55
Joined: Wed Jul 15, 2020 11:15 pm
Contact:

[DFUnity] Translation of DREAM menu images

Post by Daneel53 »

Hi translators,

To be obliged, to translate Daggerfall menus, to do pixel art in order to draw text in any language over the existing 320x200 menu images written in English that are into the classic Daggerfall is not satisfactory. It would be clearly better to write text with an image editor over images with no text. So I've written to King of Worms to ask him if it could be possible to start from the DREAM images that are into the hub & menus mod in order to try to convert them to another language (French for me). I asked him too if he had in hand "naked" images so that we just have to add texts in our respective languages. I received the answer the same day and the answer to both questions were "yes" and "not really".

Yes, we can translate the DREAM menus images, and KoW send me all the needed PNG files that are into the mod in full resolution (bigger ones are 1920x1200). We agreed that the property of the translated images would stay to DREAM and we will see when the time will come how these images shall be distributed.

Not really, because KoW agrees that he did not think to a possible future translation when those images were drawn, so he did not kept the naked images in their final state. He send me some images with no text, but most of them are just first project, not in the final resolution and not as clean as the final images. Which means that few of them are usable.

So the statement is that we are authorized to translate DREAM images, but to achieve that, three tasks are to be done:
1 - Find a way to suppress the English texts from the DREAM images in order to obtain empty menus.
2 - Find how to produce golden texts in relief as they are into the DREAM images.
3 - Write the texts with the font used in those images. For that KoW send me the file Daggerfont.otf that was used, but we will see that it is not sufficient.
In charge of Project French Daggerfall and DaggerfallSetup, dev. of DFTools in English.
French translator for many Warband mods and Bannerlord.

User avatar
Daneel53
Posts: 55
Joined: Wed Jul 15, 2020 11:15 pm
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by Daneel53 »

1 - To empty the DREAM menus

KoW realized his works with Photoshop but I do not have this expensive tool, so I decided to try to use the free open source image editor GIMP. Image manipulation on computer is not really part of my knowledge. I'm for sure able to do all the basic image transformation with standard filters but I'm not a specialist, so I was wondering how it is possible to suppress texts and to keep a background coherent with what is around.I shared this issue on the Daggerfall Unity channel of a French discord dedicated to Daggerfall, and Pango, well know here and that contributed to some content in DREAM, gave me the solution. The magic GIMP plugin is named Resynthesizer. To be short, we just have to select a rectangle around the text, launch the filter Heal Selection... and the text disappear, replaced by a background as if the text was never there. Very impressive!

Now that the way to empty menus from DREAM images is found and mastered, I will just have to empty all the needed images that are roughly one hundred. I learned how to use this filter on the inventory image, here is the result:
Spoiler!
INVE00I0.IMG.jpg
INVE00I0.IMG.jpg (467.28 KiB) Viewed 361 times
I agreed with King of Worms that I will send him back all the empty images so that that can be used by other translators. Which means that when I will have finished to empty all of them, no other translator will have to empty them again.
In charge of Project French Daggerfall and DaggerfallSetup, dev. of DFTools in English.
French translator for many Warband mods and Bannerlord.

User avatar
Daneel53
Posts: 55
Joined: Wed Jul 15, 2020 11:15 pm
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by Daneel53 »

2 - To produce golden text in relief

To add text onto an image is something that can be done too with GIMP. The issue was to find which effects to use to obtain something similar to the actual DREAM texts. After some searches on Internet, I decided, for the titles that exist on some screens, to use the filters linked to the Create Logo function. This function propose a very long list of possible filters and I've chosen a filter named Cool Metal that propose several dozen of gradients, one of them is named Golden. After suppression of useless layers in the resulting logo and adjusting brightness and contrast, it is possible to obtain something like that:
gimp-2.10_2021-04-16_14-30-48.png
gimp-2.10_2021-04-16_14-30-48.png (5.81 KiB) Viewed 360 times
This text on alpha color (transparency) can be copied as a single layer on the aimed image and, logo after logo, it is possible to deposit the translated texts onto the empty menu images.

For standard commands that are in most of the menus, the inventory for example, it will be simple text with shadow, as on the classic Daggerfall menus.

I will create a dedicated subject to describe in a more detailed manner this process for those interested with translation of the menus, but for the present subject we just have to know that a solution to point 2 has been found.
Last edited by Daneel53 on Sat Apr 17, 2021 9:59 am, edited 1 time in total.
In charge of Project French Daggerfall and DaggerfallSetup, dev. of DFTools in English.
French translator for many Warband mods and Bannerlord.

User avatar
Daneel53
Posts: 55
Joined: Wed Jul 15, 2020 11:15 pm
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by Daneel53 »

3 - To write texts with the Daggerfont

The font used to write texts in menus is daggerfont.otf. There is no issue for using the Daggerfont with GIMP. Once the font have been installed in Windows (right click on the file daggerfont.otf, install), it is available as any other font and used in GIMP as demonstrated in the above example for point 2.

The issue we face is that the font contain only a very limited set of glyphs usable by non-English language. In the following snapshots we can see the standard English characters that are into the font:
fontforge_2021-04-16_10-24-43.png
fontforge_2021-04-16_10-24-43.png (46.46 KiB) Viewed 360 times
And on this one the existing accentuated characters:
fontforge_2021-04-16_10-25-07.png
fontforge_2021-04-16_10-25-07.png (24.28 KiB) Viewed 360 times
This is very limited, it contains only 11 lowercase accentuated characters used in French, but not even all of them, and no accentuated uppercase character exist when almost all that is to be written into the menus is uppercase. For all the other languages, it is the desert. So the issue that we face here is that if we want to use accentuated letters in the menus, they must be added to the Daggerfont!

This is finally what is the most complicated thing to do because to use a font editor is, here again, a matter of specialists. I decided to use for that another open source free editor named FontForge (fontforge.org). For that I will too open a dedicated subject because to use FontForge is far from simple and the work I'm providing to create the missing French missing glyphs will have to be done by the other translators to produce the letters dedicated to their own language.

I did many trials and errors before been able to produce a first missing accentuated letter as ô and I will share my experience so that you don't fall in the same traps than me and know in a concise manner what is to be done to add new glyphs.
In charge of Project French Daggerfall and DaggerfallSetup, dev. of DFTools in English.
French translator for many Warband mods and Bannerlord.

User avatar
Daneel53
Posts: 55
Joined: Wed Jul 15, 2020 11:15 pm
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by Daneel53 »

So, to summarize where we are to obtain HD DREAM menus in another language than English:
  • I know how to empty the DREAM menus to suppress the English texts. All the cleaned menus shall be given back to KoW and available to other translators. The cleaning will to be done little by little in the following weeks.
  • The Daggerfont must be extended to all the missing French characters. This is on-going, I hope to have done this in one week from now. Then I will write a dedicated subject (and/or tutorial) so that other translators may add to daggerfont the letters needed by their language.
  • I know how to produce the menu texts in French with a design similar to the one currently used into DREAM. Texts will be added to the empty menus when they will be available and when the extension of Daggerfont to all missing French characters shall be finished.
This subject is there to exchange on that matter and to inform you upon the on-going on my works to obtain fully translated DREAM menus images. :)
In charge of Project French Daggerfall and DaggerfallSetup, dev. of DFTools in English.
French translator for many Warband mods and Bannerlord.

User avatar
King of Worms
Posts: 3960
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by King of Worms »

Hi 😊 very glad to see this thread. I salute your endeavors a lot! If there is anything I can help with, please let me know.

Just a note on the text/font. In the psd (not png) files Ive sent you, there is this font ready to use. U just find a file where these texts are used and you copy/paste the style over to your text. But thats done in photoshop, not really sure about other progs like gimp. Not even sure u can open the psd file there.

User avatar
Daneel53
Posts: 55
Joined: Wed Jul 15, 2020 11:15 pm
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by Daneel53 »

Hi King of Worms, :D

It is possible to open the PSD files with GIMP and the different layers are well separated. But infortunately the text into the layers are not recognized as text elements, so we cannot copy/paste the style of your files. But no matter, most of the texts are simple yellow texts, that's easy to reproduce with GIMP and I even add a small black shadow for the nice touch.
Texte4.png
Texte4.png (24.07 KiB) Viewed 300 times
I'm currently writing the tutorial that explain all the parameters to use and the way to do that with GIMP so that other translators don't have to find everything by themselves if, as I was, there are not used to GIMP. ;)
In charge of Project French Daggerfall and DaggerfallSetup, dev. of DFTools in English.
French translator for many Warband mods and Bannerlord.

User avatar
King of Worms
Posts: 3960
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by King of Worms »

Good :) I ment that more detailed style with shading, but I see you can create that on your own in gimp, thats great!
Buttons.rci_0-0.png
Buttons.rci_0-0.png (35.89 KiB) Viewed 283 times
Also, Ive changed that yellow text color to something more appealing (I hope) in the later versions (which were released in a DREAM package) so the final color is more of this shade... just a heads up, pick any color you like ofc
TVRN00I0.IMG.png
TVRN00I0.IMG.png (130.09 KiB) Viewed 282 times
MASK05I0.IMG.png
MASK05I0.IMG.png (1.17 MiB) Viewed 281 times

User avatar
Daneel53
Posts: 55
Joined: Wed Jul 15, 2020 11:15 pm
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by Daneel53 »

I agree my yellow I probably a little too much... yellow. :D

I will pick your color and see the result. I will too produce bicolor texts as on your ACCEPT button or GOODBYE, just have to decide the final look and witch filter to use.
In charge of Project French Daggerfall and DaggerfallSetup, dev. of DFTools in English.
French translator for many Warband mods and Bannerlord.

User avatar
Daneel53
Posts: 55
Joined: Wed Jul 15, 2020 11:15 pm
Contact:

Re: [DFUnity] Translation of DREAM menu images

Post by Daneel53 »

I changed a little my yellow so that it is a little warmer, and here is the first result with all the commands in the inventory:
Spoiler!
INVE00I0-DREAM-FR.jpg
INVE00I0-DREAM-FR.jpg (563.43 KiB) Viewed 239 times
I think this yellow is nearer of what produced King of Worms in his screens. But the screen is not finished.

First, the accentuated letters are not yet into the Daggerfont, and this why I let INGR2DIENTS, to be sure not to forget that some texts must be redone with accentuated letters.
Second, the word CHARIOT does not fit. It has exactly the same texts parameters that permitted long texts as BRASSARDS to fit, but this one does not fit and I will have to change something.

When I look at the original screens of classic Daggerfall, I see that they had the same issue and that they solved it by cheating on some letters. Some words have the letters E or T that are less wide as the standard E and T. This was possible because the letters were pixel drawn, so they just draw them with shorter horizontal bars when needed. Here we use a font and we cannot shorten one letter here and not there, so we will have to find another technique.
In charge of Project French Daggerfall and DaggerfallSetup, dev. of DFTools in English.
French translator for many Warband mods and Bannerlord.

Post Reply