all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#53536] [PATCH 0/1] Add poppler-with-data.
@ 2022-01-25 23:59 Taiju HIGASHI
  2022-01-26  0:20 ` [bug#53536] [PATCH 1/1] gnu: " Taiju HIGASHI
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: Taiju HIGASHI @ 2022-01-25 23:59 UTC (permalink / raw)
  To: 53536; +Cc: Taiju HIGASHI

Hi,

I would like to view PDF files in Japanese with a viewer such as Evince, but
it seems that it cannot render Japanese at present, so I wrote a patch.

As far as I know, in order for Poppler to render CJK text, one of the
following conditions must be met

1. Install poppler with poppler-data preinstalled.
2. Install poppler, then poppler-data in the path expected by
poppler. (`POPPLER_INSTALL_PREFIX/share/poppler`)

ref:
https://github.com/freedesktop/poppler/blob/277f5de9684b3392f0d585bd36ad1a5e9e9e9ed7/CMakeLists.txt#L348-L362

Guix provides poppler and poppler-data as standalone packages, but installing
both will not satisfy either of the above prerequisites.

So I defined poppler with poppler-data as a package with the name
popper-with-data.

This package is intended to be used in the installation of packages that also
have poppler as a dependency, as shown below.

   guix package -i evince --with-input=poppler=poppler-with-data

However, As a user, this is still a bit of a hassle, so if you have a better
idea, I'd like to see it.

Incidentally, it seems that Nix had defined its own environment variable
(PLOPPER_DATADIR) to deal with this problem.

The usage of this variable seems to have been changed in the next commit, but
I personally thought it was a generic and useful way to deal with the problem.

ref:
https://github.com/NixOS/nixpkgs/pull/17819/commits/1bde33074efa11fa2edcf71032d2e634f852f349

If it is allowed to integrate poppler and poppler-data, that would be the
simplest solution.

Thank you.

Taiju HIGASHI (1):
  gnu: Add poppler-with-data.

 gnu/packages/pdf.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

--
2.34.0




^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-02-06  0:01 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-25 23:59 [bug#53536] [PATCH 0/1] Add poppler-with-data Taiju HIGASHI
2022-01-26  0:20 ` [bug#53536] [PATCH 1/1] gnu: " Taiju HIGASHI
2022-01-26  7:37 ` [bug#53536] [PATCH 0/1] " Liliana Marie Prikler
2022-01-26 13:38   ` Taiju HIGASHI
2022-01-26 14:16     ` Liliana Marie Prikler
2022-01-27  0:55       ` Taiju HIGASHI
2022-01-26 13:42   ` Taiju HIGASHI
2022-02-02  3:48 ` [bug#53536] [PATCH v2] gnu: Include poppler-data with poppler Taiju HIGASHI
2022-02-02  7:27   ` Liliana Marie Prikler
2022-02-02 13:35     ` Taiju HIGASHI
2022-02-02 14:16       ` Liliana Marie Prikler
2022-02-02 15:47         ` Taiju HIGASHI
2022-02-03  6:54           ` Liliana Marie Prikler
2022-02-03  7:23             ` Taiju HIGASHI
2022-02-02  3:58 ` [bug#53536] [PATCH 0/1] Add poppler-with-data Taiju HIGASHI
2022-02-02  6:22 ` [bug#53536] [PATCH v2] gnu: Include poppler-data with poppler Taiju HIGASHI
2022-02-03  6:23 ` [bug#53536] [PATCH v3 1/2] gnu: poppler: Add poppler-data Taiju HIGASHI
2022-02-03  6:23   ` [bug#53536] [PATCH v3 2/2] gnu: pdf2djvu: Remove poppler-data Taiju HIGASHI
2022-02-03  6:28     ` Taiju HIGASHI
2022-02-06  0:00   ` bug#53536: [PATCH v3 1/2] gnu: poppler: Add poppler-data Liliana Marie Prikler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.