Chinese characters in gedcom file outputted to svg do not show in Inkscape

Asked by Enrique Teehankee

I'd been working on a family tree in Genealogy J, and recently the program was updated to allow graphical tree presentations. When I followed GenJ's recommendation to output to svg for viewing in Inkscape, I got a nice family tree output. My problems began when I encoded Chinese characters to a field in GenJ. Again outputting to svg and viewed in Inkscape, I got the family tree but the Chinese characters I added appeared in squares.

Today, I downloaded Inkscape 0.46, and tried the same process. Still squares in Chinese characters. Went to help in Inkscape and asked the question about "Chinese characters in gedcom file outputted to svg do not show in Inkscape". A solution was "You need to use a font with Chinese character glyphs. On Windows, use Arial MS Unicode or Mincho. On Linux, use Kochi Mincho or Kochi Gothic." Working in Windows, I set the font in GenJ to MS Mincho and in Inkscape to P Mincho. Still getting squares in lieu of Chinese characters in my svg output from GenJ when opened in Inkscape.

My basic problem is I am unable to see Chinese characters in Inkscape (ver. 0.45 or 0.46)

Would be grateful for any assistance.

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Krzysztof Kosinski (tweenk) said :
#1

P Mincho is a Japanese font, so it has a subset of Chinese characters. There will also be problems if GenJ outputs the SVG file using an encoding other than UTF-8. Please file a bug and attach the affected file (since there's no possibility to attach files in the answer tracker).

Revision history for this message
Enrique Teehankee (eyteehankee) said :
#2

Hello Chris,

Thank you very much for taking a look at my problem. This is what I"ve
tried to do (in Windows).

1. Opened GenJ again, in order that I may specify in "Views\Options" the
parameters you sent me, viz., font=MS Mincho, encoding=UTF-8".

2. I then went to the "Reports" menu of GenJ, to generate a graphical tree
presentation of the family tree, in which I had entered Chinese characters
in one of the fields in the gedcom file.

3. The file was generated, and I opened the file in Inkscape (ver. 0.46).
The family tree came out in graphical tree format, the only problem being
that where I expected Chinese characters, I saw squares instead.

4. I clicked on the "Help" menu in Inkscape, then clicked on "Report a
Bug".

5. In the Inkscape window, 2 new windows came out:

1st, "Inkscape has received additional data from the script executed. The
script did not return an error, but this may indicate the results will not
be as expected. Exception in thread Thread-1:

Traceback (most recent call last):

  File "C:\Program Files\Inkscape\python\Lib\threading.py", line 460, in
__bootstrap

    self.run()

  File "C:\Program
Files\Inkscape\share\extensions\webbrowser_reportabug.py", line 11, in run

    webbrowser.open(self.url)

  File "C:\Program Files\Inkscape\python\Lib\webbrowser.py", line 60, in
open

    if browser.open(url, new, autoraise):

  File "C:\Program Files\Inkscape\python\Lib\webbrowser.py", line 516, in
open

    os.startfile(url)

WindowsError: [Error 2] The system cannot find the file specified: '
http://inkscape.org/report_bugs.php'"

The 2nd window that opened said: "Report a Bug working. Please wait". But
nothing happened even after 15 minutes.

If you can provide me another email address, I can send you both the gedcom
file and the svg file I generated from GenJ.

Again, many thanks.

On Mon, Apr 7, 2008 at 6:05 AM, Krzysztof (Chris) Kosiński <
<email address hidden>> wrote:

> Your question #28804 on Inkscape changed:
> https://answers.launchpad.net/inkscape/+question/28804
>
> Status: Open => Answered
>
> Krzysztof (Chris) Kosiński proposed the following answer:
> P Mincho is a Japanese font, so it has a subset of Chinese characters.
> There will also be problems if GenJ outputs the SVG file using an
> encoding other than UTF-8. Please file a bug and attach the affected
> file (since there's no possibility to attach files in the answer
> tracker).
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/inkscape/+question/28804/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/inkscape/+question/28804
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Krzysztof Kosinski (tweenk) said :
#3

Uh oh. A bug in the bug reporting tool is not good :). You can report bugs here:
https://bugs.launchpad.net/inkscape/
Report one bug for the crash that happened when you tried to report a bug (irony) and a second one for the font issue. Also attach the SVG file generated by GenJ to the second bug (you can delete the any personal information from the file except for the text that turns up as squares).

Can you help with this problem?

Provide an answer of your own, or ask Enrique Teehankee for more information if necessary.

To post a message you must log in.