You are not logged in.

#1 2020-08-17 02:23:15

zoof
Member
Registered: 2010-02-07
Posts: 33

Abiword and Chinese

Hi,

Can anyone tell me what do I need to do to get Abiword to display Chinese fonts?

Thanks!

Last edited by zoof (2020-08-17 02:23:54)

Offline

#2 2020-08-17 05:39:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,686

Re: Abiword and Chinese

Because of the sparse information provided I'll guess that you're hitting https://bbs.archlinux.org/viewtopic.php?id=248032 and not struggle to "just install a font that covers chinese glyphs"…

Online

#3 2020-08-17 14:57:33

zoof
Member
Registered: 2010-02-07
Posts: 33

Re: Abiword and Chinese

Many thanks!

I downgraded pango but it was still not properly showing Chinese.  I prefer the lighter weight Abiword but I went ahead and installed LibreOffice and Chinese fonts are now displayed.

Offline

#4 2020-08-17 17:19:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,686

Re: Abiword and Chinese

Downgradig pango isn't a good idea anyway - rather ensure to have a non-pcf font that provides cjk gylphs.
Since this is (apparently?) not the problem to begin with, I suggest to post a (link to a) screenshot illustrating the actual problem.

Online

#5 2020-08-17 20:16:34

zoof
Member
Registered: 2010-02-07
Posts: 33

Re: Abiword and Chinese

Ok, here it is:

https://imgur.com/hq3eYmE

As you can see, the Chinese characters are squares with 4-digit hexidecimal.

Abiword has a page about adding fonts but none of the file locations they list can be found.

Any help is greatly appreciated!

Offline

#6 2020-08-17 20:22:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,686

Re: Abiword and Chinese

Output of

FC_DEBUG=4 pango-view --font=Arial -t 一  | grep family:

?
(the glyph after "-t" is supposed to be u+4e00, the first glyph in the screenshot, https://en.wiktionary.org/wiki/%E4%B8%80 )

Online

#7 2020-08-17 20:32:01

zoof
Member
Registered: 2010-02-07
Posts: 33

Re: Abiword and Chinese

It displayed a lot of stuff that I suspect you don't want to see -- the character on wiktionary is the Chinese character for the number 1, not an emdash.  I can post the output anyway if you'd like to see it but it is pages and pages of stuff like

family: "Arial"(s)
family: "Arial"(s)
  .
  .
  .

Offline

#8 2020-08-17 20:36:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,686

Re: Abiword and Chinese

the character on wiktionary is the Chinese character for the number 1, not an emdash

I know (and checked the post, bbs didn't convert it )

I'd actually like to see the entire output.

Online

#9 2020-08-17 20:40:18

zoof
Member
Registered: 2010-02-07
Posts: 33

Re: Abiword and Chinese

Ok -- the output from that is at: https://pastebin.com/xfhyYB9L

Offline

#10 2020-08-17 20:47:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,686

Re: Abiword and Chinese

The glyph is resolved from Droid Sans which would not be affected by the pango situation.
There's (very old) https://bugzilla.abisource.com/show_bug.cgi?id=12291 which suggests that Abiword doesn't use fallback fonts - does the text look better if you change the document font from Arial to Droid Sans?

Online

#11 2020-08-17 21:09:06

zoof
Member
Registered: 2010-02-07
Posts: 33

Re: Abiword and Chinese

Offline

#12 2020-08-18 12:48:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,686

Re: Abiword and Chinese

Ok, checked it.
The issue is actually Droid Sans  which doesn't provide this glyph itself but incorporates it from Droid Sans Japanese and Abiword somehow™ doesn't follow this redirection…

Online

#13 2020-08-18 14:13:35

zoof
Member
Registered: 2010-02-07
Posts: 33

Re: Abiword and Chinese

Ok, thanks!  I'll just stick to LibreOffice.  Too much trouble to figure out exactly how to get these fonts to work...

I mostly use LaTeX and Markdown anyway and only occasionally need a traditional word processor.

Offline

Board footer

Powered by FluxBB