Problems with Characters in title name of card
by Nate and Snacko
Moderators: Snacko, CCGHQ Admins
Problems with Characters in title name of card
by rodrigodemoura » 10 Dec 2010, 15:54
Hi guys.
I start to make all magic cards in brazil portuguese language.
But I have a problem with Title name. look
How I can solve this?
I start to make all magic cards in brazil portuguese language.
But I have a problem with Title name. look
How I can solve this?
- Attachments
-
- imagem.JPG (11.11 KiB) Viewed 8293 times
- rodrigodemoura
- Posts: 1
- Joined: 10 Dec 2010, 15:41
- Has thanked: 0 time
- Been thanked: 0 time
Re: Problems with Characters in title name of card
by Snacko » 16 Dec 2010, 22:12
There's no easy solution. You need to edit the font file and add those missing glyphs. This has been done before by some French folk, because before it only has alphanumeric glyphs (A-Z,a-z,0-9).
Re: Problems with Characters in title name of card
by BaconCatBug » 09 Jan 2011, 05:49
Just to ask a related question, when I add a list of cards that have funny characters in (for example a card with Lim-Dûl in it) the generatecards.bat gets all angry at me
I made a list of all Non-Un Cards (yeah, it's big ) and get this error:
So, tl;dr is there a way to do it? If not, thanks for the work anyway!
I made a list of all Non-Un Cards (yeah, it's big ) and get this error:
- Code: Select all
Scanning art directories......................................
Loading card data...............................................
Parsing decklist: All T1 Cards -SOM...Converting: All T1 Cards -SOM...
.
Line 346: Card not found: El-HajjGj
Line 358: Card not found: Jun·n Efreet
Line 1037: Card not found: Lim-Dvl's Paladin
Line 2320: Card not found: J÷tun Grunt
Line 2321: Card not found: J÷tun Owl Keeper
Line 3682: Card not found: Legions of Lim-Dvl
Line 3686: Card not found: Lim-Dvl's Cohort
Line 3687: Card not found: Lim-Dvl's Hex
Line 3704: Card not found: Oath of Lim-Dvl
Line 5355: Card not found: Lim-Dvl's High Guard
Line 5745: Card not found: Ghazbßn Ogre
Line 5769: Card not found: Ifh-Bfff Efreet
Line 5779: Card not found: Juzßm Djinn
Line 5782: Card not found: Khabßl Ghoul
Line 5786: Card not found: Lim-Dvl's Vault
Line 5797: Card not found: Mßrton Stromgald
Line 5823: Card not found: Ring of Ma'rvf
Line 7229: Card not found: DTja Vu
Line 9438: Card not found: DandGn
Line 9653: Card not found: Lim-Dvl the Necromancer
Line 10368: Card not found: B÷sium Strip
ERROR: Unable to parse decklist
So, tl;dr is there a way to do it? If not, thanks for the work anyway!
-
BaconCatBug - Apprentice
- Posts: 253
- Joined: 17 Dec 2010, 12:13
- Has thanked: 6 times
- Been thanked: 41 times
Re: Problems with Characters in title name of card
by Snacko » 09 Jan 2011, 18:17
Yes, I've patched the names so you will have all those listed cards with correct accents. This means however that you need to go trough your decklist and remove those accents, so that the file will be parsed correctly ex. Lim-Dûl's Hex to Lim-Dul's Hex.
I also noticed that those names dont' have accents in the legal text however this means you have to reimport GH MWS masterbase.
I also noticed that those names dont' have accents in the legal text however this means you have to reimport GH MWS masterbase.
Re: Problems with Characters in title name of card
by BaconCatBug » 09 Jan 2011, 20:13
Excellent stuff. I'll let you know how it works when I get round to it.
Edit: Works perfectly. Simply change the accented letter to a normal one (Or Æ to AE) and it sorts it.
Shame about the rules text, but that's not an issue with the gen, and the Cards.csv is easy enough to edit manually.
Edit: Works perfectly. Simply change the accented letter to a normal one (Or Æ to AE) and it sorts it.
Shame about the rules text, but that's not an issue with the gen, and the Cards.csv is easy enough to edit manually.
-
BaconCatBug - Apprentice
- Posts: 253
- Joined: 17 Dec 2010, 12:13
- Has thanked: 6 times
- Been thanked: 41 times
Re: Problems with Characters in title name of card
by BaconCatBug » 10 Jan 2011, 22:16
Sorry for the double post, but is there any way (or chance of a patch for internet hugs ) to get the generator to render all instances of il- and en- as Italic in Rules (Pre and post 8th), names (post 8th) and as non Italic in Flavour text? (for eg. Mage il-Vec,Ranger en- Vec or Spirit en- Dal )
-
BaconCatBug - Apprentice
- Posts: 253
- Joined: 17 Dec 2010, 12:13
- Has thanked: 6 times
- Been thanked: 41 times
Re: Problems with Characters in title name of card
by Snacko » 11 Jan 2011, 16:18
Italics in name already work however you need an italic font (there's no matrix bold italic and php doesn't support fake italics). If you manage to convert the font to italic then you can change the configuration file config-eighth.txt to like font.title = 35, MatrixB.ttf/MatrixBI.ttf>GaramondB.ttf/GaramondBI.ttf , where the font after the slash is used for italics.
In rules is easy add this in the card specific section of MasterBase.php
In rules is easy add this in the card specific section of MasterBase.php
- Code: Select all
$legal = str_replace('en-', '#en#-', $legal);
$legal = str_replace('il-', '#il#-', $legal);
Re: Problems with Characters in title name of card
by BaconCatBug » 13 Jan 2011, 03:37
Absolutely perfect you are!
I solved the problem by just using GaramondBI for the italic title text (since I am not gonna shell out for matrix!)
Works perfectly, thank you.
Now all we need are 4 ability planeswalkers and Futureshifted cards! -coughcough-
I kid, I kid. You have done epic work and I thank you with all my soul, heart and bagels.
I solved the problem by just using GaramondBI for the italic title text (since I am not gonna shell out for matrix!)
Works perfectly, thank you.
Now all we need are 4 ability planeswalkers and Futureshifted cards! -coughcough-
I kid, I kid. You have done epic work and I thank you with all my soul, heart and bagels.
-
BaconCatBug - Apprentice
- Posts: 253
- Joined: 17 Dec 2010, 12:13
- Has thanked: 6 times
- Been thanked: 41 times
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests