HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01/29)
by Nate and Snacko
Moderators: Snacko, CCGHQ Admins
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by rs800 » 16 Jan 2018, 16:49
Who can share font sizes for russian cards? I tried to generate myself. It turned out ... this.
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by ahkren » 16 Jan 2018, 18:56
Looks like an error in how the renderer is splitting lines for Russian. I'll look into this and see what I can do.rs800 wrote:Who can share font sizes for russian cards? I tried to generate myself. It turned out ... this.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by ahkren » 16 Jan 2018, 20:06
So it appears to be a problem in the importer.
If you change all lines in scripts\classes\GathererExtractor.php that have
Just needed to add the unicode flag to the preg_replace lines.
If you change all lines in scripts\classes\GathererExtractor.php that have
- Code: Select all
preg_replace('/([a-z\p{Ll}#])([A-Z\p{Lu}])/s'
- Code: Select all
preg_replace('/([a-z\p{Ll}#])([A-Z\p{Lu}])/su'
Just needed to add the unicode flag to the preg_replace lines.
Last edited by ahkren on 16 Jan 2018, 20:21, edited 1 time in total.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by rs800 » 16 Jan 2018, 20:19
This is my own database, if that. I used ge2langahkren wrote:Looks like an error in how the renderer is splitting lines for Russian. I'll look into this and see what I can do.rs800 wrote:Who can share font sizes for russian cards? I tried to generate myself. It turned out ... this.
- Attachments
-
- WinRAR archive (2).rar
- (834.66 KiB) Downloaded 447 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by ahkren » 16 Jan 2018, 21:48
Russian translation is attached from the fixed importer.
- Attachments
-
- russian.rar
- (820.48 KiB) Downloaded 455 times
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by rs800 » 21 Jan 2018, 01:16
I also have this problem.Oketado wrote:Is it OK?
- | Open
The attachment Wanted Scoundrels.png is no longer available
The text goes over the P\T in Russian language with some cards.
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by ahkren » 26 Jan 2018, 01:00
Next update should have a fix for this.
In Renderer.php change all instances of
In Renderer.php change all instances of
- Code: Select all
if ($textSize["height"] < $maxHeight && $textSize["lineCount"] <= 8) break;
- Code: Select all
if ($textSize["height"] < $maxHeight && $textSize["lineCount"] <= 8 && $textSize["lastLineWidth"] <= 514) break;
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/01
by ahkren » 29 Jan 2018, 20:49
Updated main post to 9.1.03
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01
by ahkren » 07 Feb 2018, 22:35
So I've been working hard on getting the Gatherer Extractor parsing working better for non English languages. I have new translations (still missing RIX) that I would like to run by native speakers, if any of you have time to check them out.
- Attachments
-
- spanish.zip
- (1.11 MiB) Downloaded 438 times
-
- russian.zip
- (1.03 MiB) Downloaded 459 times
-
- portugese.zip
- (1.05 MiB) Downloaded 367 times
-
- korean.zip
- (455.03 KiB) Downloaded 353 times
-
- japanese.zip
- (1.25 MiB) Downloaded 358 times
-
- italian.zip
- (1.13 MiB) Downloaded 388 times
-
- german.zip
- (1.46 MiB) Downloaded 360 times
-
- french-oracle.zip
- (1.2 MiB) Downloaded 353 times
-
- chinese-taiwan.zip
- (574.34 KiB) Downloaded 362 times
-
- chinese-china.zip
- (1012.13 KiB) Downloaded 348 times
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01
by howdyhamster02 » 17 Feb 2018, 08:55
I'm trying to figure out what's changed with the pre-8th title rendering between versions 9.0.16 and 9.1.03. In particular, the lower-case 'a' and 'e' are noticeably different, and look more accurate on the older version. I copied over Pre8th.ttf, and even looked at the code a little bit, but no obvious reasons why.
- howdyhamster02
- Posts: 1
- Joined: 17 Feb 2018, 08:38
- Has thanked: 1 time
- Been thanked: 0 time
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01
by ahkren » 20 Feb 2018, 19:20
I'll take a look see what I can figure out
Edit: So, from what I can tell, there was something changed in the way that PHP handles fonts in the GD library between 5.2.9 and 5.5.0. PHP 5.2.9 renders the pre8th font fine, PHP 5.5.0 renders it differently. I'll keep looking to see if I can fix it.
Edit: So, from what I can tell, there was something changed in the way that PHP handles fonts in the GD library between 5.2.9 and 5.5.0. PHP 5.2.9 renders the pre8th font fine, PHP 5.5.0 renders it differently. I'll keep looking to see if I can fix it.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01
by proud » 26 Feb 2018, 06:15
Have you considered rendering the text at twice the size, and then scaling 50%?
aka ancestral, mproud
MTG.Design
MTG.Design
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01
by heliumdream » 09 Mar 2018, 06:31
Could be a lack of setting and configuration, but a couple of my first test cards came back funny.
The Future Sight version of Pact of Negation is showing a weird black spot behind the mana symbol.
And the text alignment of the Masterpiece version is all jacked.
The Future Sight version of Pact of Negation is showing a weird black spot behind the mana symbol.
And the text alignment of the Masterpiece version is all jacked.
- heliumdream
- Posts: 3
- Joined: 02 Feb 2018, 08:15
- Has thanked: 2 times
- Been thanked: 0 time
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01
by ahkren » 14 Mar 2018, 18:14
Looks like the regex I have for shadow symbols was picking up the shadow symbol as a half size shadow for 0. Look for
That should fix that problem.
For the Invocations, it is currently a work in progress. I'm still having issues getting each line centered.
- Code: Select all
case (preg_match('/Half[WR]/', $symbol) ? true : false): $extention = 'half'; break;
- Code: Select all
//case (preg_match('/Half[WR]/', $symbol) ? true : false): $extention = 'half'; break;
- Code: Select all
//case 'HalfR': $extention = 'half'; break;
//case 'HalfW': $extention = 'half'; break;
That should fix that problem.
For the Invocations, it is currently a work in progress. I'm still having issues getting each line centered.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Who is online
Users browsing this forum: No registered users and 6 guests