slashme / parliamentdiagram

Parliament diagram creator
GNU General Public License v2.0
99 stars 27 forks source link

CJK characters not supported in partylist extraction #137

Closed gia2371b closed 3 weeks ago

gia2371b commented 5 months ago

So I was about to make a diagram, but every time I tried to use the "Get List of Parties:" tab, it always says that it is probably an old diagram. no matter how old the diagram itself actually is. It also doesn't disappear once I hit "OK", and it has always been stuck in a loop.

Every diagram I make looked like this since then:

https://parliamentdiagram.toolforge.org/svgfiles/2024-01-15-06-59-28-167948-6168672208345511684.svg

image

This is what I wanted the diagram to look like: image

(Example image: 11th Legislative Yuan)

I am not sure if this is a bug or not. Either way, I am making sure that if there actually a problem, you can help in figuring out what problem is in the diagram generator.

Many thanks.

Gouvernathor commented 1 month ago

Can you try this again, both on the main website and on the Beta version, and tell if it seems to work on either of them ?

gia2371b commented 1 month ago

The main website worked, but the beta one doesn't.

Gouvernathor commented 1 month ago

it always says that it is probably an old diagram. no matter how old the diagram itself actually is.

This is due to the kanji in the file description, and it yields a different bug on Beta. I'll see what I can do about it, it's a regex problem.

It also doesn't disappear once I hit "OK", and it has always been stuck in a loop.

Yes, I did see that happening on the main, but since it's fixed on Beta it's on tracks.

Every diagram I make looked like this since then

What is the problem actually ? The white backgrount, the font ?

Gouvernathor commented 1 month ago

Now it should be fixed on the Beta