It is currently 21 Feb 2018, 07:16
   
Text Size

Problems with Characters in title name of card

by Nate and Snacko

Moderators: Snacko, CCGHQ Admins

Problems with Characters in title name of card

Postby 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?
Attachments
imagem.JPG
imagem.JPG (11.11 KiB) Viewed 2745 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

Postby 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).
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 73 times

Re: Problems with Characters in title name of card

Postby 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 :P) 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
Is there any way I can edit the bat file or scripts or something to allow for these cards to keep the correct letters? I have gone and edited the decklist to replace the accented letters with normal ones, but that annoys me since the proxies then are incorrect! :P I know I could manually make them, but I am lazy.

So, tl;dr is there a way to do it? If not, thanks for the work anyway! =D>
User avatar
BaconCatBug
Apprentice
 
Posts: 252
Joined: 17 Dec 2010, 12:13
Has thanked: 6 times
Been thanked: 39 times

Re: Problems with Characters in title name of card

Postby 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.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 73 times

Re: Problems with Characters in title name of card

Postby 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.
User avatar
BaconCatBug
Apprentice
 
Posts: 252
Joined: 17 Dec 2010, 12:13
Has thanked: 6 times
Been thanked: 39 times

Re: Problems with Characters in title name of card

Postby BaconCatBug » 10 Jan 2011, 22:16

Sorry for the double post, but is there any way (or chance of a patch for internet hugs :P) 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 )
User avatar
BaconCatBug
Apprentice
 
Posts: 252
Joined: 17 Dec 2010, 12:13
Has thanked: 6 times
Been thanked: 39 times

Re: Problems with Characters in title name of card

Postby 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
Code: Select all
$legal = str_replace('en-', '#en#-', $legal);
$legal = str_replace('il-', '#il#-', $legal);
and reimport GH masterbase (instructions in misc/import)
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 73 times

Re: Problems with Characters in title name of card

Postby 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- :P

I kid, I kid. You have done epic work and I thank you with all my soul, heart and bagels.
User avatar
BaconCatBug
Apprentice
 
Posts: 252
Joined: 17 Dec 2010, 12:13
Has thanked: 6 times
Been thanked: 39 times


Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 1 guest

Login Form