You are not logged in.

#1 2020-02-01 07:05:43

riyasmjgeo
Member
Registered: 2019-07-27
Posts: 14

Not able to copy text from mupdf-gl

Hello All,

I am using mupdf-gl version 1.16.1 in i3mw. I am not able to copy text to clipboard from the software while the manual says it is possible. I have followed the method mentioned in the manual as well as other usual methods.
I don't think it is related to clipboard software (mine is clipit) as I am able to do it with zathura-mupdf from PDF files. For further testing, I have tried the method in windows OS based mupdf-gl software and that also worked fine.
Kindly have a look into this issue.

$pacman -Q freeglut
freeglut 3.2.1-1

Thank you

Offline

#2 2020-02-01 09:12:35

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: Not able to copy text from mupdf-gl

glutSetClipboard is not implemented by the official freeglut.
artifex has their own patches and changes the GLUT_API_VERSION (ugly!) to denote that. It only works on X11 and Windows, by the way. You could compile mupdf using the vendored freeglut if you really want that.

https://github.com/ArtifexSoftware/thir … include/GL
https://github.com/ArtifexSoftware/mupd … l-ui.c#L27

zathura implements their own GUI that also handles the clipboard.

Last edited by progandy (2020-02-01 09:16:39)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2020-02-02 05:15:10

riyasmjgeo
Member
Registered: 2019-07-27
Posts: 14

Re: Not able to copy text from mupdf-gl

Thanks for the reply, it made sense. Just confirming, so you are suggesting to build from the github source.

progandy wrote:

glutSetClipboard is not implemented by the official freeglut.
artifex has their own patches and changes the GLUT_API_VERSION (ugly!) to denote that. It only works on X11 and Windows, by the way. You could compile mupdf using the vendored freeglut if you really want that.

https://github.com/ArtifexSoftware/thir … include/GL
https://github.com/ArtifexSoftware/mupd … l-ui.c#L27

zathura implements their own GUI that also handles the clipboard.

Offline

#4 2020-02-02 08:42:36

seth
Member
Registered: 2012-09-03
Posts: 51,206

Re: Not able to copy text from mupdf-gl

asp checkout mupdf-gl
cd mupdf/repos/community-x86_64

vim/nano/emacs/… PKGBUILD
Edit:

- rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
+ rm -rf thirdparty/{freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
- USE_SYSTEM_LIBS='yes'
- export USE_SYSTEM_LIBS
+ export USE_SYSTEM_FREETYPE := yes
+ export USE_SYSTEM_HARFBUZZ := yes
+ export USE_SYSTEM_JBIG2DEC := yes
+ export USE_SYSTEM_LIBJPEG := yes
+ export USE_SYSTEM_OPENJPEG := yes
+ export USE_SYSTEM_ZLIB := yes
+ export USE_SYSTEM_CURL := yes
makepkg -i

Notice that
a) the above might fail if the bundled glut relies on features of other bundles libs. Just not setting USE_SYSTEM_LIBS is the safe, but fat variant.
b) this drops the package out of the pacman dbase, it's now essentially an AUR package.
c) I didn't test this at all.

llpp copies selections to CLIPBOARD, if that helps you.

Offline

#5 2020-02-03 16:55:16

riyasmjgeo
Member
Registered: 2019-07-27
Posts: 14

Re: Not able to copy text from mupdf-gl

Thank you guys for direct and cunning replies. I am flattered. I will definitely try it out but after some days since its high time in my research works.

seth wrote:
asp checkout mupdf-gl
cd mupdf/repos/community-x86_64

vim/nano/emacs/… PKGBUILD
Edit:

- rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
+ rm -rf thirdparty/{freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
- USE_SYSTEM_LIBS='yes'
- export USE_SYSTEM_LIBS
+ export USE_SYSTEM_FREETYPE := yes
+ export USE_SYSTEM_HARFBUZZ := yes
+ export USE_SYSTEM_JBIG2DEC := yes
+ export USE_SYSTEM_LIBJPEG := yes
+ export USE_SYSTEM_OPENJPEG := yes
+ export USE_SYSTEM_ZLIB := yes
+ export USE_SYSTEM_CURL := yes
makepkg -i

Notice that
a) the above might fail if the bundled glut relies on features of other bundles libs. Just not setting USE_SYSTEM_LIBS is the safe, but fat variant.
b) this drops the package out of the pacman dbase, it's now essentially an AUR package.
c) I didn't test this at all.

llpp copies selections to CLIPBOARD, if that helps you.

Offline

#6 2020-05-25 15:02:13

hisacro
Member
Registered: 2019-12-11
Posts: 1

Re: Not able to copy text from mupdf-gl

tested on mupdf-gl version 1.17.0 both selection and clipboard works.

prepare() {
  cd $pkgbase-${pkgver/_/}-source

  # remove bundled packages, we want our system libraries
  # rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
  rm -rf thirdparty/{freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
}

build() {
  CFLAGS+=' -fPIC'
  CXXFLAGS+=' -fPIC'
  export CFLAGS CXXFLAGS
  
  # USE_SYSTEM_LIBS='yes'
  # export USE_SYSTEM_LIBS
  USE_SYSTEM_FREETYPE='yes'
  USE_SYSTEM_HARFBUZZ='yes'
  USE_SYSTEM_JBIG2DEC='yes'
  USE_SYSTEM_LIBJPEG='yes'
  USE_SYSTEM_OPENJPEG='yes'
  USE_SYSTEM_ZLIB='yes'
  USE_SYSTEM_CURL='yes'
  
  export USE_SYSTEM_FREETYPE 
  export USE_SYSTEM_HARFBUZZ 
  export USE_SYSTEM_JBIG2DEC 
  export USE_SYSTEM_LIBJPEG 
  export USE_SYSTEM_OPENJPEG 
  export USE_SYSTEM_ZLIB 
  export USE_SYSTEM_CURL 

  cd $pkgbase-${pkgver/_/}-source
  make build=release libs apps
}

Offline

Board footer

Powered by FluxBB